Re: best" upload method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I use file upload, it's faster than ftp because the ftp conection and login
process takes a few seconds.

You have to see that the permissions in each method are diferent. Some times
you cannot delete a file copied with ftp useing the unlink() function unless
you change the chmod. If you used the upload method you can use unlink() but
not ftp_delete().

It has solutions but with a little of complexity. That's why I recomend the
upload method and the functions copy() and unlink() for moveing and deleting
files. You can use also the chmod() function with this method to change
permissions.


"Open-Mind" <open-mind@home.ro> escribió en el mensaje
056801c37897$534b1450$ac6ce9d5@homep524g0a63d">news:056801c37897$534b1450$ac6ce9d5@homep524g0a63d...
> which is the "best" upload file method ?
> file uploads or FTP commands from PHP
>
> thanks

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux