urgent help for php

Alles, was PHP betrifft, kann hier besprochen werden.

urgent help for php

Postby danado » 12. May 2013 16:46

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
Last edited by danado on 12. May 2013 16:57, edited 1 time in total.
danado
 
Posts: 2
Joined: 12. May 2013 16:13
Operating System: windows 7 32bits

Re: urgent help for php

Postby danado » 12. May 2013 16:56

windows 7 home profissional 32 bits.xampp:1.8.1
danado
 
Posts: 2
Joined: 12. May 2013 16:13
Operating System: windows 7 32bits

Re: urgent help for php

Postby Altrea » 13. May 2013 17:13

What address does your browsers address bar show?
What character encoding do you use for coding?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: urgent help for php

Postby zeeshanaayan07 » 02. July 2013 17:07

How to use php coding in dreamweaver
zeeshanaayan07
 
Posts: 1
Joined: 28. June 2013 12:46
Operating System: xp

Re: urgent help for php

Postby Altrea » 02. July 2013 17:38

We don't provide any support or tutorials for how to use an IDE.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: urgent help for php

Postby Nobbie » 02. July 2013 19:32

danado wrote:appears exactly that way in chrome and mozila:


... because you double clicked on the file in explorer? Yeah?

Or you named it *.html instead of *.php.

Or both of them. Both horribly wrong. You MUST use extension *.php and MUST NOT double click in explorer.

Last option, you use any IDE (like Dreamweaver) and did not configure it correctly - in that case, go for Dreamweaver boards or similar.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to PHP

Who is online

Users browsing this forum: No registered users and 15 guests