View Full Version : why this doesnt work my php file

11-11-2013, 10:57 AM
am using dreamweaver and I wrote this code as php file , but it doesn't work there is no output after I save this file as php file in htdocs , and then open it using internet explorer there was nothing , just This page can't be displayed


so what is wrong I did , the output should be value is 1 , value is 2 , value is 3 , value is 4 , value is 5

$array =array(1,2,3,4,5);
foreach( $array as $value )
echo "Value is $value <br />";

11-12-2013, 12:21 AM
the code is correct so im guessing the problem is in your server or your patth