Jump to content

Getting started


Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/178261-getting-started/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/178261-getting-started/#findComment-939904
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/178261-getting-started/#findComment-939914
Share on other sites

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!

Link to comment
https://forums.phpfreaks.com/topic/178261-getting-started/#findComment-939927
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.