PHP Script seems not executed (Windows 7 Home)
Posted by: jjvgarcia (---.user.veloxzone.com.br)
Date: June 20, 2013 04:36PM

Hello,

The Tools phpinfo() and phpmyadmin are running. Typing [localhost] shows the WAMPSERVER Homepage. But trying simple tests seems that the php code is not processed.

For instance:

<html>
<head></head>
<body>
<?php
phphinfo();
?>
</body>
</html>

The browser returns:

<html>
<head></head>
<body>
<?php
phphinfo();
?>
</body>
</html>

Seems that the php code was not processed.

Any clue?

Thanks in advance,
jjvgarcia

Options: ReplyQuote
Re: PHP Script seems not executed (Windows 7 Home)
Posted by: RiggsFolly (---.as13285.net)
Date: June 20, 2013 05:03PM

Make sure you use the .php extension for pages that contain PHP code.

Also check that your editor has not added the .txt extension onto your scripts.

Some turn xxx.php into xxx.php.txt

Options: ReplyQuote
Re: PHP Script seems not executed (Windows 7 Home)
Posted by: jjvgarcia (---.user.veloxzone.com.br)
Date: June 20, 2013 05:17PM

the extension is .php
I'm using Notepad++ to edit the source, and it don't change the extension.

Thanks.
smiling smiley

Options: ReplyQuote
Re: PHP Script seems not executed (Windows 7 Home)
Posted by: jjvgarcia (---.user.veloxzone.com.br)
Date: June 20, 2013 05:32PM

Solved.

The php file was not create as an ANSI file. I changed the codification, and the scripts are now running.

Options: ReplyQuote


Sorry, only registered users may post in this forum.