suttercain Posted February 14, 2007 Share Posted February 14, 2007 I know this is a newbie question. But it is my understanding that Apace allows you to run PHP on your local machine like Windows XP. Am I correct or way off base? Could someone give me a brief explanation? Also is it easy to install? Thanks. Quote Link to comment Share on other sites More sharing options...
effigy Posted February 14, 2007 Share Posted February 14, 2007 Apache is a web server. It can run lots of things, including PHP, on lots of things, including Windows, Unix, and Macs. It can serve requests internally (locally), externally, or both. I've found it very easy to install. Quote Link to comment Share on other sites More sharing options...
suttercain Posted February 14, 2007 Author Share Posted February 14, 2007 I installed WAMP which included MySQL, PHP 5.2 and Apache. It was very easy and all the services are running on my local machine. Problem is when I try to view PHP code in Firefox it ask me to save it or open it. If I save it, I just re-save the file. If I open it, it open in DreamweaverMX. How do I set it so I am able to test my script on my local machine without having to FTP it every time to view it. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
effigy Posted February 14, 2007 Share Posted February 14, 2007 Apache is not set up to execute .php files. You'll need this in the configuration: AddType application/x-httpd-php .php If you're missing this, you may also be missing LoadModule. Double check the install docs. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 14, 2007 Share Posted February 14, 2007 I installed WAMP which included MySQL, PHP 5.2 and Apache. It was very easy and all the services are running on my local machine. Problem is when I try to view PHP code in Firefox it ask me to save it or open it. If I save it, I just re-save the file. If I open it, it open in DreamweaverMX. How do I set it so I am able to test my script on my local machine without having to FTP it every time to view it. Thanks in advance. if you have wamp installed then make sure you are going to http://localhost/ to run your PHP files, All php files should be located in C:/WAMP/www. You cannot double click PHP files whilst in Windows explorer to run run, like you can with html files. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.