Page 1 of 1
how to create a php page with dreamweaver
Posted: Wed Oct 13, 2010 4:50 pm
by chao
i created a php page with the codes below, but when I try to run it nothing shows on the page. can anyone help me out with this.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Using Echo()</title>
</head>
<body>
<?php
print 'Hello World! This is my first time coding PHP!!' ;
?>
</body>
</html>
Re: how to create a php page with dreamweaver
Posted: Wed Oct 13, 2010 5:07 pm
by Jonah Bron
if you rightclick > view source (in your browser), what do you see?
Re: how to create a php page with dreamweaver
Posted: Wed Oct 13, 2010 5:21 pm
by chao
Jonah Bron wrote:if you rightclick > view source (in your browser), what do you see?
I see all the codes.
Re: how to create a php page with dreamweaver
Posted: Wed Oct 13, 2010 6:02 pm
by twinedev
Stepping back to the basics, what did you name the file (use a .php extension), and where is it hosted (ie, not a asp environment)?
-Greg
Re: how to create a php page with dreamweaver
Posted: Wed Oct 13, 2010 6:22 pm
by Jonah Bron
And is it hosted at all, or are you trying it on your own computer?
Re: how to create a php page with dreamweaver
Posted: Thu Oct 14, 2010 7:53 am
by chao
twinedev wrote:Stepping back to the basics, what did you name the file (use a .php extension), and where is it hosted (ie, not a asp environment)?
-Greg
I named the file second.php
Re: how to create a php page with dreamweaver
Posted: Thu Oct 14, 2010 7:56 am
by chao
Jonah Bron wrote:And is it hosted at all, or are you trying it on your own computer?
yes im trying it on my own pc, so i set a web service using IIS on windowsXP.
Re: how to create a php page with dreamweaver
Posted: Thu Oct 14, 2010 10:31 am
by Jonah Bron
Did you install PHP? I would really recommend installing a WAMP stack; it makes things really easy.
http://www.wampserver.com/en/
Re: how to create a php page with dreamweaver
Posted: Thu Oct 14, 2010 10:58 am
by chao
Jonah Bron wrote:Did you install PHP? I would really recommend installing a WAMP stack; it makes things really easy.
http://www.wampserver.com/en/
fixed the problem thanks alot.