Today marks the beginning of a brand new series that will show you EXACTLY how to get started with PHP. Just as with the “jQuery for Absolute Beginners” series, we’ll start from scratch and slowly work our way up to some more advanced topics. I hope you enjoy it. As always - feel free to make requests via the comments form.
We’ll get started by downloading WAMP/MAMP and echoing out a simple string to verify that PHP is working on our system.
Day 1: Downloading the Language
Links from the Screencasts
Continue On…
- Day 2: Variables
- Day 3: Passing Values From Page to Page
- Day 4: Multiple Variables and the “foreach” Statement
- Day 5: Refactoring, Arrays, and Functions - Oh My!
- Day 6: Includes
- Day 7: Regular Expressions
- Day 8: Strings
- Day 9: Detecting First-Time Visitors
- Day 10: Mysql
- Day 11: INSERT and foreach Statements
- Subscribe to the Theme Forest RSS Feed.





Brenelz
January 13th, 2009
Really looking forward to this series Jeffery. Can’t wait for the Advanced stuff but you need to start somewhere.
-Brenelz
Jeffrey
January 13th, 2009
Thanks! For 98% of you - this first video is to elementary. But we’ll work our way up!
MasterDKR
January 13th, 2009
This sounds like its going to be interesting.
Mathias
January 13th, 2009
Free video tutorials on php, as well as advanced topics I haven’t seen something this amazing since sliced bread! Thank you so much
Kevin
January 13th, 2009
I want one for Ruby on Rails please
Jaysun
January 13th, 2009
Pretty basic stuff. Hope you do one on a user system.
Brenelz
January 13th, 2009
Some requests for down the road could be:
- using PHP for form validation (more advanced could be having all validation rules on the server and using JQuery to access them through AJAX)
- using MySQL prepared statements and stored procedures in PHP
- simple OO PHP content management system ( would love a series on this as it could have a lot of components)
Jeffrey
January 13th, 2009
@Brenelz
- Yes
- Yes
- Maybe. That might be too complicated for a “beginners” series. But, we’ll see.
Vasili
January 13th, 2009
Great job.
Whenever I say MySQL, I say My - S - Q - L. XD
Jeffrey
January 13th, 2009
@Vasili - As far as I’m aware, either pronunciations are acceptable.
Paul
January 13th, 2009
PLEASE TEACH US OOP!
Brett Slaski
January 13th, 2009
Great, thanks for starting this. I was just about to get back to PHP again, so this if very timely.
yassir
January 13th, 2009
Greaaat!! but can’t i use IIS 7 and MSSQL ?
Jeff
January 13th, 2009
@Yassir - Yes, you can.
kevinsturf
January 13th, 2009
wow, finally it has begun. I’ll finally be able to properly see how to use php although i have some basic knowledge, but I think Seeing and doing for me is much better than reading about it.
Nice Jeff,can’t wait for the rest.
Jason Lengstorf
January 13th, 2009
Be careful. I wrote one of these for CSS-Tricks and got my ass handed to me with security vulnerabilities.
I’m stoked to see programming coming into play on the blogs I follow. Great work!
Brenelz
January 13th, 2009
@yassir
Try WIMP - http://www.wimpserver.com/index.php
Jeffrey
January 13th, 2009
@Jaysun - Did you read the title of the series?
BazDeas
January 13th, 2009
@Jeffrey
Great start Jeff, I’m looking forward to seeing how this series pans out. Based on the success of your ‘jQ for absolute beginners’ I’d say it’s going to do pretty well!
yassir
January 13th, 2009
@Jef and Brenelz
i have iis 7 and it is using port 80 (the same wampserver use) so i went to to change it to 8080 (for wamp) but there was lot of configuration files what can i do ?
Chris McQueen
January 13th, 2009
Really excited for this series. I’m a n00b, but I think with your fine skills I’ll do just fine.
Sean
January 13th, 2009
Really looking forward to this as about the only thing I know how to do in php is include and echo.
Hopefully by the end of this I’ll be able to do some simple php customization to client sites.
Michael
January 13th, 2009
@Brenelz & @Jeffrey
OOP would be great as I always get a bit stuck on that!
Evan Riley
January 13th, 2009
Finally a good Basics of PHP Screencast. Followed all the jQuery tuts, plan to watch all of these
Beto Arpi
January 13th, 2009
Thank you Man,
This is so great… Are you gonna do a tutorial for a data base creation? Anyways this is helping me a lot.
B. Ackles
January 13th, 2009
I second the request for a Ruby on Rails series.
Also, I’d love to see this series look at WordPress customization. Since WP is written in php, it would be great to see a screencast on how to make a plugin or (more advanced) how to customize the dashboard.
jamie
January 13th, 2009
You know what is really funny. I just decided the other day to focus on php and stop thinking about javascrip, jquery and flash. I am really going to focus on php because I believe that it can do everthing a developer needs. To that end, I have already installed wamp, got my test server going for dreamweaver cs4, and a video tutorial I would really like to see if it’s not in the one above that I am about to watch is how to setup a database and username and password for that database to begin a new installation of wordpress. That would make a very good video. How to install wordpress into wamp and get it up and running. I fumbled through the process last night and finally got it working. But I had to search the web to find the sql command line to get the username and password working for the database. Not to mention the fact that there are php files that need to be altered. I even managed to get myself booted from phpMyAdmin and had to figure out what file needed to be changed to let me back in. What an ordeal it was.
Brett Slaski
January 13th, 2009
I have used xampp in the past, do you know if there is much difference between xammp and wamp (besides wamp sounding a little light in the loafers)?
Thanks
Mike
January 13th, 2009
how often will this series be published?
The Sharpie One
January 13th, 2009
great first cast, looking forward to the rest of them. Please, PLEASE work up to and go over OOP!
Jeffrey
January 13th, 2009
@Mike - There will be a new entry every other day or so. Day 2 will be posted tomorrow.
Blaine
January 13th, 2009
@Jeff
How about a tutorial that uses PHP to process a form and output as a pdf? This is probably outside the scope of this video series, but useful to know nevertheless.
Also, throw another vote for a series on Wordpress and Ruby on Rails.
rkirk92
January 13th, 2009
Very interested in this series, you have always done a fantastic job on your tuts. I have followed you since you started on your detached designs site. One question though, I thought you were an ASP.NET guy, has that changed? Have any thoughts on PHP vs. .NET?
Nim
January 13th, 2009
Jeffrey,
Thank you so much for the great tutorial, I am looking forward to the rest of the series.
I have had downloaded wamp a year a go and now I can make use of it. thanks to you.
Jeffrey
January 13th, 2009
@rkirk82 - I like both very much. I’m not one to take sides on the matter. I still think that ASP.NET is much more powerful; however, PHP is SOOO much easier to learn.
Drew
January 13th, 2009
Geez Jeff, a few hours and already 35 comments and 52 diggs. I guess thats why they call you the boss man (and by they I mean me). Good stuff Jeffrey, looks like this was a much wanted video series
Player
January 13th, 2009
Ae! That is great! = )
Ariyo
January 14th, 2009
I believe this series is going to be brilliant, So as the jQuery for absolute Beginners was. Thanks Jeffery, I appreciate all of your hard work educating this grate community!
Trond
January 14th, 2009
Thank you!!!
i loved your jQuery series, and i can´t wait to get my hands around this one!!
keep up the good work!
chapi
January 14th, 2009
Really Simple CMS with login to admin panel would be great, I Found some tutorials how to add content thru Forms, I found some tutorials how to make an admin panel but they never work togheter for me
Wassim
January 14th, 2009
Hey Jeff! Where is the “Hello World!” greeting message in your script! The programmers community will not be happy to see that.. No just kidding, thanks for the initiative and good luck for what comes.
Web Hosting Reviews
January 14th, 2009
Wow man, great video. Please it going…. Thx
Aayush
January 14th, 2009
cant wait for the advanced videos….
your screen-casts are always great….the jQuery one helped me a lot….I’m sure this one will too….
Thanks
Eduardo
January 14th, 2009
@Brenelz
It’s best pratice to do validantion on both sides, because theuser can turn off javascript.
Kim Andersen
January 14th, 2009
Looking forward to this series. I already know some PHP, but still im happy that you have made these video-tutorials. Thanks
Hassan
January 14th, 2009
The website which tut is uploaded in, is not available for me and people from my country. Could you please upload videos somewhere else? We really appreciate that. Thanks.
Maxi
January 14th, 2009
Good job .
Wassim
January 14th, 2009
Hey Jeff
Is there any problem with my previous comment! cause I don’t see it. Some moderation issues?
BroOf
January 14th, 2009
Hehe, never saw so many comments on themeforestblog
I really looking forward to it. Great thing ;D!
mary
January 14th, 2009
Great start!! Looking forward to following this series.
Wassim
January 14th, 2009
Ooops.. I think that there’s a moderation issue with today’s post from you Jeff! I’ve posted tow “POLITE” comments until now but none is published, the site keep telling me this: “Your comment is awaiting moderation.”
Well, if my comments are offending ThemeForest.net in a manner or another I’ll keep theme to me next time.
Cheers
Rahul Joshi
January 14th, 2009
This series just rocks..
I was earlier running php using IIS 7.0 on vista. I tried installing wamp but it is not able to find the localhost.. i tried changing the port but still it doesn’t work. Any suggestions?
Jeffrey
January 14th, 2009
Yeah - lots of comments.
I had a feeling that this particular series might do well.
The bottom line is that there simply aren’t enough video resources for PHP. When I switched from ASP.NET to PHP, the best I could find is Lynda.com - which is fantastic; but it’s $25 per month.
Other than that, I can think of maybe two or three different places for PHP screencasts.
Day two will go up in an hour or so.
Jeffrey
January 14th, 2009
@Wassim - They weren’t deleted; I just need to sleep! They’ve been accepted.
Wassim
January 14th, 2009
Good to hear this Jeff
Marko
January 14th, 2009
Very cool. Can’t wait for the rest of the lessons.
Thank you, Jeffrey!
Houndawg
January 14th, 2009
Can’t wait for the nuts and bolts. Especially relational and querying a DB.
Willabee Wombat
January 14th, 2009
Found your jQuery for Beginners a couple of days ago and caught up (very impressed) to Diving into PHP.
I’m all setup, tested and ready to go (running AMP from a USB stick) …. Bring it on Jeff!
suBigya Shakya
January 14th, 2009
awesome.. will come back every day
Saeed Jabbar
January 14th, 2009
For mac users ,you could also use Wamp and Coda. I believe osx also has a built in server which coda utilizes.
Meshach
January 14th, 2009
Hey Jeff, maybe OOP could be a subject?
Thanks.
Fawaz
January 14th, 2009
This looks like a great series, I just wish I had this type of stuff to learn from when I was learning…
This looks great for beginners tho.
ilias
January 14th, 2009
I’m sure this is going to be another awesome series!
I just hope Mac-users aren’t totally neglected when making these screencast.
(I needed to do some research before I could properly install MAMP)
Thanks for the effort!
ateshcek
January 14th, 2009
Is there a way to download the videos or get ‘em as podcasts?
mike
January 14th, 2009
Very nice! I am very happy to see a series on php! Great work Jeffery
Yosy
January 14th, 2009
@yassir - you can use IIS and MSSQL for sure,but you will need ro change the ports because if i am not mistake IIS Port is 80 and WAMP is 80 ..
Matthias
January 15th, 2009
I’ve been lurking for a very long time around ThemeForest, PSDTUTS, NETTUTS, and all of the other Envato sites, and I realized I’ve never actually commented or interacted with the community directly before. So here’s my first comment I guess, and I’d just like to say I really appreciate all of your hard work! I’ve really learned a lot from you and your fellow writers all over the Envato sites and all of you have really helped me a lot! I’ve always wanted to learn PHP and I know a little, but I never really committed myself to sit down and study a complete foundation of it for myself, so this PHP video series is really something I’m looking forward to!
Now here’s just a question not directed specifically toward Jeffrey, but to everyone who’s installed WAMP/MAMP or a program similar to WAMP/MAMP. I’m not sure if you’ve heard of the alternative called XAMPP, but if you have then which server do you prefer? WAMP or XAMPP? I’ve looked up the question on Google, and I couldn’t really find definite answers other than XAMPP having a bit more extra features. Is there any reason why one would choose WAMP over XAMPP or vise versa? I would really appreciate a response from anyone!
nszumowski
January 15th, 2009
looking forward to this!
Samuel
January 15th, 2009
Wow, I actually made a decision last night to learn a more modern language (still use classic ASP). This morning I decided on PHP and now I see this!! Awesome, thank you so much.
For what ever reason this computer here at work will not display the flash video, but it will be first thing on my list when i get home. Thanks again…
ilias
January 15th, 2009
@ ateshcek
I use downloadhelper wich is a firefox-plugin wich allows you to save any streaming video to your hard drive.
https://addons.mozilla.org/en-US/firefox/addon/3006
ateshcek
January 16th, 2009
ilias thank you very much
great add-on
matthias
January 16th, 2009
wooohooo … great! finally this could be the way I’ll learn PHP. Please go on and upload the next lesson!
Dan
January 16th, 2009
Woo!
..that is all
sheky B.
January 16th, 2009
ahm… i am a newly converted mac user and i could really use some help on getting it to work…. i ve placed all files in right folders but keep getting the message that browser can t find the server…
step by step for mac would be great!
thanx in advance
Andrew
January 16th, 2009
Great to see a screencast tutorial on php jeffery.Looking forward to more lessons.
Xashen
January 17th, 2009
I’m looking forward to this series, I just have one question: Where do i put the files on my Mac? I installed MAMP, but there isn’t a www folder in the MAMP files.
Johan
January 18th, 2009
Luv it!
Keep going
Pimmetje
January 18th, 2009
Whoo ill watch them all
asd
January 19th, 2009
Jeffrey, how i can contact with U ?
ciprian
January 19th, 2009
Grate tutorials..tnx alot
Kitform
January 19th, 2009
Thanks Jeff, the Jquery was brilliant, I’m looking forward to this php tutorial even though my head is about to burst open.
I already run a web server at home that has php installed on it, I’m a bit concerned about installing wamp onto ‘my’ computer as it also a web server and I don’t want to end up with a conflict.
For the tutorial could I just paste in a path to my php software that’s running on the web server?
Jeffrey
January 19th, 2009
Hey guys. I’m using Windows 7 beta with rocket dock.
Sasha
January 27th, 2009
@Xashen - When using MAMP on a Mac, the default location to put your files is in ‘/Applications/MAMP/htdocs’. You can change this location to whatever you want in preferences.
Another tip for Mac users, to view your ‘It worked!’ example in your web browser might not be as simple as typing in ‘http://localhost/day1/index.php’, even if your files are in the default location mentioned above. Basically, the address you type in needs to reflect what port you are using.
Confused? Just open up MAMP, click on ‘Open start page’ and check out the url that is displayed in your browser. It should begin with ‘http://localhost:’ followed by 4 numbers. This is the port you are using, so to see your ‘It worked!’ the address should be ‘http://localhost:1234/day1/index.php’, replacing ‘1234′ with your actual port number.
Thanks for the excellent series Jeffrey!
Rodolpho
February 11th, 2009
“It worked”!
Thank you!
Nathan
February 16th, 2009
is there anyway i can download this these? I would much rather have them on my computer.
Thanks
John Dangerous
February 19th, 2009
So is that a rap? What happened to the rest of the series?
Jeffrey
February 20th, 2009
@John - No, not at all. I just posted Day 9 a couple of days ago. I try to push out as many as possible - usually 1 or 2 each week.
CoreyO's
February 23rd, 2009
Sasha thank you very much for helping the Mac users! I couldn’t get it to work like a month ago but tried again today and saw your comment.
suBi
February 27th, 2009
i liked your diving into PHP so much.. i signed up for the subscription… i can’t wait…. for more….
suBi
February 27th, 2009
i think it’d be great … also .. to end every tutorial with like a “can you do this” homework type of project… that way… we can actually practise more… and disucuss… the difficulties and debug the codes right here !
Kevon
March 1st, 2009
These tutorials are awesome, got two screens one running a window with all the tutorials for this series and in the other my mac doing the “exercises”. This is gold! Diamond quality help for beginners and intermediates!
Thanks so much!
Marco Castro
March 3rd, 2009
Great series… thank you!
Hisokader
March 3rd, 2009
Hi every body i’d like to say think you very much to Mr jeffrey for these great web cast ,im from morocco (so sorry for my englich)
LeoF
March 12th, 2009
Hey Jeff. I can’t be more thankfull!! There are a lot of people like me trying to understand the basis of php programing. You are doing a great job. Grettings from argentina
Neil
March 16th, 2009
Jeff - This is really great stuff. Thanks for putting the time in. Looking forward to watching the whole series.
Bret
March 19th, 2009
Excellent tutorial, I know this is going to be a great series!
Sam
March 19th, 2009
I love you for this! <3
Kenneth
March 20th, 2009
I have a beginner question. Sorry if its really stupid.
I just finished watching this video and i created a new file called index.php in my C:\wamp\www\day1
The code in index.php is
Now i checked in the browser and it actually echoed out “this really worked”.
I purposely left out the semicolon after echo (’this really worked’) to see if i’ll get any errors but i didn’t. Is there something wrong my php installation via wamp. Thanking you all in advance.
Kenneth
Kenneth
March 20th, 2009
Don’t know why the code i typed that i wanted to show you guys is not appearing on my previous comment? How do you type example code on this comments area?
e2d
April 2nd, 2009
You need to updates this overview page - there is already lesson 13 out
Rafael
April 3rd, 2009
Wow!!! This blog is fantastic!!
SOSO
April 5th, 2009
Thank you very much…
PLEASE feep make this kind of tutorials.
I began to learn from it today ! you are great !
TR
April 7th, 2009
Keep Subscribing ppl let’s support Jeff as much as we can
Thanks Jeff a lot for another great series. :worship:
P.S: After this series please do one on Ruby or ASP.net
adai
April 26th, 2009
I can ‘t watch it!!!
Chuck Fuqua
April 30th, 2009
Jeff,
When will you add the new videos to to the “diving-into-php-video-series” web page. Having all of the videos on the same page makes it very convienient to watch them. Day 11 is the last link but I know you just made a new one.
This and the jquery series is the best I’ve found. Thanks for taking time to make them.
Mike
May 26th, 2009
I just wanted to say thanks for creating these videos. I have been working on learning PHP for about a month now and these videos are by far the best training tool I have come by. You have a rare talent not found very often of talking in a way that makes sense. <– haha
Some people are cut out to be great teachers and I know you are one of those people. Keep up the good work.
Hamza Oza
June 8th, 2009
I think rather than downloading server it would be better to use a free service like http://www.000webhost.com/171842.html because you get access to PHP and MySQL without any hassle.
Just a thought really.
Victor
June 14th, 2009
Please, could you kindly make these lectures free for download so that I can actually learn while I am offline? I really pay so much to be online and this limits my learning speed and ability.
shawqi
June 28th, 2009
Mr. Jeffrey
thanks a lot,really the best series of video I have found,
but,this series no longer work since three days.
please help us.