RE: [PHP] using eval

From: Date: Fri, 14 Dec 2001 05:38:14 +0000
Subject: RE: [PHP] using eval
Groups: php.general 
Request: Send a blank email to php-general+get-77699@lists.php.net to get a copy of this message
this is what the eval() command equates to $str = "include("$path/inc/dataconf.inc");"; that should make it clearer (??) -----Original Message----- From: rdkurth@starband.net [mailto:rdkurth@starband.net] Sent: Friday, December 14, 2001 4:21 PM To: php-general Subject: [PHP] using eval I keep getting this error when I use eval what am I missing Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on line 1 $path="/home/sites/home"; $fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)"); $str='include("$path/inc/dataconf.inc");'; eval ("\$str = \"$str\";"); fwrite($fp3,"$str \n"); -- Best regards, rdkurth mailto:rdkurth@starband.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#77699) next »