View Single Post
  #150 (permalink)  
Old 02-17-2008, 02:17 PM
Peter Peter is offline
Constant Pligger
 
Join Date: Oct 2006
Posts: 125
Thanks: 3
Thanked 1 Time in 1 Post
Hi, I have a server change and get this:

We had php engine running a CGI on the old server. We have now upgraded PHP to its latest stable version and it is running as PHP SUEXEC now. The difference is the php scripts run under the ownership "nobody" on old server whereas here it runs with the same username as that of your account. Please note that this provides a highly stable, reliable and secure environment.

You can fix your scripts by just a few modifications. Just add a umask(0); or chmod( $uploaded_file , 0644 ); to your script just after the line for uploading the file.

My problem is that the image uploaded gets 600 write permissions, so when clicking the thumbnail it just say loading and nothing comes up.

I have to manually change the image permissions to 644 so it wirks as expected.

Can someone please help me telling me where to add the code to fix this.

Thanks.
Reply With Quote