PHP Tutorial
This is a tutorial on basic PHP. I wrote it because I wanted to give something back to the OpenSource community. PHP is free, and this is my little way of saying thanks!
The tutorial is aimed at users who have no previous experience with programming in PHP or any other programming language. But there’s no guarantee that this goal has been reached. It’s very likely that there are places where the user is assumed to know things he or she won’t know at this point of learning PHP.
I wrote this tutorial after having used PHP for quite some time. Because of that, some sections of the tutorial might be difficult to understand — it’s hard to remember afterwards how difficult things were. So if you have any problems with parts of the tutorial, then please leave a comment with your advice.
Contents
- Introduction gives you a quick introduction to PHP.
- PHP Basics shows you the first actual PHP code.
- Variables describes how variables work in PHP.
- Control Structures explains the control-structures in PHP.
- Functions deals with grouping the code into functions.
- Links has links to more information about PHP.
chandra:
with thanks
16 June 2005, 12:48 pmCirro:
Thanks for this. Very helpful as I try to figure out this language.
30 March 2006, 11:34 pmMichael:
Thanks a lot for the PHP tutorial, after realizing that ASP is mostly MS-centric, I found I need to learn PHP now!
19 April 2006, 2:44 amElizabeth Pedersen:
Martin, far younger than my own two Half Dans, I commend you on your excellent tutorial.
I help administer a board recently relocating from an HTML coding to a PHP, having volunteered to help the site creator with image details. You give me hope my old learnings of string theory, HTML, and C, so on, will become very useful to reorganize my way of doing things.
Til lykke!
4 June 2006, 2:04 amDavid A. Guzman:
Hi,
I’m total beginner in PHP language, and I’m designing a site for a client of mine. There are certain pages I would like to use PHP on, and one of them is a new account forms page.
See, when the user enters his/her information in these fields, I would like the info to be stored somewhere, so my client can access the new customer account info, and I don’t know how do that, I can use the mailto attribute, but I don’t think it’s secure enough, and it’s tedious to cut-n-paste the info into a database. Can someone can help me out with this!?
Also, the other page is a log-in page, and I want the customer to have access to his/her account to track the product or services down or what he/she purchased, and I would totally appreciate someone’s help on these two requests.
Free-lance designer,
29 June 2006, 9:24 pmDavid A. Guzman
superguz2001@yahoo.com
Rossen Alexandrov Alexandrov:
Please, send me some tutorials and help for PHP Programming.
17 August 2006, 4:20 pmSourabh:
Hello, I want you to write me the step by step process to run the WAMP server on my computer.I am using Windows XP.
I am not finding the file config.inc.php, in phpmyadmin.
How can i get it and where to change the password?
I have set a new password for SQL but, as i can’t place the password in config.inc.php, SQL server is not getting connected to php.
Please help with detail step.
Regards,
2 September 2006, 3:11 pmSourabh.
Jace Nattie:
Keep up the great work!
5 December 2006, 9:20 amforumgids:
Php is great because of it’s server side loading and not being generated by browser, which is very secure and compatible. I suggest to people who realy want to try php and build something large or complicated to use phpcake or php on rails, so you don’t need to know alot about php-programming and php-structure.
23 December 2006, 10:15 pmmarieraman:
hi
10 March 2007, 7:01 amAlice:
I always find it amusing, how people come swooping in with “I want you to help me do this…” requests/demands in response to tutorials.
16 March 2007, 11:03 pmMario:
Thank you, Martin. Excellent!! Nothing more to say. Keep going forward!
7 May 2007, 6:20 amCooper:
@Alice: Yeah it is kind of pathetic… seems lots of people expect everything handed to them on a silver platter… those people never get far anyway :) It’s the people like us who work hard that get there ;)
27 June 2007, 2:37 amBubbila:
Sweet tutorials, just what I have been looking for! Well Pleased…
11 February 2008, 11:17 pmphp programming:
Thank you, Martin. Excellent!! Nothing more to say. Keep going forward!
29 September 2008, 5:33 pmPHP tutorial « PHP MySQL Problems:
[...] Martin Geisler Online » PHP Tutorial [...]
10 November 2008, 2:43 amsree murugan:
hi i wany to study php i want all the information about php so mail to my id ……..
5 December 2008, 7:54 amtibe:
i want to study php.
12 December 2008, 11:11 pmtibe:
tutoials please send me
12 December 2008, 11:11 pmJeff:
Great resource, thanks for putting it together.
22 December 2008, 11:21 amFrank:
The is a great resource. Thanks for putting it together. As a newbie to php, I find I work best with cheat sheets. Sine I always have my iPhone with me, I keep them there. The best one I’ve found so far is from these guys:
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=302760278&mt=8
They also have a great cheat sheets for CSS and Javascript. Hope this is helpful!
1 February 2009, 10:01 amMorgan Ads:
Thanks a lot for yours publications :)
25 March 2009, 10:14 pmSeo Cherubin:
Thanks for ressources and tutorials :)
10 October 2009, 3:55 pmolaoluwa:
thank man great job
27 October 2009, 2:32 amComputer Programming Tutorials:
Thanks a lot. Keep it up.
1 October 2010, 5:25 pmNew Line Equity:
Thanks a lot for your valuable notes
27 November 2010, 10:47 amWill Knight:
This is really good stuff, thanks for being informative.
5 December 2010, 6:42 pmWeb Devlopment:
Martin,
9 December 2010, 10:42 amI feel happy to read the tutorials, currently following your procedure, Thanks to sharing this informative stuff here.
Gregory:
I can recommend start editing your PHP files on FTP servers using http://online-php.com.
20 December 2010, 1:06 amVery useful and simple
Sarah-Ann:
Great tutorial, really appreciate it. Also found some excellent reading at Tutorial arena
Sarah
20 January 2011, 11:33 pm‘There is no such thing as “negative growth”‘
Will Knight:
Well I did not know that by putting your code into functions, you make the code easy to reuse.Thanks for the tutorial.
26 January 2011, 1:04 pmPHP Tutorials and help:
[...] guide – Guidance from the PHP Security Consortium on how to develop more secure applications. PHP tutorial – Martin Geisler – This tutorial is aimed at users who have no previous experience with programming in PHP or [...]
4 February 2011, 2:45 pmguru:
Hi, i am a beginner of php language. it is very useful for everyone
18 February 2011, 2:54 pmGuhan:
It is very used when i want to study in online
18 February 2011, 3:07 pmMedia:
New in php world thanks for the lessons.
20 March 2011, 1:08 pmAlfred kevin:
i like u r site very much. it’s very useful to me..
21 March 2011, 2:27 pmFont Creators:
It is very useful for web desidners
19 April 2011, 9:15 ambest php training:
excellent job martin.your way is very good so keep going on.i am greatly thankful to you.
27 April 2011, 8:09 amphpranjan:
Thanks a lot for that , as you know the php is very easy to understand and you articles making it more easy to learn , thanks a lot for that
16 June 2011, 12:32 pmferns and petals:
I learnt php from this tutorial book only, and im not able to create websites like i mentioned by my own. thanks webmaster john
13 July 2011, 11:50 am