|
Posted by Erwin Moller on 07/31/06 12:47
bizt wrote:
>> To check if this is the case:
>> 1) check which directory is used to by PHP to store tempfiles,
>> 2) check its filepermissions for user PHP (apache/nobody/www-data,
>> whatever that is in your case).
>
> Thanks for that
>
> Now, I purchase my webspace from a hosting company. Would I, in most
> cases, have access to the temp dir and would I be able to change the
> file permissions?
Yes, under most setups you have both write and read permissions on such a
temp dir.
Of course, the filepermissions of the files you want to access (via
move_uploaded)file()) IN the tempdir is what really matters.
Maybe your hostingcompany made PHP store files as the PHP-user with no
readrights, which sounds very strange to me.
You can check this yourself by using php_info(), and see what you can find
out about the tempdirectory. If you have shellaccess you can see the
directorypermissions yourself.
I contacted my hosting company and they made some
> changes that allowed it to work but they didnt give much info into what
> was carried out.
Good it works now. Bad they didn't give you a short description on what they
changed. That way it is hard to learn what went wrong.
>
> Cheers
>
> Burnsy
Regards,
Erwin Moller
[Back to original message]
|