Help - Search - Members - Calendar
Full Version: Need Help With Php Upload Script
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
BCS BEST Robotics
So the title and subtitle pretty much say everything. I've got a PHP picture upload script. It has to move the temp upload to my upload folder, but move_uploaded_file does not have permission, due to safe mode, to access the temp image stored on the server (it's above my root directory). Is there a way i could get around this, maybe by just getting it to upload the file directly to my upload folder instead of having to move it after it uploads to a temp folder?
Any help is greatly appreciated.
NaRzY
No. Safe Mode is switched on for security reasons.

Jacob.
BCS BEST Robotics
QUOTE(NaRzY @ Oct 5 2008, 02:16 AM) *
No. Safe Mode is switched on for security reasons.

Jacob.

I'm not trying to like dodge the security measures, I'm simply wondering if there is something I can do to make my script work.
What about using an FTP php function to upload the file to one of the directories I control?
NaRzY
The answer is no. It is on for a reason and IS NOT GOING TO BE TURNED OFF.

Jacob.
BCS BEST Robotics
QUOTE(NaRzY @ Oct 5 2008, 02:36 AM) *
The answer is no. It is on for a reason and IS NOT GOING TO BE TURNED OFF.

Jacob.



...Are you even bothering to read my posts? I'm just specified that I don't want you to tun of safe mode. I want to know if know if there is another method to get my uploaded files out of the temp directory which apparently I have no access to.
Trippin7464
I'll take the less rude approach. Safe mode is on and alot of php features are disabled to prevent you from doing alot of abusive things with the hosting. File hosting is one of those things. I understand you may want this just for yourself, but when it's almost as simple to upload via FTP there is no reason to allow you to upload via php.
BCS BEST Robotics
QUOTE(Trippin7464 @ Oct 5 2008, 03:15 AM) *
I'll take the less rude approach. Safe mode is on and alot of php features are disabled to prevent you from doing alot of abusive things with the hosting. File hosting is one of those things. I understand you may want this just for yourself, but when it's almost as simple to upload via FTP there is no reason to allow you to upload via php.


The thing is, I wanted to allow my users to do it without them having to use FTP. I guess there's no safe way to do it tho. It just frustrates me that i don't have access to my own tmp directory. O well.
swordz
I'm sure I've found a file-upload script tutorial on this site. I'll try to find it.

swordz

EDIT: I was right - here. haven't tried it to see if it works, but if it's here, it would be stupid for it to not be allowed!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.