RE: [PHP] How to argue with ASP people...
| From: | Robby Russell | Date: | Fri, 31 Dec 2004 03:30:19 +0000 |
| Subject: | RE: [PHP] How to argue with ASP people... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205406@lists.php.net to get a copy of this message | ||
On Fri, 2004-12-31 at 02:49 +0000, mail.pmpa wrote:
> Don't mean to start a discussion whatsoever, I love php, but one thing i
> can't do in php is Response.Redirect .
> Apart from that no complains so far :)
>
> * Happy New Year *
>
> Pedro Almeida.
>
Sure you can..
class Response
{
function redirect($location)
{
header("Location: " . $location);
}
function write($text)
{
print $text;
}
}
Response::Redirect("http://www.planetargon.com/");
Response::Write("bar");
There, now we can compete with ASP.
;-)
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now supporting PHP5 ---
****************************************/