rendered paste body<?phpclass Example{ private $name; public function __construct($name) { $this->name = $name; if ($_GET['pg']) { $this->process(); } else { echo 'default'; } } private function process() { echo $this->name; header('Location: '.$_SERVER['PHP_SELF']); exit; }}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en-us" xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml"><head> <title>Example</title></head><body> <?php $ex2 = new Example("Charlie"); ?></body></html>