PHP configuration problem, foreach not behaving ???
Posted: Thu Jan 05, 2006 4:48 am
Hey,
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.
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
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.
Code: Select all
$FilenameParameters1 = array('ar', 'bg', 'bc', 'far');
foreach ($FilenameParameters1 as $key) {
echo $key;
}"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