justuptime.com - monitor your servers & websites

i need help :(

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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
Moderator

He has: 2,944 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

Cheng Eu Chew - Renegade
Download:
- Mozilla, Firefox
- Opera
This post may contain peanut traces

They have: 3 posts

Joined: Nov 2005

could you tell me how?

Renegade's picture
Moderator

He has: 2,944 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.

Cheng Eu Chew - Renegade
Download:
- Mozilla, Firefox
- Opera
This post may contain peanut traces

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:(