Re: [PHP] Error Querying Database

2010-12-16 Thread Phred White
It seems like there are several questions emerging, but ... Try echoing your query to the page by putting echo $query in your code before you call mysql, then copy it and run it in phpmyadmin. If it runs then you know your problem is somewhere else like the connection. This can really help you

Re: [PHP] APC - Upload progress problem. apc

2009-09-17 Thread Phred White
On Sep 17, 2009, at 2:09 PM, Andrea Giammarchi wrote: I wonder if massive uploads, like the ones you're coding for, really aren't that common. I can imagine hard-coding that 3600 myself, and thinking, "no way someone's going to be uploading a single file for longer than an hour, or even clos

Re: [PHP] how i assign a js variable to a php variable

2009-09-17 Thread Phred White
On Sep 17, 2009, at 2:43 PM, Andrea Giammarchi wrote: I have to disagree Ash, you can pass js variable values to PHP but only through a page load. Then you could use $_REQUEST, $_POST, $_GET to retrieve it. I have done this before. And I am sure Ash does it on daily basis, the problem

Re: [PHP] APC - Upload progress problem. apc

2009-09-16 Thread Phred White
On Sep 17, 2009, at 12:27 AM, Ben Dunlap wrote: upload keys, and any keys created via apc_add(). This listing includes a Timeout value, which is "none" for the apc_add keys and 3600 for the upload keys. Somewhat suspicious, I'd say, since the keys stop being working after 1 hour of use.

Re: [PHP] APC - Upload progress problem. apc

2009-09-16 Thread Phred White
d be able to. I have looked through Apache/unix to see if this limit refers to something set deeper in the system, but everything that I know of that I can loosen up, I have. Any ideas? Thanks, Phred On Sep 15, 2009, at 8:51 AM, Nathan Nobbe wrote: On Tue, Sep 15, 2009 at 12:05 AM, Phred

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
a stupid conclusion. Your, phred On Sep 14, 2009, at 8:33 PM, Nathan Nobbe wrote: On Mon, Sep 14, 2009 at 4:50 PM, Phred White wrote: Andrea: I have in my php.ini: apc.rfc1867 = On apc.rfc1867_freq = 10K The apc.php diagnostic/report page says it is on. It just returns false. I will lo

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
Andrea: I have in my php.ini: apc.rfc1867 = On apc.rfc1867_freq = 10K The apc.php diagnostic/report page says it is on. It just returns false. I will look at your zip file and see if something jumps out. Thanks, Phred On Sep 14, 2009, at 4:04 PM, Andrea Giammarchi wrote: Can you write he

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
On Sep 14, 2009, at 3:30 PM, Nathan Nobbe wrote: On Mon, Sep 14, 2009 at 2:21 PM, Phred White wrote: Andrea: I see. That is a cool idea, but you are right, concurrency could definitely be a problem. That's what APC is supposed to solve because it tags the file with a unique ID

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
Andrea: I see. That is a cool idea, but you are right, concurrency could definitely be a problem. That's what APC is supposed to solve because it tags the file with a unique ID. But I can't get that sucker to return the value to me! If I could get APC to work I would be done. I also start

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
On Sep 14, 2009, at 9:15 AM, Tom Worster wrote: with files that big, perhaps could write client js that polls a script on the server that simply returns the file size(s)? if you want a thermometer, use the number to resize a colored div. Thanks Tom, for weighing in. Having js poll a s

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
Hey Andrea: Ahhh yes, I've come full circle. I STARTED with php-apc. I really wanted an all-PHP solution, but apc_fetch() ALWAYS returns false a value for uploads. I can apc_add() something and apc_fetch it... but not for uploads : ( The apc.php summary page they supply that sows all the

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Phred White
On Sep 13, 2009, at 8:50 PM, Eddie Drapkin wrote: On Sun, Sep 13, 2009 at 9:38 PM, Phred White wrote: On Sep 13, 2009, at 7:34 PM, Eddie Drapkin wrote: On Sun, Sep 13, 2009 at 8:29 PM, Phred White > wrote: On Sep 11, 2009, at 1:17 PM, Eddie Drapkin wrote: On Fri, Sep 11, 2009 at 1

Re: [PHP] APC - Upload progress problem. apc

2009-09-13 Thread Phred White
On Sep 13, 2009, at 7:34 PM, Eddie Drapkin wrote: On Sun, Sep 13, 2009 at 8:29 PM, Phred White wrote: On Sep 11, 2009, at 1:17 PM, Eddie Drapkin wrote: On Fri, Sep 11, 2009 at 1:02 PM, Phred White > wrote: Hey folks.. Anybody ever use APC to show upload progress? It sounds rea

Re: [PHP] APC - Upload progress problem. apc

2009-09-13 Thread Phred White
On Sep 13, 2009, at 7:34 PM, Eddie Drapkin wrote: On Sun, Sep 13, 2009 at 8:29 PM, Phred White wrote: On Sep 11, 2009, at 1:17 PM, Eddie Drapkin wrote: On Fri, Sep 11, 2009 at 1:02 PM, Phred White > wrote: Hey folks.. Anybody ever use APC to show upload progress? It sounds rea

Re: [PHP] APC - Upload progress problem. apc

2009-09-13 Thread Phred White
On Sep 11, 2009, at 4:01 PM, tedd wrote: At 2:17 PM -0400 9/11/09, Eddie Drapkin wrote: On Fri, Sep 11, 2009 at 1:02 PM, Phred White wrote: Hey folks.. > Anybody ever use APC to show upload progress? Nope, I choose not to complicate my life. :-) Instead, I give the user one of th

Re: [PHP] APC - Upload progress problem. apc

2009-09-13 Thread Phred White
On Sep 11, 2009, at 1:17 PM, Eddie Drapkin wrote: On Fri, Sep 11, 2009 at 1:02 PM, Phred White wrote: Hey folks.. Anybody ever use APC to show upload progress? It sounds really cool, but apc_fetch always returns false a value for uploads. I can apc_add something and fetch it, but not for

[PHP] APC - Upload progress problem. apc

2009-09-11 Thread Phred White
Hey folks.. Anybody ever use APC to show upload progress? It sounds really cool, but apc_fetch always returns false a value for uploads. I can apc_add something and fetch it, but not for uploads : ( (set-up: php-apc 3.0.19, Apache2, php 5.2.10, no suhosin patch) There is little info to googl