Jump to content

Retarded Problem


23.12.2012
 Share

Recommended Posts

Well... trying to build my first application using DW as a text editor (due to syntax goodies), I came across this little retarded problem: When I open <?php, it is seen as an HTML tag instead of a beginning of a PHP script:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>SanGYM Iasi ● Client Adaugat</title><link href="stylesheet.css" rel="stylesheet" type="text/css" media="screen" /></head><body><?phpecho "<p class='date_client'>Nume: </p>" . $first_name . ' ' . $last_name;echo "<p class='date_client'>Telefon: </p>" . $phone;echo "<p class='date_client'>Cod: </p>" . $reg_num;echo "<p class='date_client'>Abonament: </p>" . $membership;echo "<p class='date_client'>Mentiuni: </p>" . $other;?></body></html>

Browser View | Source Code ViewAlso, Apache is switched on and test with a phpinfo.

Link to comment
Share on other sites

It meets both of them.Well... the problem is with Apache. It seems MAMP (Mac Apache MySQL PHP) crashes my Apache every two days...

Link to comment
Share on other sites

I'm an epic fail. Yes, I was accessing it through FILE. Thanks a lot, it's a shame :)It's just that I was used to FILE > OPEN when I was using plain HTML and CSS, without an web server.

Edited by 23.12.2012
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...