Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.