Sunday 22 September 2013

How to Test or Run Your PHP code

                                                    HOW TO TEST OR RUN YOUR PHP CODE

if you are asking question such as; " how to run a php code or how to test a php code in a local server or computer then you are at the right place. For you to effectively run or test a php code, you must setup a local server. Mostly you will be advised to configure Apache. But thank God we now have already configured and most complete application or server which you can install will and help you run your php code. That server is called XAMPP, a little Google search should aid u.

Assuming you have your xamp installed in your drive C. To test your php code. Save it in C: \xampp\htdocs.

To test your php code. You don't just double click on the file you saved, you must first open your browser. Then on your browser address bar type:

localhost/index.php

use index.php if you save your php file as index. After typing the above address you should be able to see the output of your php code. Thank you following.

#PHP
#EasilyLearnHTML

No comments:

Post a Comment