#1
|
||
|
Cannot upload into created folders?
I've got the CHMODS all at 777 even public_html
I can create folders. I just can use them unless I put photos in them FTP. Can't make upload work going into one of "my own folders" It's a SAFE MODE on (host is seriously paranoid about this) issue but I can upload just fine into the "Album" folder? Here's the error message ... =================== Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 32183 is not allowed to access /home/salesd2/public_html/photos/album/Jaquie owned by uid 99 in /home/salesd2/public_html/photos/phPhotoAlbum.php on line 324 =================== Here's my full path setting. Is this correct? It's what works on other PhP scripts. =================== $full_server="/home/salesd2/public_html/photos/album/"; By the way ... the script works exactly the same if I don't use this path? I mean this works just as well? $full_server="./album/"; =================== Here's the URL http://www.salesdepartment.us/photos/phPhotoAlbum.php Your help appreciated. |
#2
|
||
|
Add on
I have the "full path" set at the moment to the setup default which is
$full_server="./album/"; As I said it works the same as the real full path. |
#3
|
||
|
When you make folders I guess you are one of the 'unlucky' that will have to do some stuff manual. Like folder creation and chmod.. It has to do with the safe mode restrictions and file ownership.. files uploaded through the admin panel are owned by apache and files that are uploaded through ftp are yours.. diffrent owners interacting in safe mode do not go well. Try asking him to take off safe mode restrictions in the php.ini file to that specific path: /home/salesd2/public_html/photos/album/*
Or you can bypass his php.ini settings (most likely) by adding this to a .htaccess file and putting it in yout public_html folder. (What is .htaccess?) [code:1:2c8ab8c80e] Options +FollowSymlinks php_admin_flag safe_mode Off [/code:1:2c8ab8c80e] Beware though, this could be against his terms and conditions. Also, it IS NOT safe to chmod your public_html folder writeable to the world.
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#4
|
||
|
Won't EVER happen
Thanks Scott
These people won't take safe mode off anything for anyone. The htaccess alteration shuts the site down completely. They are obviously prepared for that one. I guess I will not be able to use folders at all. Have to create another approach using root area only. Strange that it won't allow uploads to the folders. It's a pain but I could also create the folders and then move photos in and out using FTP. I've dealt with the safe mode issue for a long time. On another subject you mentioned being able to change the coding to adjust the thumbs in proporton. Is that something you could tell me how to set up. I'm somewhat familiar with the coding side. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mission created are invisible | Ace Fr | Delta Force | 3 | 12-13-2010 09:19 PM |
wtf?? Folders just... | Scattergun | Tech Support | 5 | 04-25-2006 08:21 PM |
Sorting Folders | peterc | phphq.Net Forums | 1 | 10-29-2004 02:48 AM |
Uploading Whole Folders?? | ShArP | Feedback / Novahq.net Support | 4 | 10-09-2004 09:55 AM |
Folders? | BeBop | Web design and Programming | 4 | 07-10-2003 01:36 PM |