jaybird84404 Posted October 19, 2009 Share Posted October 19, 2009 Hey, I am new to PHP. Every .php file I have returns a http 405 error when I try to run them. I have read that there are different versions of php, but I don't really know what that means. I found a php.ini file and put it in my Dreamweaver CS4 main directory for my website ut that doesn't seem to have helped. Anybody know what I need to do in order to get my PHP to work? As I mentioned, I am using Dreamweaver CS4 to do all of the website. Thanks Quote Link to comment Share on other sites More sharing options...
cags Posted October 19, 2009 Share Posted October 19, 2009 It sounds like you have a lot to learn. In order to run a PHP script you will need server software of some kind and PHP installed on your system. Most people tend to install these using one of the distribution packages such as Xampp, Wamp, Lamp, Mamp etc. They are certainly the simplest way to get started. Quote Link to comment Share on other sites More sharing options...
jaybird84404 Posted October 19, 2009 Author Share Posted October 19, 2009 Yeah, I just downloaded XAMPP, but I really don't know what to do with it from here. Quote Link to comment Share on other sites More sharing options...
cags Posted October 19, 2009 Share Posted October 19, 2009 Once you have downloaded xampp you install it. Once it is installed it has a control panel, which you open up and check that it shows Apache as running. Once thats done your ready to go. To run a script you place it in the c:\xampp\htdocs\ folder (or equivalent if you changed the default install). You then type http://localhost/ into your browsers address bar followed by the name of your script (my_page.php). Then thats it, you have it running. There are some settings that really should be changed in the php.ini, but you will no doubt come across those as you post most problems. Quote Link to comment Share on other sites More sharing options...
jaybird84404 Posted October 19, 2009 Author Share Posted October 19, 2009 Ok, does that mean that in order for my website to work properly, I will have to have XAMPP with Apache running at all times? For example, I am trying to use a php script to gather data from a form on my website, but will it not work if this computer doesn't have it running at all times? Thanks for your help! Quote Link to comment Share on other sites More sharing options...
cags Posted October 19, 2009 Share Posted October 19, 2009 A php script can only run if you have Apache running (or an alternative server software). 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.