Lifelesspeople.com

 Forum FAQsForum FAQs  Knowledge BaseKnowledge Base  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   WikiWiki   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File Uploading Problems

 
Lifelesspeople.com Forum Index -> Web Architects' Abode
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
Scott
tutorialtoday.com


Joined: 24 Mar 2005
Posts: 2634
Location: Mississauga, Ontario

PostPosted: Tue Dec 25, 2007 5:15 pm    Post subject: File Uploading Problems Reply with quote

I am having problems with my script on another server. I am trying to just upload an image, but the form data is processed but the image is not uploaded, it is just ignored. There is no error messages from the script (PHP) and I can't find any errors in the server error log.

Is there some sort of setting that Apache could have which would disallow file uploads through HTTP? I checked phpinfo() and the setting 'file_uploads' is on.
_________________
Tutorial Management Script - Version 1.4 Released
TutorialToday - Up and running, submit your tutorials!
Linux Tutorials - Coming Soon
Back to top
 
LP-SolidRaven
Dictator of the Dump


Joined: 06 Jun 2004
Posts: 7193
Location: The cheese is made out of moon

PostPosted: Wed Dec 26, 2007 4:51 am    Post subject: Reply with quote

Try a print_r() of $_REQUEST or $_FILES if those are empty it's likely apache or a firewall is trying to block it.
_________________
Quote:

<bart416> I just realized something
<bart416> we celebrate the fact that this piece of rock made one rotation around a glowing ball of plasma that is kept together due to its own gravity well
<njsg> HAPPY NEW YEAR
<Easter> ^^
Back to top
 
Scott
tutorialtoday.com


Joined: 24 Mar 2005
Posts: 2634
Location: Mississauga, Ontario

PostPosted: Wed Dec 26, 2007 4:13 pm    Post subject: Reply with quote

Well I found the problem and fixed it. For some reason the server wouldn't report errors. I didn't have error_reporting(0) anywhere and I tried doing (at different levels) but it doesn't report any PHP errors at all.

I figured it was a permissions problem though, I guess for this server I have to set full permissions to the directories with images being written to them.

Another question though, when people install this and I have set the required directories to have full permissions, will those directories keep them? When the upload the files, will the directories keep the permissions?
_________________
Tutorial Management Script - Version 1.4 Released
TutorialToday - Up and running, submit your tutorials!
Linux Tutorials - Coming Soon
Back to top
 
LP-SolidRaven
Dictator of the Dump


Joined: 06 Jun 2004
Posts: 7193
Location: The cheese is made out of moon

PostPosted: Thu Dec 27, 2007 2:52 am    Post subject: Reply with quote

as long as you don't chmod() them I don't see what could happen.
_________________
Quote:

<bart416> I just realized something
<bart416> we celebrate the fact that this piece of rock made one rotation around a glowing ball of plasma that is kept together due to its own gravity well
<njsg> HAPPY NEW YEAR
<Easter> ^^
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Web Architects' Abode All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com