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 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.7.5> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

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 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.7.5> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.