Re: [PHP] Question: Sorting through table headers?

2009-09-14 Thread Jim Lucas
Parham Doustdar wrote: Hello there, I've been asked to create something like the tables you usually see, where the headers are actually links and when you click the links, the table gets sorted based on the header. Are there any classes that you know of that would do the job? My current idea i

RE: [PHP] Fixing the path

2009-09-14 Thread Arno Kuhl
-Original Message- From: Rico Secada [mailto:coolz...@it.dk] Some time ago I developed a small web application that a bunch of users has installed. I have always used the DOCUMENT_ROOT for my includes, but the other day I installed the application in a subdirectory, and as you've guessed

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:02 P

Re: [PHP] Question: Sorting through table headers?

2009-09-14 Thread Marcus Gna?
Jim Lucas wrote: > Parham Doustdar wrote: >> Hello there, >> I've been asked to create something like the tables you usually see, >> where the headers are actually links and when you click the links, the >> table gets sorted based on the header. Are there any classes that you >> know of that would

[PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Tony Marston
What you are trying to do is ridiculously easy, and something which I accomplished years ago. Basically every column heading needs to be output as a hyperlink which repeats the current page with the addition of "orderby=" in the URL. This information appears in the $_GET array, so you just repe

Re: [PHP] server name that the user agent used

2009-09-14 Thread Tom Worster
On 9/13/09 10:24 PM, "Tommy Pham" wrote: > --- On Sun, 9/13/09, Tom Worster wrote: > >> From: Tom Worster >> Subject: [PHP] server name that the user agent used >> To: "PHP General List" >> Date: Sunday, September 13, 2009, 8:21 PM >> when using apache with one vhost that >> responds to a few

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

2009-09-14 Thread Eddie Drapkin
On Mon, Sep 14, 2009 at 5:39 AM, Phred White wrote: > > Bummer... It looked so promising, but on Macs, Flash has to load the entire > file into memory to upload! R. So, it isn't viable for big files > (Gig +) if you need it to be cross platform. > > So now I am looking at perl of all thing

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

2009-09-14 Thread Andrea Giammarchi
I am not sure why you ended up with Flash, but here there is a good old example with APC: http://webreflection.blogspot.com/2007/10/upload-progress-bar-with-php5-apc-and.html Regards > CC: php-general@lists.php.net > From: phpl...@planetphred.com > To: oorza...@gmail.com > Date: Mon, 14 Sep 200

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

2009-09-14 Thread Tom Worster
On 9/14/09 5:39 AM, "Phred White" wrote: > > 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: >

[PHP] file_put_contents problem

2009-09-14 Thread Andres Gonzalez
I have read in the contents of a file using file_get_contents. I can verify that the data has actually been read in by echoing its contents. But then if I do this: $ret = file_put_contents("/tmp/bla", $bk); The return value gives the correct size of string $bk, and the file /tmp/bla is created

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread mm w
Noe that the debuger chapter is closed, and you actually did create a error tracker helper and try to return them client side, I can understand that you are frustrated by the poor php layer and support regarding exception handling, but on this point as a lot of people answer you we are doing that s

Re: [PHP] file_put_contents problem

2009-09-14 Thread J DeBord
On Mon, Sep 14, 2009 at 4:19 PM, Andres Gonzalez wrote: > I have read in the contents of a file using file_get_contents. I can verify > that the data has actually been read in by echoing its contents. > > But then if I do this: > > $ret = file_put_contents("/tmp/bla", $bk); > > The return value gi

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread mm w
Hello Andrea, I did not mean to hurt you, my point was: beeing a Jerk when it's ending in void conflicts with people, if you don't like their comments, just don't answer to people. For my concern, a program cannot be debuged by itself (especially with a scripting language, we almost did a joke by

Re: [PHP] Re: file_put_contents problem

2009-09-14 Thread Andres Gonzalez
This is on a Ubuntu 9.04 box. I did not try to open the file but just listing out the directory gives the size and it is 0. If I try to cat out the contents, there is nothing (I guess that does an open on it) -Andres Ralph Deffke wrote: it would be interesting on what os u are working as w

[PHP] Re: file_put_contents problem

2009-09-14 Thread Ralph Deffke
it would be interesting on what os u are working as well. did u try to open the file? on windows often a file is reported as 0 bytes as of failing the refresh in explorer. ralph_def...@yahoo.de "Andres Gonzalez" wrote in message news:4aae510e.8030...@packetstorm.com... > I have read in the cont

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] file_put_contents problem

2009-09-14 Thread Andres Gonzalez
thank you for your responses. This appears to be a CodeIgniter problem because everything of course works fine from a command line script. I will post a question on their forum. Thanks again. -Andres Jim Lucas wrote: Andres Gonzalez wrote: I have read in the contents of a file using fi

Re: [PHP] file_put_contents problem

2009-09-14 Thread Jim Lucas
Andres Gonzalez wrote: > I have read in the contents of a file using file_get_contents. I can verify > that the data has actually been read in by echoing its contents. > > But then if I do this: > > $ret = file_put_contents("/tmp/bla", $bk); > > The return value gives the correct size of string

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

2009-09-14 Thread Andrea Giammarchi
truly old alternative: http://www.devpro.it/upload_progress/ > CC: php-general@lists.php.net > From: phpl...@planetphred.com > To: an_...@hotmail.com > Subject: Re: [PHP] APC - Upload progress problem. apc > Date: Mon, 14 Sep 2009 10:54:21 -0500 > > Hey Andrea: > > Ahhh yes, I've come full circ

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Jim Lucas
Is telecommuting acceptable? Doesn't say one way or the other. Jim Lucas Jerome Botbol wrote: > Hi All, > > > > Cyber-Duck are looking for a highly motivated PHP / CSS Guru to join our > award-winning, London based digital agency, specialising in interactive > media. The coding role will f

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Jerome Botbol
You would need to work in-house and employed as a full time member of staff. We would consider using a freelancer but they would have to be accessible to come to our officers in North London to work on the project. Thanks Jerome -Original Message- From: Jim Lucas [mailto:li...@cmsws.co

Re: [PHP] server name that the user agent used

2009-09-14 Thread Tom Worster
On 9/14/09 9:03 AM, "Tom Worster" wrote: > On 9/13/09 10:24 PM, "Tommy Pham" wrote: > >> --- On Sun, 9/13/09, Tom Worster wrote: >> >>> From: Tom Worster >>> Subject: [PHP] server name that the user agent used >>> To: "PHP General List" >>> Date: Sunday, September 13, 2009, 8:21 PM >>> when

Re: [PHP] server name that the user agent used

2009-09-14 Thread Lars Torben Wilson
Tom Worster wrote: On 9/13/09 10:24 PM, "Tommy Pham" wrote: --- On Sun, 9/13/09, Tom Worster wrote: From: Tom Worster Subject: [PHP] server name that the user agent used To: "PHP General List" Date: Sunday, September 13, 2009, 8:21 PM when using apache with one vhost that responds to a fe

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 Andrea Giammarchi
The concept of my last link is this: the instant before you do the upload you ask PHP to scan the tmp folder, or the folder used to upload files (often the tmp) and you snap number of files, then the upload starts, and it will create a temp file with a PHP predefined prefix, you array_diff the

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
You are looking for me than, cool! > Date: Mon, 14 Sep 2009 18:38:17 +0100 > From: jer...@cyber-duck.co.uk > To: php-general@lists.php.net > Subject: [PHP] PHP GURU NEEDED > > Hi All, > > > > Cyber-Duck are looking for a highly motivated PHP / CSS Guru to join our > award-winning, London bas

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
I guess I got instantly fired with "than" rather than "then" ... nevermind > From: an_...@hotmail.com > To: jer...@cyber-duck.co.uk; php-general@lists.php.net > Date: Mon, 14 Sep 2009 20:56:59 +0200 > Subject: RE: [PHP] PHP GURU NEEDED > > > You are looking for me than, cool! > > > Date: Mon,

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Paul M Foster
On Mon, Sep 14, 2009 at 08:56:59PM +0200, Andrea Giammarchi wrote: > > You are looking for me than, cool! > I can vouch for the fact that Andrea believes he's "all that". Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread mm w
Hello Andrea, I think it was not the main reason, I am living in California and still do a lot of careless mistakes and English native people don't blame me for that, there are able to understand as well as, you are able to understand when people are doing such mistakes in your native language, I

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Marcus Gnaß
Tony Marston wrote: > You cannot do this in a separate class as it requires action in both the > presentation (UI) and data access layers, and a single class is not allowed > to operate in more than one layer. You can, but you shouldn't if you want to write your classes according to the MVC pat

Re: [PHP] server name that the user agent used

2009-09-14 Thread Tom Worster
On 9/14/09 2:11 PM, "Lars Torben Wilson" wrote: > Tom Worster wrote: >> On 9/13/09 10:24 PM, "Tommy Pham" wrote: >> >>> --- On Sun, 9/13/09, Tom Worster wrote: >>> From: Tom Worster Subject: [PHP] server name that the user agent used To: "PHP General List" Date: Sunday,

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread mm w
Hello, Jerome I would like to apologize because this kind of behavior is not a good point for the image of the community, folks please, if your are interested in this position, just send your resume and your references to Jerome, without forgetting to activate your verbose mode. Best, On Mon,

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daniel Brown
On Mon, Sep 14, 2009 at 15:50, mm w <0xcafef...@gmail.com> wrote: > Hello, Jerome > > I would like to apologize because this kind of behavior is not a good > point for the image of the community, > > folks please, if your are interested in this position, just send your > resume and your references

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread mm w
Hello Daniel How Andrea showed up, seriously you can be a good coder but you cannot be without a minimum of social skills and education, I have the feeling to be a Circus. Best, On Mon, Sep 14, 2009 at 12:52 PM, Daniel Brown wrote: > On Mon, Sep 14, 2009 at 15:50, mm w <0xcafef...@gmail.com> w

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Bastien Koert
On Mon, Sep 14, 2009 at 3:29 PM, Marcus Gnaß wrote: > Tony Marston wrote: > >> You cannot do this in a separate class as it requires action in both the >> presentation (UI) and data access layers, and a single class is not allowed >> to operate in more than one layer. > > You can, but you shouldn'

Re: [PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Bastien Koert
On Mon, Sep 14, 2009 at 3:57 PM, Bastien Koert wrote: > On Mon, Sep 14, 2009 at 3:29 PM, Marcus Gnaß wrote: >> Tony Marston wrote: >> >>> You cannot do this in a separate class as it requires action in both the >>> presentation (UI) and data access layers, and a single class is not allowed >>> to

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daniel Brown
On Mon, Sep 14, 2009 at 15:56, mm w <0xcafef...@gmail.com> wrote: > Hello Daniel > > How Andrea showed up, seriously you can be a good coder but you cannot > be without a minimum of social skills and education, I have the > feeling to be a Circus. Honestly, my opinion is more in how your publi

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread mm w
Hello Daniel, I am not scared about my reputation, I am just ashamed to welcome someone like this, I just want to remember to everyone that we are in a tough economic situation, and when someone is coming with an interesting offer, you cannot be a troll , and yes somehow I don't want to be linked

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread LinuxManMikeC
On Mon, Sep 14, 2009 at 1:56 PM, mm w <0xcafef...@gmail.com> wrote: > you can be a good coder but you cannot > be without a minimum of social skills and education You'd be surprised... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread mm w
Hello Mike, sure like everyone I like sometimes to troll, I don't want to be the "moral warrior guy" there, but when you are clever there is a time and a place to troll not when people offers job, developers like to argue this is a fact, but you have to know when it's to right time. Best, On Mon

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 Nathan Nobbe
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. But I can't get that sucker to return the value to me! If

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread LinuxManMikeC
Who's trolling? I simply and succinctly stated that you don't fully understand the psychological demographics of IT industry employees. And frankly, you've done far more to disrupt this thread by riding in on your high and mighty horse than I did in my 3 word comment. Mr. Botbol is a big boy who

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
Ah ah ah ... guys, you made my days, I cannot believe you are all ready to blame somebody else here" I was obviously joking, I did not know php general list was a recruiter place and I've never read announcement in upper case here but seriously, you guys are so funny to try to force your supre

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
Wht is exactly your problem? If I am that bad I have simply removed myself from the list of possible candidates, if I ever had a chance. Keep blaming other feeling the ruler here does not put you in a better position than a troll. I am sorry for the original message 'cause I thought recruiters

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

2009-09-14 Thread Andrea Giammarchi
Can you write here how you configured APC? In my old test I had to set apc.rfc1867 = On and if you grab the zip: http://www.3site.eu/examples/APCQuery.zip tell me what is exactly wrong (I tried ages ago though, I am using other strategies right now: http://code.google.com/p/noswfupload/ - not su

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread mm w
Dear Mikey Mouse you are the only one to thing so, and here the only guy who is riding a Donkey is you, I have no problem with Andrea is a smart guy, but just said it's kind of not a good point to troll when a recruiter is looking for someone and I am sorry I did not say you were trolling secondab

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daevid Vincent
I'm not trolling, but I am really curious who and why someone thought "Cyber-Duck" was a good name (and theme) to use?!? Seriously? Personally, I wouldn't work for a company with such a silly name. Is there some hidden meaning or is this a personal joke between the founders? I really am curious.

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
I have already said I am sorry and I explained the reason I replied in such joking way. Now, I am sure you can understand, since you say you use this ML for recruitment as well, that it would be nice to leave this "subject" as clear as possible. I would even suggest authors to create a new

[PHP] php.ini in cgi vs php.ini in cli

2009-09-14 Thread Andres Gonzalez
In the php configurations directories /etc/php5, there are 2 subdirectories, one for cgi and one for cli. There is a php.ini file in each of these directories. What would cause a difference of behavior in these 2 environments with the php.ini exactly the same in each directory?? I have a com

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread tedd
At 7:28 AM +0200 9/14/09, J DeBord wrote: In all fairness Tedd, your example is a bit of a joke. Send some JSON back and forth, do some database queries, and use a webservice all at the same time. Your AJAX calls won't be so simple then. Okay, so my work is a joke. Been there, done that before

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. But I

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] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread Andrea Giammarchi
> > While it's a joke, in all fairness, it does work. only because you debugged before server side responses, and now, as I have said, you have an alternative to speed up that process. Finally, Formaldehyde JS had a typo so only today I realized it and I uploaded the version 1.01 of Formalde

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread Andrea Giammarchi
> > While it's a joke, in all fairness, it does work. only because you debugged before server side responses, and now, as I have said, you have an alternative to speed up that process. Finally, Formaldehyde JS had a typo so only today I realized it and I uploaded the version 1.01 of Formalde

Re: [PHP] php.ini in cgi vs php.ini in cli

2009-09-14 Thread Lars Torben Wilson
On Mon, 14 Sep 2009 18:21:11 -0400 Andres Gonzalez wrote: > In the php configurations directories /etc/php5, there are 2 > subdirectories, one for > cgi and one for cli. There is a php.ini file in each of these > directories. > > What would cause a difference of behavior in these 2 environment

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

2009-09-14 Thread Nathan Nobbe
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 look at your zip file and see if something jumps out. > what about your other

Re: [PHP] Creating alphanumeric id for a table

2009-09-14 Thread aveev
If I follow you correctly, is the scenario below possible.?? Let's say there are 2 users accessing the app at the same time (user A and B). Here's the sequnce of operation... 1. user A insert into table (get id = 1 from auto increment value) 2. user B insert into table (get id = 2 from auto increm

Re: [PHP] Creating alphanumeric id for a table

2009-09-14 Thread Ben Dunlap
> 1. user A insert into table (get id = 1 from auto increment value) > 2. user B insert into table (get id = 2 from auto increment value) > 3. user A get value from $id = LAST_INSERT_ID() (id = 2) > 4. user B get value from $id = LAST_INSERT_ID() (id =2) [8<] > How can we make sure that those 3 pro

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

2009-09-14 Thread Phred White
Folks: Thanks for all your help and suggestions. Miracle of miracles I am now getting a response,so I can start some level of debugging. I am not sure exactly what has been going on. I NEVER got a response, then I did - when I tried uploading some different files. It seems that larger fil