How to test PHP script?

I am new, self learning programming. I just finished reading a book in HTML. And now I am reading the PHP book and doing the excises. It mentions I need a FTP server to test my script. Is anyone out there knows what it is? I don’t know how to test my script…. Please provide step by step detail as I don’t have any background in programming. Thanks.


Comments

4 Responses to “How to test PHP script?”

  1. rockinronnie on September 6th, 2010 3:35 pm

    FTP is a protocol used for transferring files. This is often how you would transfer files to your web server. Since PHP is a server-side scripting language(runs on your server), you need to put the script you write(php file) on your server, in order to test it. You would normally use an FTP client(program) to do this.

    If you don’t have access to a server, you can set up a test server on your local machine using XAMPP . Quite easy to install..

    http://www.apachefriends.org/en/xampp.html

    You can get a free FTP client here…

    http://filezilla-project.org/

    You can message me if you have further questions.

  2. Jeffrey F on September 6th, 2010 3:35 pm

    download WAMPServer
    http://www.wampserver.com/en/

    WAMPServer needs no configuration, has a console for easy adding of modules to PHP and Apache…….it just works, "out of the box".

    WAMP is Windows, Apache, MySQL and PHP.

    WAMPServer will allow you to run your scripts locally as well as connect to MySQL for data driven php code.

  3. dhvrm on September 6th, 2010 3:35 pm

    Sign up for a free account at http://www.awardspace.com

    You can test your PHP scripts there.

    They will provide you with all the instructions you need to use their service.

  4. Energetic Dreams on September 6th, 2010 3:35 pm

    You can install either XAMPP or WAMPP (http://www.wampserver.com/en/) and test your PHP scripts on your own computer. I personally use WAMPP cause it’s a little easier to work with then XAMPP.

    Having a FTP server means that you have a web hosting account somewhere on the Internet where you can upload your files for testing. WAMPP or XAMPP lets you run a web server on your computer that supports PHP and MySQL.

Powered by Yahoo! Answers