Learn PHP

So you wanna know some PHP? Here we go:

PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.

To make a PHP layout you've to do this:

First make a page named main.php . Leave it in blank. Then if you have a index.html rename it to index.php...
Now you'll do this... put this HTML code in you main.php


<?php if ($page == "") { include "index.php"; } else { include "$page.php"; } ?>

See where it sais index.php? that the template, Remember, that code goes in main.php not index.php, index.php is the template.
Now have a look at where it sais $page.php, that what makes this, www.yourdomain.com/main.php?page=whatever.
Rename all your .html to .php, all, if you have dragonballz.html, rename it like this, dragonballz.php; why? because that was makes it look like this page=whatever, if you keep it as page=whatever.html, it will not work! now making the ssi on the layout... the thing includ virtual dont work on PHP layout... the ssi got to be like this... <?php include ("whatever.html");?>
I think PHP is; why? because PHP can make what CGI can do and even more, PHP is easier to make, like PHP layouts.

You can find PHP scripts at, PHP Resource Index you can reach for them. I dont know, I just got comfused because i saw something in Auto Rank PHP to CHMOD, but Auto Rank PHP include some CGI, so maybe is the CGI, i recomend you to do not CHMOD PHP couse that maybe is an error made by some PHP writers.
Pictures
Card Scans
Wallpapers
Animated Gift's
Fan Art
Send Fan Art
Main
Contact Us
Affiliation
Link To Us
Links
Learn HTML
Learn PHP
Learn SSI
More Hits
Introduction
English Rules
Episode Preview
Deck Construction
Deck Type Analysis
Card DataBase
Card Anatomy


Yu-Gi-Oh Episodes
Yu-Gi-Oh Roms
ScreenSavers
Emulators
Hosted by www.Geocities.ws

1