Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eval problems!

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
I'm having a problem with the following line of code on only a couple of server types;

Code:
eval("\$vars_val =& \$GLOBALS[$vars]$suffix;");

The error reported is:

Parse error: parse error, expecting `']'' in
/home/bizlande/bizlande- : eval()'d code on line 1

Now, the weird part is that it works on all my test runs of the script, and also on several other servers...but just not this one. Has anyone got any ideas why it work work? :|

Thanks

Andy
 
checked all the versions of PHP ? ***************************************
Party on, dudes!
[cannon]
 
Its PHP 4. I had it working locally on my machine with PHP 4.0.6, and the one we are having problems with is 4.1.2. Could it be this version difference that is causing the problem?

Thanks

Andy
 
Definately ... they didnt make all thing backwards/forwards compatible ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top