I have the following block of code on our site. We have 3 webservers our site uses. 2 of the webservers are using PHP version 4.0.3pl1 and the othere is running 4.3.3. The code below works on 4.0.3.pl1, but I get an error on the 4.3.3 version. Can someone please help me.
[code]
$NOMAPSFOUND=0;
$map=array();
if (!strlen($sErr)) {
$myQuery=$myHost.$myVars;
$fd= @fopen ( $myQuery, “r”);
if (!$fd) {
$sErr=”Error: Couldn’t complete MAP request. Please try again
later.”;
} else {
$myResults = fread( $fd, 500000 );
fclose( $fd );
eval( “?>$myResults” );
}
}
[b]Error:
Parse error: parse error, expecting `’)” in /home/httpsd/ra-new/stores/locator/show_store_map.php(132) : eval()’d code on line 9