My Apache server won't parse my PHP files
Posted by: PHPnewbie (---.jgh.mcgill.ca)
Date: August 24, 2010 09:07PM

Hello,

You already probably noticed (with my username) I'm still wearing baby diapers when it comes to PHP and web server hosting smiling smiley I recently installed Wamp server locally on my Windows XP laptop with the following:
- Apache 2.2.11
- MySQL 5.1.36
- PHP 5.3.0

Here's my problem: when I click on Localhost, the index.php page will run properly. However if I try loading any other .PHP file on the browser (Internet Explorer), the php code does not get processed (compiled), it only displays the code on the browser as a simple text page. I need the server to get my .PHP pages processed

Any ideas??

Thanks

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: yfastud (Moderator)
Date: August 24, 2010 09:16PM

has to go through localhost

To setup website w/ Wamp, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: stevenmartin99 (---.mobile.digiweb.ie)
Date: August 24, 2010 09:26PM

Use <?php ?>. And not <? ?>

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: PHPnewbie (---.jgh.mcgill.ca)
Date: August 24, 2010 09:41PM

I use
<?php
.....
?>

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: stevenmartin99 (109.79.70.---)
Date: August 24, 2010 10:18PM

then u didnt name the file filename.php

it must be filename.php.txt


windows sometimes hides known filetypes. u can turn it off in control panel>folder options

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: PHPnewbie (---.253-57-74.mc.videotron.ca)
Date: August 25, 2010 03:30AM

The fiename was named .PHP and not .PHP.TXT. I checked in Folder options as you suggested, the option "Show hidden file and folders" is ticked.

Now even Localhost (ndex.php) does not get parsed when I load it

Any new ideas are welcome

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: stevenmartin99 (---.251.255.14.threembb.ie)
Date: August 25, 2010 06:18AM

not hidden option

Just below it

Hide file extensions for known file types

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: PHPnewbie (---.jgh.mcgill.ca)
Date: August 25, 2010 06:09PM

"Hide file extensions for known file types" is NOT ticked

Options: ReplyQuote
Re: My Apache server won't parse my PHP files
Posted by: PHPnewbie (---.jgh.mcgill.ca)
Date: August 25, 2010 07:30PM

I should add that SP3 and PHPDesigner 7 have been installed just recently on my laptop, this is when I started having this issue. I don't know if this could somehow be related?

However, the "Hide file extensions for known file types" option is NOT ticked

Any new ideas are welcome

Options: ReplyQuote


Sorry, only registered users may post in this forum.