help me with PHP

Status
Not open for further replies.

Slingblade

Smack-Fu Master, in training
85
I'm building a website for a friend and I have to do it in PHP, Normally I use ASP. I'm having a hard time finding the ASP equivalent function's. Right now all I need is the equivalent to InStr in ASP.

parse_str ??

I want to do something like this: <hybrid code :) >
<?
$pageName = Request.ServerVariables("SCRIPT_NAME")

if Instr($pageName, "index.php") > 0 Then{
do something
}
elseif Instr($pageName, "somepage.php") > 0 Then{
do something
}

...

?>

I have been looking here:
php.net

But, it is cryptic and it's making me go to sleep looking through all this stuff for such basic functions as this. So, could you guys help me out with this and maybe a couple other small things? Just hook me up with a link to the appropriate functions etc. would be great.


Here is the current site:
Old

And the new one:
Thanks!New


Thanks! and if you have any comments on the new site let me hear it.
 
Status
Not open for further replies.