Can't put in php format
Posted by: lithicacid326 (---.bcstcmta01.clsttx.tl.dh.suddenlink.net)
Date: October 12, 2016 07:02AM

Hi, I have WAMP64 and when I try to view my directory pages (made in notepad), it shows every word that was typed in php format. For example, it says"<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p> Welcome to xxxl xxx\'s website. <br>

How can I get it to not show literally what ever I type? I had WAMP64 on another computer and I did not have this problem. Thanks!

Options: ReplyQuote
Re: Can't put in php format
Posted by: RiggsFolly (Moderator)
Date: October 12, 2016 10:26AM

First download a decent editor like Notepad++ Its free and very good

Second, make sure that the file name of any page the contains PHP code has the `.php` extension

---------------------------------------------------------------------------------------------
(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.