php interpreter not working
Posted by: fad0 (2.224.132.---)
Date: July 08, 2017 04:56PM

1 - Windows 8.1 64bit
2 - Version WampServer - 3.0.6 64bit
3 - Apache Version - 2.4.23
4 - PHP Version - 5.6.25
5 - MySQL Version - 5.7.14
6 - WampServer icon is GREEN

[locahost] shows the WampServer Homepage
At the bottom of that homepage, for Projects I have "tutorial", which I created in the c:\wamp64\www directory
When I click "tutorial" another tab opens up, but [tutorial] can not be open (or found I think)

When I type locahost/tutorial/chickenman.php, it just shows the whole file:
<html> <body> <?php print ("I am the CHICKEN MAN"winking smiley; ?> </body> </html>

but it should just show "I am the CHICKEN MAN"

Not sure what I am doing wrong...

Options: ReplyQuote
Re: php interpreter not working
Posted by: RiggsFolly (Moderator)
Date: July 08, 2017 09:55PM

Hi

If the WAMPServer homepage works, then as that is written in PHP, then PHP is working.

http: //tutorial wont work unless you have created a Virtual Host with that domain name See [forum.wampserver.com]

But the code you show looks like it should work.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: php interpreter not working
Posted by: fad0 (2.224.132.---)
Date: July 08, 2017 11:59PM

Okay...I was being really really dumb. I'm not used to working in Windows and using Notepad. It wrote the file as chickenman.php.txt

Once I removed the .txt extension it worked fine. Thank for the help RiggsFolly!

-fad0

Options: ReplyQuote
Re: php interpreter not working
Posted by: RiggsFolly (Moderator)
Date: July 09, 2017 01:23AM

Can I suggest you download Notepadd++, its free and a pretty good code editor.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.