Deluxnetwork
English German French Italian Portuguese Spanish Chinese     
 
Penguin



Available Guides:::::

PHP Guide by Ryan Forrester www.d9x.net
this guide is intended for anyone who wants to see the basics of php.

<?php
1. what is php.
2. a basic php script.
3. using php variables.
4. includes, headers/footers.
?>



section #1
PHP stands for the Hypertext Preprocessor. PHP is embedded in HTML files and is extremely easy to learn and code. PHP is a server side scripting language, that is, the server processes the PHP code and sends the output to you. Thus, it is not possible to view the source of the PHP code. PHP code cannot be run on your computer unless you are running a server with PHP Installed.



section #2
<?php
print "My First PHP Script!\n";
?>
Save the file as 'something.php' and upload it to your webhost and go to the url http://yoursite.com/something.php



section #3
Below is some examples of variables in PHP (same as perl)
<?php
$variable_1="My";
$some_other_variable="Script";

print "$variable_1 First PHP $some_other_variable!\n";
?>
Pretty simple huh?



section #4
Ok Below is an example of using a header in your pages.
ALSO: Below is some examples of variables in PHP (same as perl)
<?php
# Note: this wont work if `header.html` dosnt exists in the same directory!
include("./header.html");
$variable_1="My";
$some_other_variable="Script";

print "$variable_1 First PHP $some_other_variable!\n";
?>



Other Related Sites:
php homepage
phpbuilder

Suggest a link?:
mail us

Linux Hosting by www.d9x.net