ftp_put

ftp_put

am 08.12.2005 06:42:15 von Chris Payne

------=_NextPart_000_0001_01C5FB90.3CBD0490
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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


------=_NextPart_000_0001_01C5FB90.3CBD0490--

Re: ftp_put

am 08.12.2005 07:01:50 von Aaron Koning

------=_Part_12660_2932289.1134021710044
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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 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 ther=
e
> 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
>
>
>

------=_Part_12660_2932289.1134021710044--

Re: ftp_put

am 08.12.2005 07:07:42 von Micah Stevens

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: ftp_put

am 08.12.2005 12:35:09 von El Bekko

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
>
>
Max size defined in PHP.ini is 2MB, and I don't think you can change
that without having access to the file...

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