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.

Download the Source Code

Day 1: Downloading the Language

Links from the Screencasts

Continue On…


Comments

Leave a Comment
  1. Really looking forward to this series Jeffery. Can’t wait for the Advanced stuff but you need to start somewhere.

    -Brenelz

  2. Thanks! For 98% of you - this first video is to elementary. But we’ll work our way up!

  3. This sounds like its going to be interesting.

  4. Free video tutorials on php, as well as advanced topics I haven’t seen something this amazing since sliced bread! Thank you so much :D

  5. I want one for Ruby on Rails please

  6. Pretty basic stuff. Hope you do one on a user system.

  7. 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)

  8. @Brenelz

    - Yes

    - Yes

    - Maybe. That might be too complicated for a “beginners” series. But, we’ll see.

  9. Great job. :D Whenever I say MySQL, I say My - S - Q - L. XD

  10. @Vasili - As far as I’m aware, either pronunciations are acceptable.

  11. PLEASE TEACH US OOP!

  12. Great, thanks for starting this. I was just about to get back to PHP again, so this if very timely.

  13. Greaaat!! but can’t i use IIS 7 and MSSQL ?

  14. @Yassir - Yes, you can.

  15. 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.

  16. 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!

  17. @Jaysun - Did you read the title of the series?

  18. @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!

  19. @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 ?

  20. Really excited for this series. I’m a n00b, but I think with your fine skills I’ll do just fine.

  21. 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.

  22. @Brenelz & @Jeffrey

    OOP would be great as I always get a bit stuck on that!

  23. Finally a good Basics of PHP Screencast. Followed all the jQuery tuts, plan to watch all of these

  24. 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.

  25. 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.

  26. 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.

  27. 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

  28. how often will this series be published?

  29. great first cast, looking forward to the rest of them. Please, PLEASE work up to and go over OOP!

  30. @Mike - There will be a new entry every other day or so. Day 2 will be posted tomorrow.

  31. @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.

  32. 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?

  33. 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.

  34. @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.

  35. 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 :)

  36. Ae! That is great! = )

  37. 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!

  38. Thank you!!!
    i loved your jQuery series, and i can´t wait to get my hands around this one!!

    keep up the good work!

  39. 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 :)

  40. 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.

  41. Wow man, great video. Please it going…. Thx :)

  42. 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

  43. @Brenelz

    It’s best pratice to do validantion on both sides, because theuser can turn off javascript.

  44. Looking forward to this series. I already know some PHP, but still im happy that you have made these video-tutorials. Thanks :D

  45. 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.

  46. Good job .

  47. Hey Jeff

    Is there any problem with my previous comment! cause I don’t see it. Some moderation issues?

  48. Hehe, never saw so many comments on themeforestblog :D I really looking forward to it. Great thing ;D!

  49. Great start!! Looking forward to following this series.

  50. 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

  51. 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?

  52. 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. :)

  53. @Wassim - They weren’t deleted; I just need to sleep! They’ve been accepted.

  54. Good to hear this Jeff :-)

  55. Very cool. Can’t wait for the rest of the lessons. :)

    Thank you, Jeffrey!

  56. Can’t wait for the nuts and bolts. Especially relational and querying a DB.

  57. Gravatar

    Willabee Wombat

    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!

  58. awesome.. will come back every day

  59. For mac users ,you could also use Wamp and Coda. I believe osx also has a built in server which coda utilizes.

  60. Hey Jeff, maybe OOP could be a subject?

    Thanks.

  61. 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.

  62. 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!

  63. Is there a way to download the videos or get ‘em as podcasts?

  64. Very nice! I am very happy to see a series on php! Great work Jeffery

  65. @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 ..

  66. 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!

  67. looking forward to this!

  68. 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…

  69. @ 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

  70. ilias thank you very much :) great add-on

  71. wooohooo … great! finally this could be the way I’ll learn PHP. Please go on and upload the next lesson!

  72. Woo!

    ..that is all :)

  73. 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

  74. Great to see a screencast tutorial on php jeffery.Looking forward to more lessons.

  75. 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.

  76. Luv it!

    Keep going :)

  77. Whoo ill watch them all ;)

  78. Jeffrey, how i can contact with U ?

  79. Grate tutorials..tnx alot

  80. 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?

  81. Hey guys. I’m using Windows 7 beta with rocket dock.

  82. @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!

  83. “It worked”!

    Thank you!

  84. is there anyway i can download this these? I would much rather have them on my computer.

    Thanks

  85. Gravatar

    John Dangerous

    So is that a rap? What happened to the rest of the series?

  86. @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.

  87. 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.

  88. i liked your diving into PHP so much.. i signed up for the subscription… i can’t wait…. for more….

  89. 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 !

  90. 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!

  91. Gravatar

    Marco Castro

    Great series… thank you!

  92. 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)

  93. 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

  94. Jeff - This is really great stuff. Thanks for putting the time in. Looking forward to watching the whole series.

  95. Excellent tutorial, I know this is going to be a great series!

  96. I love you for this! <3

  97. 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

  98. 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?

  99. You need to updates this overview page - there is already lesson 13 out :)

  100. Wow!!! This blog is fantastic!!

  101. Thank you very much…
    PLEASE feep make this kind of tutorials.

    I began to learn from it today ! you are great !

  102. Keep Subscribing ppl let’s support Jeff as much as we can :D
    Thanks Jeff a lot for another great series. :worship:

    P.S: After this series please do one on Ruby or ASP.net

  103. I can ‘t watch it!!!

  104. Gravatar

    Chuck Fuqua

    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.

  105. 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.

  106. 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.

  107. 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.

  108. 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.

Add a Comment

Name Email Website

Note: The avatars shown next to comments are Gravatars. You can get a Gravatar account for free and any other site that supports it will show your avatar too!

 

Trackbacks

Leave a Trackback