![]() |
Opening Php files displays script in browser
I tried searching the forums on this issue, pretty sure its been discussed before.
I've just recently had to re-install xampp 1.6.6a. Previously everything was working like a charm. I even kept all the extensions an php.ini. Could this be a httpd.conf issue? :-/ |
Yes, maybe the loading of the PHP module has been for some reason disabled..
|
More likely it would be your httpd.conf than your php.ini - the php configuration won't even come into play until the script is actually parsed as PHP. Are you on Windows or Linux? Make sure you have a line in your httpd.conf that reads something to this effect;
LoadModule php5_module "C:/Program Files/path/to/php/php5apache2_2.dll"or LoadModule php5_module modules/libphp5.soThen you'll need to make sure this is somewhere in your httpd.conf as well, AddType application/x-httpd-php .phpHope that helps... -m |
Checking right now. Also wanted to ask, sometimes I see back slashes used and other times I see forward slashes for windows directory path. Which is correct and when?
|
BRB...I'm so tired of this BS. This was working fine all last week.
I now have to restart Vista...no suprise. See if that jars some of its senses. |
Generally speaking backslashes on Windows, and forward slashes on Linux, though some applications, such as Apache which is native to linux, will accept forward slashes for windows paths as the backslash is generally accepted to be an escape character.
-m |
No dice, on reboot. Still everything is the same. Script shows up in browser.
|
Double check your path, make sure the .dll file is where you're specifying it to be, and you definitely have the AddType declaration in your httpd.conf as well?
|
We've made progress! I'm getting somewhere now. Im using MS Expressions- Web Designer. It has a built in DevelopmentServer that needed to be started.
Thank you. |
| All times are GMT. The time now is 09:01 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0