Forum Moderators: coopster
I have got PHP 4.3.10 Installed on my local system (windows) and server (Fedora).
foreach loop runs perfectly on my local system but it gives me problems on the server.
here is a sample code.
$FilenameParameters1 = array('ar', 'bg', 'bc', 'far');
foreach ($FilenameParameters1 as $key) {
echo $key;
}
on local system it prints the values
"ar bg bc far"
but on the server it prints
"Array Array Array Array"
it works fine if i change $key to $k=>$key in the loop. Because of that i'm not able to run any libraries or classes downloaded from the internet.
please HELP me sort this out.
Thanks
do you guyz think its just an issue with the version of php. Because i can update the php version but i'm just concerned will it, in any way, effect sites running on it?
Thanks
Even so, if you are able to patch the PHP version you are likely better off than where you stand now, no?