Re: [PHP-DB] ftp_put
ini_set() or .htaccess files should do the trick. -Micah On Wednesday 07 December 2005 9:42 pm, Chris Payne wrote: > Hi there everyone, > > > > I'm using FTP to upload a file from a form, the information is stored in a > MySQL DB and then FTP'd to the server. Is it possible - without altering > the php.ini file as I don't have access to this on my clients server - to > be able to upload large files rather than small ones? I know with POST > there are limits, but we're talking about megabytes rather than KB's > needing to be uploaded. They HAVE to be uploaded via some kind of form as > it sends the data to a database such as the file name and location so that > it can easily be found by the system otherwise I'd just tell them to use > normal FTP software. > > > > What's the best way of achieving this? I'm talking file 5-20megs in size. > > > > Thanks everyone. > > > > Chris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] ftp_put
This page tells you which PHP ini variables can be edited and where: http://ca3.php.net/manual/en/ini.core.php This function can set ini variables based on the rules in the page above: http://ca.php.net/ini_set You probably need to modify: - post_max_size - upload_max_file_size - memory_limit - max_execution_time Aaron On 12/7/05, Chris Payne <[EMAIL PROTECTED]> wrote: > > Hi there everyone, > > > > I'm using FTP to upload a file from a form, the information is stored in a > MySQL DB and then FTP'd to the server. Is it possible - without altering > the php.ini file as I don't have access to this on my clients server - to > be > able to upload large files rather than small ones? I know with POST there > are limits, but we're talking about megabytes rather than KB's needing to > be > uploaded. They HAVE to be uploaded via some kind of form as it sends the > data to a database such as the file name and location so that it can > easily > be found by the system otherwise I'd just tell them to use normal FTP > software. > > > > What's the best way of achieving this? I'm talking file 5-20megs in size. > > > > Thanks everyone. > > > > Chris > > >