how to upload large file ( bigger than 1G) with PHP
how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 09:09:01 von ooooo825
--001636b14c984e52bb0481960b9c
Content-Type: text/plain; charset=ISO-8859-1
hello, guys,
I have tried many ways and was told to use C or Perl. Perl is a stranger to
me and I never use C in a project.
Is there anybody would tell me how to make php interact with C/Perl and how
to maintain sessions during the interacting time ?
thanks in advance!
--001636b14c984e52bb0481960b9c--
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 09:35:42 von vikash.iitb
--00c09f8c2605b658810481966a2b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hi,
You can always change php.ini settings to allow larger file uploads.
*upload_max_filesize =3D 2M*
Increase it to fit your need. You may need to change this as well:
*post_max_size =3D 10M
*
Let me know if it works for you. :)
--
Regards,
Vikash Kumar
--
http://vika.sh
On Fri, Mar 12, 2010 at 1:39 PM, æè¶ wr=
ote:
> hello, guys,
>
> I have tried many ways and was told to use C or Perl. Perl is a stranger =
to
> me and I never use C in a project.
> Is there anybody would tell me how to make php interact with C/Perl and h=
ow
> to maintain sessions during the interacting time ?
>
> thanks in advance!
>
--00c09f8c2605b658810481966a2b--
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 11:08:09 von Rene Veerman
try http://jumploader.com/
it's java+php, and free.
On Fri, Mar 12, 2010 at 9:09 AM, æè¶ wr=
ote:
> hello, guys,
>
> I have tried many ways and was told to use C or Perl. Perl is a stranger =
to
> me and I never use C in a project.
> Is there anybody would tell me how to make php interact with C/Perl and h=
ow
> to maintain sessions during the interacting time ?
>
> thanks in advance!
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 13:41:16 von Ashley Sheridan
--=-LRLBXO7m2QGg2GDDoM2r
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Fri, 2010-03-12 at 18:11 +0530, Devendra Jadhav wrote:
> Always prefer FTP for large file uploads.
>=20
> On Fri, Mar 12, 2010 at 3:38 PM, Rene Veerman wrote:
>=20
> > try http://jumploader.com/
> >
> > it's java+php, and free.
> >
> >
> > On Fri, Mar 12, 2010 at 9:09 AM, æè¶
> wrote:
> > > hello, guys,
> > >
> > > I have tried many ways and was told to use C or Perl. Perl is a stran=
ger
> > to
> > > me and I never use C in a project.
> > > Is there anybody would tell me how to make php interact with C/Perl a=
nd
> > how
> > > to maintain sessions during the interacting time ?
> > >
> > > thanks in advance!
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>=20
>=20
I've noticed that large uploads over http seem to behave a little
unpredictably at times, and aren't something I'd rely on. FTP is
definitely the way to go, and there are plenty of Java applets that
allow you to do this.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-LRLBXO7m2QGg2GDDoM2r--
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 13:41:23 von Devendra Jadhav
--001636d3422f5c851a048199d918
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Always prefer FTP for large file uploads.
On Fri, Mar 12, 2010 at 3:38 PM, Rene Veerman wrote:
> try http://jumploader.com/
>
> it's java+php, and free.
>
>
> On Fri, Mar 12, 2010 at 9:09 AM, æè¶ =
wrote:
> > hello, guys,
> >
> > I have tried many ways and was told to use C or Perl. Perl is a strange=
r
> to
> > me and I never use C in a project.
> > Is there anybody would tell me how to make php interact with C/Perl and
> how
> > to maintain sessions during the interacting time ?
> >
> > thanks in advance!
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--=20
Devendra Jadhav
दà¥à¤µà¥à¤à¤¦à¥ र =
à¤à¤¾à¤§à¤µ
--001636d3422f5c851a048199d918--
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 20:37:20 von mike503
On Fri, Mar 12, 2010 at 4:41 AM, Ashley Sheridan
wrote:
> I've noticed that large uploads over http seem to behave a little
> unpredictably at times, and aren't something I'd rely on. FTP is
> definitely the way to go, and there are plenty of Java applets that
> allow you to do this.
FTP is not a realistic option, for a multitude of reasons.
a) mapping an HTTP request and user -> FTP account / "pick this file up"
b) firewall issues
c) additional services having to be enabled and routed to on the server side
While I do agree FTP is FILE transfer protocol, it still isn't the
right solution IMHO. Ideally, HTML5 will provide a more industry
standard method (IIRC, a coworker already pointed out something in the
spec for it, but I forget)
A very workable solution we've came up with has been using Google Gears + PHP.
Re-using the browser and HTTP conversations provides us multiple benefits:
a) Cookie support - to identify the user
b) supports HTTP and HTTPS
c) Firewalls are not an issue - reuses the same proxy settings
The difference between standard file upload using a single POST vs.
our method is key - it's chunking the file. Google Gears has this
support, Java can too; send up portions of the file at a time, and
either glue it together on the fly on the server, or take all the
chunks and merge them all at once at the end. By doing it in a chunked
format, it allows us to also re-transmit failed chunks and treat files
of any size in "bite size chunks" - with a little bit of Javascript,
PHP and Gears, we can support files of any size (within filesystem and
OS limits) and it does not require -any- tweaking of the webserver. It
is chunks of data sent to the server using standard POSTs and small
enough to fit under even small PHP and webserver memory limits (and
could always be configurable) - no more suhosin.memory_limit,
memory_limit, post_max_size, upload_max_filesize to fuss with.
It's a shame that Google had to decide to stop developing and
maintaining Gears. It was a lightweight, perfect solution.
We're working on a Java-based version instead now. Lightest footprint
we can possibly get in Java, but it's the only applet language that
has all the support we need for chunking, cross-browser,
cross-platform, etc.
I believe our plan is to release it out to the public so people can
enhance it, use it, do whatever...
For now though, Gears works pretty awesome for us, a handful of our
users have complained though Gears won't install for them (not sure
why) and there is no support for Snow Leopard, I believe. So we're
starting to hit the point where it isn't our magical solution anymore.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 20:51:33 von Ashley Sheridan
--=-nVijC5lvzwP2ZAOfwQ86
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Fri, 2010-03-12 at 11:37 -0800, Michael Shadle wrote:
> On Fri, Mar 12, 2010 at 4:41 AM, Ashley Sheridan
> wrote:
>
> > I've noticed that large uploads over http seem to behave a little
> > unpredictably at times, and aren't something I'd rely on. FTP is
> > definitely the way to go, and there are plenty of Java applets that
> > allow you to do this.
>
> FTP is not a realistic option, for a multitude of reasons.
>
> a) mapping an HTTP request and user -> FTP account / "pick this file up"
> b) firewall issues
> c) additional services having to be enabled and routed to on the server side
>
> While I do agree FTP is FILE transfer protocol, it still isn't the
> right solution IMHO. Ideally, HTML5 will provide a more industry
> standard method (IIRC, a coworker already pointed out something in the
> spec for it, but I forget)
>
> A very workable solution we've came up with has been using Google Gears + PHP.
>
> Re-using the browser and HTTP conversations provides us multiple benefits:
> a) Cookie support - to identify the user
> b) supports HTTP and HTTPS
> c) Firewalls are not an issue - reuses the same proxy settings
>
> The difference between standard file upload using a single POST vs.
> our method is key - it's chunking the file. Google Gears has this
> support, Java can too; send up portions of the file at a time, and
> either glue it together on the fly on the server, or take all the
> chunks and merge them all at once at the end. By doing it in a chunked
> format, it allows us to also re-transmit failed chunks and treat files
> of any size in "bite size chunks" - with a little bit of Javascript,
> PHP and Gears, we can support files of any size (within filesystem and
> OS limits) and it does not require -any- tweaking of the webserver. It
> is chunks of data sent to the server using standard POSTs and small
> enough to fit under even small PHP and webserver memory limits (and
> could always be configurable) - no more suhosin.memory_limit,
> memory_limit, post_max_size, upload_max_filesize to fuss with.
>
> It's a shame that Google had to decide to stop developing and
> maintaining Gears. It was a lightweight, perfect solution.
>
> We're working on a Java-based version instead now. Lightest footprint
> we can possibly get in Java, but it's the only applet language that
> has all the support we need for chunking, cross-browser,
> cross-platform, etc.
>
> I believe our plan is to release it out to the public so people can
> enhance it, use it, do whatever...
>
> For now though, Gears works pretty awesome for us, a handful of our
> users have complained though Gears won't install for them (not sure
> why) and there is no support for Snow Leopard, I believe. So we're
> starting to hit the point where it isn't our magical solution anymore.
>
It's not much trouble to map the FTP to a file and have the right
permissions, and FTP is a doddle to set up on a server. I'd say a darn
sight less work than rolling your own mechanism in Java.
Lastly, I don't think firewalls are that big an issue, as most firewalls
I've seen will allow outgoing FTP connections from a users computer by
default.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-nVijC5lvzwP2ZAOfwQ86--
Re: how to upload large file ( bigger than 1G) with PHP
am 12.03.2010 22:18:04 von mike503
On Fri, Mar 12, 2010 at 11:51 AM, Ashley Sheridan
wrote:
> It's not much trouble to map the FTP to a file and have the right permissions, and FTP is a doddle to set up on a server. I'd say a darn sight less work than rolling your own mechanism in Java.
Well, mechanisms already exist. We're just trying to create a cleaner
one that works with the browser's DOM so it looks native in the
browser, has the chunk support, etc.
FTP servers can be "easy" to setup but mapping who uploaded what and
keeping that secure is a pain. Do you use one generic account, or one
random account per user? If one generic account, how do you keep
others from downloading someone else's content? etc? Lots of questions
come to mind. But lunch is more important... :)
> Lastly, I don't think firewalls are that big an issue, as most firewalls I've seen will allow outgoing FTP connections from a users computer by default.
Must not deal with that many corporate firewalls :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php