RE: [PHP] Timeouts during large uploads, very slow queries etc

2005-03-07 Thread Chris Rose
> >I am running a simple Upload script in PHP using a HTML Form with a
File
> field.  The user can browse their computer and upload a file.  It
works
> great, except for large files, where the browser will timeout.  The
> timeout appears to happen after about 5 minutes.  Any ideas on how to
get
> around this?
> >
> I dont think this is just a PHP problem.
> I 've had it with 2 other scripting languages.
> 
> AFAIK the client browser timesout rather than the upload application.
ie
> the client's browser thinks
> nothings going on and timesout.
> 
> I did read of a nasty fix, where you have a simple frameset where the
app
> is in the main Frame and
> there's a tiny "invisible"  frame where a piece of javaScript
periodically
> refreshes or write's a
> character to the frame to fool your browser.
> 
> Has ANYONE got any experience/views on this
> 
> zzapper (vim, cygwin, wiki & zsh)

http://sourceforge.net/projects/megaupload/

Maybe this will help? I've been looking for a PHP replacement of
something as graceful as ASPUpload and this is the closest I can find.

Thanks.
 
Kind Regards,
Chris Rose

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



RE: [PHP] sorting arrays

2005-03-08 Thread Chris Rose
> Say I create a "matches" array from a set of SQL queries with each
query,
> an entry is added to my matches array. If the name already exists, its
> value
> gets incremented. How can I sort the array based on the highest number
of
> hits?
> 
> What is the sort method? Say this is the array:
> 
> array('lma-bg51' => 1, 'mcr-vh14' => 2, 'gmc-rr21' => 5, 'amh-fg23' =>
1)

http://uk2.php.net/manual/en/function.asort.php

Is that what you're looking for?
 
Thanks.

Kind Regards,
Chris Rose

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