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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.