Re: system() + $vars

From: Date: Wed, 17 Apr 2002 17:27:11 +0000
Subject: Re: system() + $vars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93355@lists.php.net to get a copy of this message
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. */

« previous php.general (#93355) next »