|
|
|
PHP introductionPHP is available on both unix and windows servers. Contact your webspace provider for details and further information about your php instalation. If working on personal computers, there are countless tutorials outthere that will show you how to install php on your computer. In order to not break too many nerves, do follow the tutorials provided.PHP is an HTML-embedded scripting language, needless to say knowledge of html is required. Otherwise it will be interesting to say the least. Prior to creating your first programs check what version of php do you have installed, as programs go, new versions bring new interesting functions and capabilities. PHP runs server-side, which means that the webserver that sends an HTML file to a user's browser, will carry out the instructions found in the embedded PHP code first, and then send the output of the PHP code along with the HTML code. The result is a webpage with dynamic content. Since PHP runs server-side, when viewing the source of the page that ran some php code, all one will see is the html output/result and not the phpcode. In other words the web server replaces the PHP code with the content that the code was written to produce. When writing PHP code, the sytax denotes the start and end of the PHP code (the dots represents the content or PHP code. The pages that have <?php ... ?> code in them must be saved in a file with a .php extension. If the files are saved with any other extension (.txt, .html) the php code will not be run. PHP code is run line by line from top (unless there is another structure that redirects the flow of the program). |
|