|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
apache help
I have put this block of code in a file and loaded it with my browser.
<HTML><HEAD><TITLE>PHP Example</TITLE></HEAD> <BODY> You are using <? echo $HTTP_USER_AGENT ?><BR> and coming from <? echo $REMOTE_ADDR ?> </BODY></HTML> and all I get is: You are using and coming from Is there something I have to turn on in apache to these get variables to work. Last edited by nick316 : July 16th, 2002 at 05:49 PM. |
|
#2
|
|||
|
|||
|
Nick,
What version of PHP are you using? If it's anything after version 4.1, your "register_globals" may be turned OFF, so use $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR'] To find out which version of PHP you're running, create a blank script in put: <?php phpinfo() ?> Run the script, and it will give you details on your settings. Check out this link for some more details. Hope it helps!
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
|||
|
|||
|
Frankie
Yeah, your're right its 4.2.1 How do I turn on my "register_globals"? if I use $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR'] won't that just give me the info of the server and not the client machine? Thanks for your help Nick |
|
#4
|
|||
|
|||
|
Quote:
No, because $_SERVER is an array with info collected from the webserver, which includes for example the remote IP.
__________________
Best Regards, Håvard Lindset |
|
#5
|
|||
|
|||
|
Thank you for all the help.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > apache help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|