Uploading to variable folder

See all posts See thread Reply

Re: Uploading to variable folder new!
by colin, 16 years, 12 months ago
When you call process(), you set the name of the destination directory. The class will also create the directory for you if it can.

So for instance, you can do:
$name = $_SESSION['name'];
$handle->process('/home/' . $name . '/pics/')
Reply
Re: Uploading to variable folder new!
by SilentMercy, 16 years, 12 months ago
Thank you! I am new to php and just learning. I was just missing the ' ' before and after the variable name.Reply