As some of you might know, I’ve been running a weekly video series on the ThemeForest Blog that teaches new developers exactly how to work with PHP. Once or twice a week, I release a new “episode” that builds upon the previous days. To expand our viewership, I’ve decided to release “Day 13″ here. Be sure to subscribe to In the Woods to stay up to date on each new release.
Why do it this way? Because people don’t always have the time to watch sixty minute videos. By posting short ten minute episodes, beginners can easily digest each lesson, rather than become overwhelmed with more information than their minds are able to consume. If you’re new to PHP, and are not familiar with this series, I hope you’ll subscribe and become a new viewer.
Day 13: Uploading Files
Don’t worry; it’s not required that you view the previous days first. Each new episode is a self contained tutorial. However, the concepts build upon what you’ve already learned!
In this lesson, you’ll learn how to upload files, and how to use regular expressions to ensure that inappropriate file types aren’t uploaded to your server.
Previous Screencasts
- Day 1: Installation
- 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: Including Files
- Day 7: Regular Expressions
- Day 8: Strings
- Day 9: First-Time Visitors
- Day 10: Getting Started With MySql
- Day 11: SQL Insert Statements
- Day 12: The File System
- Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.









Jeff!
When will we see Day 14? I hope you haven’t died from exhaustion yet
Hi Jeff, yes i’m also hoping you do a day 14! This is great stuff.
I’m Working on a website with gallery for a friend and i didn’t know how to do the upload part.. this tutorial is very great i’ve read about ten twenty tutorials about file upload but no other tutorial was explained part by part like this one know i know what i have to do.. maybe in the next tutorial or i dunno do onther tutorial for multiple file upload and inserting the data into mysql for pictures.. or other stuff.. would be very nice and a great help for lot’s of ppl.
I wanna see a Intermediate Series named, “A Firm Grip on PHP”.
Nice! always good to go over php
When will the series continue? or will it?
I enjoyed this.
Maybe branch to another level.
This is so great. Thank you very much! And please, make this a 300 days Diving into PHP marathon!
Is there a day 14? Or does this series continue on under a different name?
I love your tutorials, and I’ve tried to learn PHP before, and have never understood it, but these tutorials really help me to understand the language better.
I appreciate all the effort you put into these Jeff, and hope you continue to do them.
great man! keep it up
Dude, I’d pay for these. Don’t stop.
Sob sob sob… is day 13 the end?
I want to learn more
First of all: I love these tutorials. I’m watching them all, as I watched the awsome serie jquery for beginners.
There is a little mistake in line 12 of the index.php
$_FILES['file']['size'] > 300000) does not work. You see it in the tutorial on minute 17, where the file is not uploaded and the message “congrats…” ist thrown out.
If the file is larger than the size defined in line 42 :
input type=”hidden” name=”MAX_FILE_SIZE” value=”300000″
the $_FILES-array-values of ‘error’ and ’size’ are changing. ‘error’ becomes ‘2′ and (that is the key:) ’size’ bekomes ‘0′.
Something like $_FILES['file']['size'] == ‘0′ && $_FILES['file']['error'] ==’2′ should work.
@jeff Please go on making these tutorials. I love them all. Didn’t find anything helpful like this in german.
beneblack
more php tutorials like this please.
best video tutorial for a beginner like me.Thanks Jeffrey Way.i want to know how to create a user image crop application after upload.waiting for that
Are there not going to be any more of these?
Can’t keep asking it…. please keep this going, either here or “there”
Dont stop! keep going all the way to 100 videos. there is so much more to learn with MySQL etc…
We love it, keep it coming!
Jeff-
FYI
http://blog.themeforest.net/screencasts/diving-into-php-video-series/
Doesn’t contain links to the last few days of the series, but I did find them here after some googleing:
http://net.tutsplus.com/videos/screencasts/diving-into-php/
Hi Everyone, I just discovered this amazing tutorials and I’m downloading them from iTunes. I just downloaded the chapter 2 and it looks funny, I downloaded it twice and stills looking backwards or something, here’s a picture of the image I hope this can be fixed or please if you tell me where can find the original video to download I will be appreciated guys!
the image: http://screencast.com/t/NzhlMmE2
OK, these are great, thanks Jeff, and my dyslexic learning curve thanks you too. LOL.
OK, watching day 3 on global variables and I get an error message:
Notice: Undefined variable: _post in C:\wamp\www\Day3\page2.php on line 11
in my WAMP, php is not recognizing the super globals. I have checked php.ini and settings are…
variables_order = “GPCS”
request_order = “GP”
register_globals = On
Silly me, I didn’t put the super globals in all caps.
Don’t mind me, it was late. LOL
Thank you for these great tutorials. You’re the first person I’ve come across who speaks logically and clearly for newbies and best of all without using unnecessary jargon which generally makes a mystery of all this programming stuff! Really useful t