Ask a Question related to PHP Development, Design and Development.
-
Stefan #1
Simple PHP question.
Hi,
Just set up PHP (PHP Version 4.3.3) as a CGI on a WIN2k server and tried
this:
<?php
echo $REMOTE_ADDR;
print "This is PHP...";
?>
And I get this error:
Notice: Undefined variable: REMOTE_ADDR ...
Is there some module I may be missing?
Thanks,
S
Stefan Guest
-
Need Simple Answer to Simple Contribute/Firefox question
Hello all; I've tried the Adobe help in CS3, tech support, phone support, this forum, other forums, Mozilla, and nowhere can I get a straight... -
simple question
Hi there, As an absolute beginner I have a simple question. I have a scene with two layers. Layer 1 should start again at frame 1 while Layer 2... -
SImple question?
Can anyone please tell me how to keep 2 windows open so that as soon as I click on one of them, the other one does not minimise and have to be... -
another simple question.
select from db where id = 3... if it doesn't exist, how can i display a message saying so. for example: "3" is not a valid selection. ... -
A simple question but ..
Hi Can someone give me a link where i can see (and do it my self) how to create a shape tweening? (Flash MX) Yes i am a newbie but want to learn... -
DvDmanDT #2
Re: Simple PHP question.
Nope, it's register_globals.. Read manual... It's in PHP.ini..
--
// DvDmanDT
MSN: [email]dvdmandt@hotmail.com[/email]
Mail: [email]dvdmandt@telia.com[/email]
"Stefan" <nickm@studioweb.com> skrev i meddelandet
news:1a%ab.14131$hF3.1597308@news20.bellglobal.com ...> Hi,
>
> Just set up PHP (PHP Version 4.3.3) as a CGI on a WIN2k server and tried
> this:
>
>
> <?php
>
> echo $REMOTE_ADDR;
>
> print "This is PHP...";
>
> ?>
>
> And I get this error:
>
>
> Notice: Undefined variable: REMOTE_ADDR ...
>
> Is there some module I may be missing?
>
> Thanks,
>
> S
>
>
DvDmanDT Guest
-
rush #3
Re: Simple PHP question.
"Stefan" <nickm@studioweb.com> wrote in message
news:1a%ab.14131$hF3.1597308@news20.bellglobal.com ...
Nope, you are running code in style that is about to becomme obsolete.> Is there some module I may be missing?
Try:
echo $_SERVER['REMOTE_ADDR'];
The change is that now register_globals option is by default turned off
which means you can no longer access REMOTE_ADDR as global, but instead you
have to look into the $_SERVER super global.
The change is for the better since register_global turned to on had some
grim security implications.
rush
--
[url]http://www.templatetamer.com/[/url]
rush Guest



Reply With Quote

