php is downloading instead of running

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: php is downloading instead of running

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests