generate a folder on uploading

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yshaf13
Forum Commoner
Posts: 72
Joined: Mon Apr 03, 2006 7:59 pm

generate a folder on uploading

Post by yshaf13 »

when i upload a file using "move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)" in $target_path there is a path that contains variables-- folders which don't exist-- how do i get php to generate whatever folder is in $target_path?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Code: Select all

mkdir()
Post Reply