Jump to content

[SOLVED] Fresh PHP setup on Apache/WindowsXP and having problems...


Recommended Posts

Hello everyone!  I'm new here so I apologize if this was posted elsewhere (I looked for it, but didn't find anything)

I just installed Apache 2.2.3 on a Windows XP MCE05 PC then installed PHP 5.2.0.  After a few config changes, all is running well, except one thing (so far).

I try to use SERVER variables and they don't work

ie. $_SERVER['REQUEST_URI']

That is the one I tried to use and it is not working at all.

Is there something in the config file that I need to enable or add?

Thanks in advance!
I don't get anything.

I have a small script that take the URI, explodes it twice to get the "/" and ".php" off to leave just the page name, ie "signup" (orgininally "/signup.php").  It will then assign the page name to a variable, "$page".  So I do this:

[color=red]echo "Page is " . $page . "!";[/color]

just to see if it works on my machine at home and it displays:

[color=red]Page is ![/color]

But when I upload it to my webserver, it displays it correctly:

[color=red]Page is signup![/color]

So that leads me to believe something isn't working right on my machine at home.

Any suggestions?
I don't have the code with me, I apologize.  I just bought a house and I'm still trying to work out my IC so I'm at work right now.

I can positively tell you I've tried:

echo $_SERVER['REQUEST_URI'];

and it doesn't display anything.  It's almost as if it isn't even there.

I have also tried all tags:

<?, <?php, <?=, etc.  I've tried it all.

I know I'm being a pain in the rear and I apreciate the help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.