should see the code in plain text on the page if php doesn't work.If you get nothing at all, then maybe there are errors in the script and PHP-error-reporting-level prevents you from seeing the error. When developing, make sure you have "error_reporting =E_ALL" in php.ini. By default, Notices are not displayed and PHP-notices are regular errors in my point of view, such as undeclared variables. Try that first, make sure all errors/notices are displayed.
Olivia Hardy wrote:
I'm getting the http://localhost/ I just can't get my php part of my files to show. It will show the html part of the file but that's all. Livi ________________________________________________ Let's Help Terminally Ill Children Smile. www.pagesforchildren.com Staying Healthy the Natural Way www.naturalyhealthy.com ----- Original Message ----- From: "Nick Jones" <nickj6282@xxxxxxxxx> To: <users@xxxxxxxxxxxxxxxx> Sent: Wednesday, August 24, 2005 5:43 PM Subject: Re: [users@httpd] Can't view PHP in localhost, please help!--- Olivia Hardy <oh14204@xxxxxxxxxxx> wrote:I have checked everywhere I can think of to solve this problem on my own and have yet to find an answer that works. So now I turn to you. I'm using Dreamweaver to create PHP files for a new site I want to do. My server is Apache with phptriad. My problem is I can't get it to show the php code. All it wants to do is let me download it. I have followed every tut I can find to get this working correctly and nothing seems to work. Thanks in advance for your advice. LiviI haven't tried PHPTriad personally, but it sounds like Apache is configured wrong. Check your httpd.conf file and make sure the following lines are in there somewhere: AddModule phpN_module "c:/path/to/phpNapache2.dll" (where N is your PHP version) AddType application/x-httpd-php .php Good luck! -Nick ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.15/80 - Release Date: 8/23/2005--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx