Forums

PHP

This topic is locked

Permission Error creating dynamic folder? - PPU

Posted 21 Jul 2003 16:27:58
1
has voted
21 Jul 2003 16:27:58 Andrew Clausen posted:
Hello,

I'm a bit of a newbie on PHP/MySQL , but have gotten pretty far thus far.

I have set up a database that includes paths to 10 files uploaded via Pure PHP Upload (DMX Extension) that also uses the Smart Image Processor to resize the images. I got it all working going to the /upload/ folder and images are resized and placed in there.

However, there are going to be hundreds of images for 200+ villa rentals, so I would like to create a dynamic subfolder in /upload/ that coincides with the Villa Name entered on the form $name

I used the following to accomplish per a tutorial I found at www.dmxzone.net/showDetail.a...older/index.htm

I used "../upload" .$HTTP_POST_VARS['name'] for the path name as directed.

Now, anytime I try to submit this form, I get the error below, whether I submit with or without images:


Not enough permissions

Folder .. can not be created,
Set the permissions of the parentmap correctly
Please correct and try again


I verified the upload dir has permissions 777

When I put the save path to simply "../upload" the error disappears and all works.

Any idea how I can fix the permissions on the upload folder to allow directory creation?

Thanks for any help guys,
Andrew

Replies

Replied 22 Jul 2003 13:28:04
22 Jul 2003 13:28:04 Patrick Woldberg replied:
You are forgetting a slash, use "../upload/" .$HTTP_POST_VARS['name'] as pathname

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------

Reply to this topic