Thank you all for your tips and solutions !!
I use chmod and my upload form works fine ;)
Eric
Le 2007-05-09 à 10:23, Daniel Brown a écrit :
PHP has two functions that may help you here, Eric --- chmod() and
chown().
http://php.net/chmod
http://php.net/chown
It should be enough
I was thinking the same thing, Richard, but didn't say anything because
of my limited experience with MacOS. I know it's built on BSD, but to be
honest, I have no clue what may have changed over the years.
On 5/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
On Wed, May 9, 2007 9:15 am, Eri
On Wed, May 9, 2007 9:15 am, Eric Trahan wrote:
> After some other tests, I think the problem is with the rights of the
> file.
>
> I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
> 4.4.4.
>
> Settings in PHP:
> file_uploads: On
> upload_tmp_dir: no value (so it uploads in /v
Eric Trahan wrote:
Is there a way to change the owner or the group of a file in PHP.
http://uk2.php.net/chown
But remember the chown will fail if the user Apache is running under
does not have sufficient rights to perform the task.
Cheers,
Rich
--
Zend Certified Engineer
http://www.coreph
PHP has two functions that may help you here, Eric --- chmod() and
chown().
http://php.net/chmod
http://php.net/chown
It should be enough to chmod($filename,0644); the file if it's just an
image, or chmod($filename,0755); the file if it's a script.
On 5/9/07, Eric Trahan <[EMAIL PRO
After some other tests, I think the problem is with the rights of the
file.
I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/
4.4.4.
Settings in PHP:
file_uploads: On
upload_tmp_dir: no value (so it uploads in /var/tmp/)
upload_max_filesize: 2M
My destination folder is
Eric,
If you're checking the filesize via FTP, a web-based file manager, or
even the shell if it's a cross-platform upload, it can give bad data. Try
downloading the file and seeing if it's still working. If it does, try
uploading it via FTP and having a script check the md5 hash on the t
Have you tried your code on another server?
--
itoctopus - http://www.itoctopus.com
"Eric Trahan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have a form to upload file on my web server, so user can upload their
> images.
>
> The upload work. The user file is uploa
Have you tried to change the defualt timeout value from 30 secs to something
larger or even -1 in the php.ini file?
Could be a problem to upload 4mb in 30 secs if your on a slow conn..
/Micke
"FyiÎ?rk µérkt" <[EMAIL PROTECTED]> skrev i meddelandet
004001c1e12d$43ca16a0$020296c2@actarus">news:
9 matches
Mail list logo