Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

php is downloading instead of running

General discussions related to php

Moderators: macek, egami, gesf

php is downloading instead of running

Postby gajananh999 » Wed Jan 02, 2013 3:31 am

Dear Everyone,

I have installed xampp on my linux server but when i m running it php file.. its getting downloaded instead of running..

May i know what is the reason for this.

Thanks and regards,

gajanan hiroji.
gajananh999
New php-forum User
New php-forum User
 
Posts: 2
Joined: Wed Jan 02, 2013 3:30 am

Re: php is downloading instead of running

Postby seandisanti » Fri Jan 04, 2013 9:34 am

it sounds like you're opening the file via the file system instead of the webserver. in the xampp control panel make sure you have apache running, then open your browser of choice and navigate to http://localhost to confirm that your local webserver is running. when you want to see the results of php instead of just seeing the code, you have to get there via http://localhost/path/file.php in your browser. don't use file paths like c:\... etc
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron