Hi, im new on this site and this is my first PHP Tutorial I have expirence with php in 5 years now so im quite good Ok but as you can see my forum name is Beginn3R and i use it almost everywhere. Ok enough if that, let the tutorials begin. First i will explain some basic commands in php. <? # This will print a text that you wrote betwheen the " " # echo "Hello world"; ?> PHP: <? # This will print a text that you wrote betwheen the " " # print "Hello world"; ?> PHP: That is some basic text writing/printing command. With print i dont mean like print it out of printer. Print in php language means that it write a text into the site. PHP is not like html that you just need to write something to see it. If you just write something in php you will get errors. Here is a basic php script that can be handy. First of all open notepad and write: Hi what is your name?<br> <form action="name.php" method="post"> <input type="text" name="name" value=""> </form> PHP: Save that as index.php or hi.php, you decide. Now make a new document or just: File > New Now write: <? $name = $_POST["name"]; ' This will get the value from the textbox named name ?> <font face="verdana" size="1"> Hi <? echo "$name"; ' This will get the data from the string name and print it ?>, My name is blabla</font> PHP: Now save it as name.php and you got you script done Keep updated. i will keep this post updated with more tutorials that is easy and hard! Beginn3R aka. Ismail
Some nice beginner advice. Remember for comments in your PHP code you can just do: #This is a comment you don't have to add another hash like #This is a comment# Also don't forget the second file in the last tutorial must be saved as name.php
Yes, people can visit W3schools and it is a very valuble resource but sometimes it can get a bit wordy and it makes it kind of hard to understand so sometimes it's better when other people explain it. Thanks!
To add to the comment in php You can use // single line commenting /* multiple line commenting */ Also Thanks for taking an effort and sharing your knowledge to others
This guy jump started me. his site is a little different, but watch this jazz. http://www.phpvideotutorials.com/free
Maybe make some tutorial for common script like a secure usersystem or so, that'll sure be a hit if it's right.
theres lots of tutorial sites and books, the forum is probably not the bets place to post mass random tutorial code all at once.. lol