RE: [PHP] Previous Discussions

2002-05-28 Thread Ian Samuel
Title: RE: [PHP] Previous Discussions





Is anyone aware of previous discussions with php/mysql with 
using file 
inside the db (BLOBs) and integrating php to serve these files? In my 
opinion, I'm sure there's a better way than store to a temp 
file and send 
user the hyperlink, then deleting the temp file. Perhaps 
something with 
output buffering, etc.


Regardless of whether this is a good idea or not, it's fairly easy. Store the file data itself (accessible via fopen($whatever)) in a longblob, then write it back with the appropriate headers (Content-type: iamge/jpeg or whatever) when the time comes. I'd be happy to provide examples if anyone is curious.

Regards,
Ian Samuel




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


RE: [PHP] Intermediate Searching... screen.

2002-05-28 Thread Ian Samuel
Title: RE: [PHP] Intermediate Searching... screen.





What you want to do is post the form, display a searching screen, and then on that same screen... well, like this, I think:

form target=?= $PHP_SELF; ?
input type=text name=foo
input type=submit name=submit value=Submit
/form


? if ($Submit) { 
 echo Searching.br\n;
 go_go_gadget_query();


 // above line takes a while but the aboev is already echoed so
 // they wait


 display_results();
 }
?


Regards,
Ian Samuel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 1:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Intermediate Searching... screen.


I have a part of my site that searches a large database and 
sometimes it
takes more than a few seconds to return the results. When 
searches take
longer, people get antsy and search again. To let them know that the
search is working so they don't double efforts I'd like to have an
intermediate Searching... screen.

I don't have a good idea on how to do this and I'm looking for some
ideas or directions. How do I show one thing while the search 
is running
and another when the search is complete and also not loose the returned
record set?

-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper


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






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