PDA

View Full Version : why this doesnt work my php file


jack666sparrow
11-11-2013, 10:57 AM
Hello
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

http://localhost/HaniAlbarni/Testing.php

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



<html>
<body>
<?php
$array =array(1,2,3,4,5);
foreach( $array as $value )
{
echo "Value is $value <br />";
}
?>
</body>
</html>

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