logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11-11-2013, 10:57 AM   #1
jack666sparrow
 
Join Date: Nov 2013
Posts: 1
Default why this doesnt work my php file

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

PHP Code:
<html> 
<body> 
<?php 
$array 
=array(1,2,3,4,5); 
foreach( 
$array as $value 

echo 
"Value is $value <br />"

?> 
</body> 
</html>
jack666sparrow is offline   Reply With Quote
Old 11-12-2013, 12:21 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

the code is correct so im guessing the problem is in your server or your patth
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:00 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com