Re: [PHP] Upload Progress

2002-09-09 Thread Jed Verity
You're right about it costing more money. But we had one server handling a bunch of uploads, most of them over 25 MB, and 99% being instigated by very impatient, not very technical, people. People who kept canceling and canceling, despite our directions, because they thought it was stuck or

Re: [PHP] Upload Progress

2002-09-08 Thread Jed Verity
There really isn't a great solution for this, that I know of. It's one of the few things that makes an argument for ASP over PHP, as far as I'm concerned (if you have the luxury of choosing). Below is what I did once to try to get around the problem. It worked *okay*. The bummer is that I had to

Re: [PHP] Upload Progress

2002-09-08 Thread Jed Verity
Sorry, I wrote too quickly. I meant that the file size field value is passed to the bottom frame. And JavaScript is used to resize the gif, not DHTML. (Used to be DHTML when I was adding nbsp instead of resizing an image.) HTH, Jed On the threshold of genius, Jed Verity wrote: There really

Re: [PHP] Upload Progress

2002-09-08 Thread Jed Verity
Yikes, I sort of lied. It's been awhile... Clients uploaded files from an intranet server to an external servier via their browser and ftp_put. It wasn't local machine to remote server. Sorry! Best of luck, Jed P.S. I wonder, though, if there isn't some way to execute a script with exec() to

Re: [PHP] Array - Match

2002-09-07 Thread Jed Verity
Hello Chandu, You can use in_array(needle, haystack) for this. For example, if (in_array(abc,$subs)) {item found, do stuff...} HTH! Jed On the threshold of genius, N. Pari Purna Chand wrote: I have $sub = abc; and $subs[0] = cde; $subs[0] = iyu; $subs[0] = abc; .. .. ..

Re: [PHP] MySQL and Array's REALLY simple question but I'm notGETTING it .. Ugh..

2002-09-06 Thread Jed Verity
Hello, Steve, When you call mysql_fetch_array the first time, you are accessing the data from the first row of your results and then moving the pointer to the next row. So, when you call mysql_fetch_array the second time, it is already starting with the second row of your results. Try something

Re: [PHP] Caching Problem

2002-09-04 Thread Jed Verity
Hi, Roland, There might be a better way to do this, but you could try to use the header() function after your upload takes place to redirect the browser to the same page, using GET. Something like... ?php if ($HTTP_POST_VARS['submit'] == submit) { then upload the file... header(Location:

Re: [PHP] Caching Problem

2002-09-04 Thread Jed Verity
Oops. There was an extra period at the end there (after PHP_SELF). ?php if ($HTTP_POST_VARS['submit'] == submit) { then upload the file... header(Location: http://.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); } ? On the threshold of genius, Jed Verity wrote: Hi, Roland, There might

[PHP] IE won't post on Windows, but will on Mac

2002-09-02 Thread Jed Verity
Hello, All, I've given myself two black eyes and a bloody nose on this one, and I'm sure it's a simple solution. I have a form on the php page entry.php: form name=zForm action=entry.php method=POST input type=text name=txt value=whatever /form At the top of that page, I have the PHP code: ?

Re: [PHP] IE won't post on Windows, but will on Mac

2002-09-02 Thread Jed Verity
thoughts? Thanks again... Jed On the threshold of genius, Martin Towell wrote: Have you checked the $_POST (or $HTTP_POST_VAR) variable to make sure it IS using GET? Martin -Original Message- From: Jed Verity [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 3:19

Re: [PHP] Javascript to PHP?

2002-07-01 Thread Jed Verity
, Jed Verity wrote: I can't find any information on passing JavaScript variables to PHP on the same page (i.e. not through the POST information of a submitted form). Is this because it's not possible? To take the load off the server, I'm trying to do a bunch of string manipulations

[PHP] Javascript to PHP?

2002-06-29 Thread Jed Verity
Hello, Folks, My apologies if this has been asked a thousand times. I've just joined the list. I can't find any information on passing JavaScript variables to PHP on the same page (i.e. not through the POST information of a submitted form). Is this because it's not possible? To take the load

Re: [PHP] Javascript to PHP?

2002-06-29 Thread Jed Verity
Hello, Chris, Many thanks for the thorough description. It does make sense, of course...I was just hoping that there was some kind of funky loophole that small brains like mine couldn't comprehend. Thanks again! Jed I liked it when Chris Shiflett wrote this to me: Jed Verity wrote: I

[PHP] Newbie Q: Fetching vs. Looping

2002-06-29 Thread Jed Verity
Hello Again, Folks, I've been testing this for a while and keep coming up with mixed results. In general, is it faster and more efficient to query a MySQL database once with a large SQL select statement and then loop through the huge resulting table? Or does it make better sense to perform a