On Wednesday 17 April 2002 02:23, Mark wrote:
> <?
> system('echo $REMOTE_ADDR > bla');
> ?>


You've got $REMOTE_ADDR inside a single-quoted string thus no variable 
expansion takes place.

Instead what happens with your code is that you're echoing the *shell* 
environmental variable $REMOTE_ADDR into bla.

Just replace your single-quotes with double-quotes.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Q:      What is purple and commutes?
A:      An Abelian grape.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to