NYCPHP Meetup

NYPHP.org

I can't code today to save my life! :(

Phil Powell soazine at erols.com
Sat Jan 4 16:21:39 EST 2003


I have $REQUEST_URI that will take two values:

"/event/login.php"

and

"/event/register.php"

What I need to do is so simple it's brainless!!! I need to look into $REQUEST_URI and find if it contains "register.php".  I tried this and it completely failed, the results were wrong every time:

if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php }

I don't know why I can't get this other than weekend stupidity, can someone help?

Thanx
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030104/a6321a21/attachment.html>


More information about the talk mailing list