PHP TUTORIAL
FOR N00BS PART 1
This
tutorial was written by me and has been posted on forums at wicked-site.com
and Geodogs.com
I hadn't even posted it on my own then lol!
Are you thinking Why are the colours crappy? Well because I havent set them
:P
If you have ever used C++ this will be easy!
Okay I will teach you the basics, bear in mind after this tutorial you will
not be uber leet, far from it so don't go thinking you are
First you need a host that supports php find one.
Then you want to know if it really does have working php and the version.
Make a text file called test.php
Files ending in .php will be preprocessed as php and the code will not be seen
by the viewers.
Open up the file
Before I continue I'll tell you a little bit about comments.
//This is a commnent for one line
/*
Anything between these are comments
use these for temporarily 'cutting out bad code
*/
The comments are kinda like developer notes but are more usefull for temporarily
removing stuff
so if you went
| CODE |
| <? echo "Guess what?!"; //echo "fuck you!"; ?> |
| CODE |
| Guess what |
| CODE |
| <? echo "Guess what?!"; //echo "fuck you!"; ?> |
| CODE |
| <? phpinfo(); //the phpinfo function ?> |
| CODE |
| echo("fuck you!"); |
| CODE |
| print("fuck you too buddy!"); |
| CODE |
| $greenbottlesstandingonthewall = 99; |
| CODE |
|
|