30 | July 2014 |
Wednesday |
Before to run the php page, you have to understand what different between of
Web server and
Apache server.
The browser Web Http Server on the Internet that run the common language
is HTML; also available
the code views of CSS,
JavaScript
but however, PHP.
PHP has to requested to the
other server that called
Apache Http Server.
If you wanted to run your PHP script, before that, you've to set up an apache server to
your local computer.
Read the content or code / instruction -
After done the download and installation, click "start all" on the Apache Manager Panel
to turn on the server. For Own Apache Server, it will automatically turn on. And then, put the PHP file in the following directory:
For WAMP(Windows only)
For XAMPP, MAMP
For Own Apache Server
MAMP XAMPP for OSX: | |
Own Apache for OSX: | |
WAMP for Windows: |
One of the great websites which I suggest is BuckysRoom (it used to name called TheNewBoston.org before), the site makes many good video tutorials as PHP, MySql, javaScript...etc different kinds of programming languages and they're all free! So try to learn and stick around in there!
see the code OR slideshow instruction
//test the first php script and save in .php extension file
<?php
echo '<h1>Hello World!</h1>';
?>
Watch next videos and relative source page(s)