Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6440
39464 credits Members referred : 374
It's time to use PHP5!
« on: Apr 08, 2006, 01:44:52 AM »
Hello,
I think I wrote a really good upload class and the class works fine on lots of servers.
On some servers I have problems with the chmod values. The script uploads a file to location creates a 1 or 2 resized versions and finally the orig. file. so far zo good. The script creates also not existing directories with a chmod value of 0755. the files getting a value of 0644.
On some servers I need to create the upload folder with a mode 0777 otherwise ther is no permission to upload. creating the folders is not possible and resized file (GD lib.) is getting a 0666. What happens here is there something wrong on the shared host? I thought that php scripts are executed as an owner?
Maybe you can try the php chmod command to make this a little more automated within your script, but propably your host wont allow this.
I can use the script if a new folder is created with 0777 but it's strange, Is this a common configuration of a webhost? don't have this with other hosts.