Error on PHP5
Moderator: General Moderators
Error on PHP5
Hi all,
If I save the file as filename.php5.
Then, I execute the program in brower like localhost/filename.php5.
It shows the entire php code on browser I don't know what happen,
Did any one face this problem before?
Please provide some solutions regarding this problem.
If I save the file as filename.php5.
Then, I execute the program in brower like localhost/filename.php5.
It shows the entire php code on browser I don't know what happen,
Did any one face this problem before?
Please provide some solutions regarding this problem.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Choose the Right Board
Are you sure .php5 is supposed to be processed by PHP?
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Exact location for what? There's only one place conf files are stored for Apache.
To know what to look for inside the file, read the install instructions text file that comes with PHP (or on the manual site.) Make sure to find the appropriate section for your particular version set of Apache -- there are three version groups.
To know what to look for inside the file, read the install instructions text file that comes with PHP (or on the manual site.) Make sure to find the appropriate section for your particular version set of Apache -- there are three version groups.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
There is an AddHandler declaration that is usually responsible for telling Apache to parse certain file extensions using the PHP module.
This is, of course, for a Windows set up. You need to make sure your paths are properly set up in your Apache conf file. Also, in the example, that is how .php files get parsed. To use .php5 files, changes the .php above to .php5.
Code: Select all
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"