Re: weird error

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: weird error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187532@lists.php.net to get a copy of this message
Better if you use $_SERVER['REMOTE_ADDR'] and so on... pagongski wrote:
        Hi guys,
        I recently installed easy-php on my laptop so i could work on the go without having to upload my scripts to the server to test them out. The problem is that when i tried one of my scripts on it, i get some weird errors, and the script works fine on the online server.
        Here are some example errors:
        Notice: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' in c:\win2kapp\easyphp1-7\www\index.php on line 35
        Notice: Undefined variable: HTTP_REFERER in .....
        I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way)
        Big thanks.
-- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) mjjimenez AT isotrol DOT com --- http://www.isotrol.com ICQ# 12670750 TLFNO. 955036800 ext. 111

« previous php.general (#187532) next »