I am new to php and do not know what else to do since uninstalled it and installed other versões.Me please help.
This code was done in notepad + +:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>
<body>
<?php
echo "fabiano<br/>";
$nome = "fabiano";
echo "$nome";
?>
</body>
</html>
appears exactly that way in chrome and mozila:
"; $nome = "fabiano"; echo "$nome"; ?>
This code was made in dreamweaver cs6:
<!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">
<head>[color=#FF0000
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>
<body>
<?php
echo "fabiano<br/>";
$gaveta = "fabiano";
echo "$gaveta";
?>
</body>
</html>
and thus appears in chrome and mozila:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>
<body>
<?php
echo "fabiano<br/>";
$gaveta = "fabiano";
echo "$gaveta";
?>
</body>
</html>
I put a code q being tested in course and running, appeared in the same manner qo 1st example desisntalei xampp, installed easyphp, and went to install xampp with php 5.4.7 (xampp 1.8.1)
q can not only know the q is wrong in dreamweaver appears that has no defined site, and when it appears the grip design logo php.Sou beginner and want to train at home and go deeper, but with this problem I do not know q do 1 apache and my sql working perfectly filezila installed separately updated a website with html and q did was good signal qo apache're running normally, phpmyadmin tBM is working. q Does gotta set something in php?
my windows 7 home profissional 32 bits , xampp:1.8.1