i need help :(

They have: 3 posts

Joined: Nov 2005

for some reason, whenever i try to access a php file from a Html on ym computer, it thinks that i am trying to download it, why wont it let me run it like i planned? Confused

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Do you have PHP installed and enabled? I had that problem before until I realised that I didn't enable it. Plain

They have: 3 posts

Joined: Nov 2005

could you tell me how?

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Do you have the following three lines set similar in your http.conf file?

DirectoryIndex index.php index.html index.cgi index.pl index.xhtml

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
'

When that is done, restart apache.

He has: 43 posts

Joined: Apr 2004

Im no expert but remember this hurdle when I hit it.

Sounds like your trying to execute a .php file on your local machine without having PHP installed locally.
I never bothered installing PHP locally, instead I just upload my file each time and test it on the live server, youll find it will execute fine there.

He has: 9 posts

Joined: Nov 2005

I had that problem but i am not sure how i fixed it:( i just download a few things:(

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.