Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-24-2005, 08:35 PM
Joe
Unregistered

Posts: n/a

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.
Reply With Quote
  #2  
Old 01-24-2005, 08:38 PM
Joe
Unregistered

Posts: n/a

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.
Reply With Quote
  #3  
Old 01-25-2005, 09:05 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,920

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
Reply With Quote
  #4  
Old 01-26-2005, 07:29 AM
Joe
Unregistered

Posts: n/a

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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 09:19 AM.




Powered by vBulletin®