Re: [PHP] Re: File Upload Problem [SOLVED]

2011-04-11 Thread tedd
At 10:07 AM -0400 4/11/11, tedd wrote: At 7:37 AM +0100 4/11/11, Ashley Sheridan wrote: tedd tedd.sperl...@gmail.com wrote: So, knowing this -- does anyone have any idea as to what is wrong? What happens if you diff the various config files involved directly, php.ini, https.conf, any other

Re: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-04 Thread Richard Quadling
On 3 April 2011 21:38, Peter Lind peter.e.l...@gmail.com wrote: On 3 April 2011 22:35, Andre Polykanine an...@oire.org wrote: Hello Peter, Thanks a lot! And is there a way to set (write) custom values in files other than php.ini? Sorry, didn't find such a function. I haven't come across

Re: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Peter Lind
On 3 April 2011 22:35, Andre Polykanine an...@oire.org wrote: Hello Peter, Thanks a lot! And is there a way to set (write) custom values in files other than php.ini? Sorry, didn't find such a function. I haven't come across any, but then again, I haven't had the need so never looked much ...

Re: [PHP] Re: Looking for Tool to read JSON format

2011-04-02 Thread Robert Stone
Have you looked at http://pecl.php.net/package/json Might help. Package php-services-json is at version 1.0.2-1 on my Debian install. Bon soir, Robert --- Em sáb, 2/4/11, Michelle Konzack linux4miche...@tamay-dogan.net escreveu: De: Michelle Konzack linux4miche...@tamay-dogan.net Assunto:

Re: [PHP] Re: Slow sessions.

2011-03-30 Thread Rob Adams
On 3/28/2011 3:40 PM, Bostjan Skufca wrote: Great, please report back if/when you discover the cause. After searching for some information about the error messages I was getting on the file server, I found this: http://www.spinics.net/lists/linux-nfs/msg14679.html I ran 'server nfslock

Re: [PHP] Re: Slow sessions.

2011-03-30 Thread Bostjan Skufca
Nice of you to post the resolution of your problem. Glad to hear it is fixed now. Take care, b. On 30 March 2011 17:46, Rob Adams rad...@circlepix.com wrote: On 3/28/2011 3:40 PM, Bostjan Skufca wrote: Great, please report back if/when you discover the cause. After searching for some

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Negin Nickparsa
i want each user having more than one file like us in the inbox of our mails i want to store files n then they can access each one.

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Ashley Sheridan
Negin Nickparsa nickpa...@gmail.com wrote: i want each user having more than one file like us in the inbox of our mails i want to store files n then they can access each one. Then do what I suggested and store the file under the temporary name its given when it gets uploaded to the temp

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Bastien
On 2011-03-28, at 3:37 AM, Negin Nickparsa nickpa...@gmail.com wrote: i want each user having more than one file like us in the inbox of our mails i want to store files n then they can access each one. It's certainly possible, but as others have said, use the db to store the list of files

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Negin Nickparsa
i got it but i didn't understand what to do exactly uploading a file in a folder is easy for me than what i must do in db?

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Negin Nickparsa
storing what in db? my codes was abt to store the file when uploading what is the difference can i give me in an example?

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Ashley Sheridan
On Mon, 2011-03-28 at 18:18 +0430, Negin Nickparsa wrote: storing what in db? my codes was abt to store the file when uploading what is the difference can i give me in an example? When you copy the file use code like: move_uploaded_file($_FILES['image']['tmp_name'],

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Rob Adams
On 3/26/2011 11:07 AM, Bostjan Skufca wrote: Can you strace it's execution and see where your delay is comming from? If you are using apache, make it create just one child and strace that one when you generate a request. Thanks for the advice. I installed strace on the new server, and it has

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Rob Adams
Bostjan, Thanks again for the tip. At this point, it looks like there is an issue with my main file server. It's weird that the older servers were working with it fine though (by instantly failing on lock), so I originally thought it might be a php issue. I think I'm making progress on it

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Bostjan Skufca
Great, please report back if/when you discover the cause. Meanwhile doing man 2 flock yields info about ENOLCK: The kernel ran out of memory for allocating lock records. This concerns your new server. The old one does not support locking, or so it seems (EOPNOTSUPP). b. On 28 March 2011 23:15,

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Bostjan Skufca
When you say you installed php 5.3.x and then reverted to 5.2, did you reinstall/upgrade OS and/or kernel too? b. On 28 March 2011 23:40, Bostjan Skufca bost...@a2o.si wrote: Great, please report back if/when you discover the cause. Meanwhile doing man 2 flock yields info about ENOLCK: The

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Rob Adams
From: Bostjan Skufca bost...@a2o.si When you say you installed php 5.3.x and then reverted to 5.2, did you reinstall/upgrade OS and/or kernel too? Yes. The old servers were running some version of FreeBSD. The new server is running CentOS 5.5. -- Rob -- PHP General Mailing List

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Bostjan Skufca
Seems like session file locking did not work before :) b. On 29 March 2011 01:00, Rob Adams rad...@circlepix.com wrote: From: Bostjan Skufca bost...@a2o.si When you say you installed php 5.3.x and then reverted to 5.2, did you reinstall/upgrade OS and/or kernel too? Yes. The old servers

Re: [PHP] Re: putting variables in a variable

2011-03-26 Thread Daniel Brown
On Sat, Mar 26, 2011 at 11:46, Al n...@ridersite.org wrote: You guys know this thread will be three years old on Monday, right? Interestingly enough, it looks like Ross ('Hulf') had his client, OS, or mailserver improperly configured, because it shows that the message to which we've all

Re: [PHP] Re: putting variables in a variable

2011-03-26 Thread Al
On 3/26/2011 11:57 AM, Daniel Brown wrote: On Sat, Mar 26, 2011 at 11:46, Aln...@ridersite.org wrote: You guys know this thread will be three years old on Monday, right? Interestingly enough, it looks like Ross ('Hulf') had his client, OS, or mailserver improperly configured, because

Re: [PHP] Re: Slow sessions.

2011-03-26 Thread Bostjan Skufca
Can you strace it's execution and see where your delay is comming from? If you are using apache, make it create just one child and strace that one when you generate a request. b. On 25 March 2011 19:01, Rob Adams rad...@circlepix.com wrote: I decided to try changing the session.save_path, and

Re: [PHP] Re: Array Search - Solved

2011-03-26 Thread Ethan Rosenberg
At 01:31 PM 3/25/2011, João Cândido de Souza Neto wrote: It´s a job to array_key_exists function. -- João Cândido de Souza Neto Ethan Rosenberg eth...@earthlink.net escreveu na mensagem news:0lim00hi3ihny...@mta4.srv.hcvlny.cv.net... Dear List - Here is a code snippet: $bla =

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Sharl.Jimh.Tsin
Try third binary instead of official one. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2011/3/26 Tommy Pham tommy...@gmail.com: On Fri, Mar 25, 2011 at 1:44 PM, Pierre Joye pierre@gmail.com wrote: On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham tommy...@gmail.com

Re: [PHP] Re: echo?

2011-03-24 Thread Tamara Temple
On Mar 22, 2011, at 9:50 PM, Jim Giner wrote: Yes - it is J and I. I tried using $i+1 in the echo originally but it wouldn't run. That's why I created $j. Interesting it wouldn't run.. perhaps that's a place to investigate? And just what is wrong with the old cr/lf sequence? How would

Re: [PHP] Re: echo?

2011-03-24 Thread Hans Åhlin
2011/3/23 Jim Giner jim.gi...@albanyhandball.com: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++)    {    $j = $i+1;    $row = mysql_fetch_array($qrslt);    echo

Re: [PHP] Re: echo?

2011-03-23 Thread Frank Arensmeier
23 mar 2011 kl. 02.42 skrev Jim Giner: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++) { $j = $i+1; $row = mysql_fetch_array($qrslt); echo $j.'-'.$row['userid'];

Re: [PHP] Re: echo?

2011-03-23 Thread Ricardo Martinez
Hi after of the for, u can use it shoulds back the class of variable, by example its is string its is int etc for ($i=0;$i$rows;$i++) echo $i.' '.$row['itemname']; echo gettype($i); Can be that you must define before the class of this variable, because, the system is thinking this is a

Re: [PHP] Re: echo?

2011-03-23 Thread Richard Quadling
On 23 March 2011 07:46, Geoff Lane ge...@gjctech.co.uk wrote: Hi Jim, On Wednesday, March 23, 2011, 1:42:18 AM, you wrote: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++)     {  

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
I am outputting to a textarea on an html page. A br doesn't work, nor does \n, hence the #13#10. Of course, if I don't need the then I've just saved two keystrokes. :) Also - I do believe I tried ($i+1) and that didn't work either. Paul M Foster pa...@quillandmouse.com wrote in message

Re: [PHP] Re: echo?

2011-03-23 Thread Steve Staples
On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote: I am outputting to a textarea on an html page. A br doesn't work, nor does \n, hence the #13#10. Of course, if I don't need the then I've just saved two keystrokes. :) Also - I do believe I tried ($i+1) and that didn't work either.

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
not the concern in this posting Richard Quadling rquadl...@gmail.com wrote in message news:aanlktindqu7bzeamtcwh6y9f3m9yjxqpt-ime9ysh...@mail.gmail.com... On 23 March 2011 07:46, Geoff Lane ge...@gjctech.co.uk wrote: Hi Jim, On Wednesday, March 23, 2011, 1:42:18 AM, you wrote: ok - here's

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
it was as complete as need be to demonstrate my dilemma, as Richard has discovered above Frank Arensmeier farensme...@gmail.com wrote in message news:7cfb015a-c530-4712-9ebc-fbdf5b0ed...@gmail.com... 23 mar 2011 kl. 02.42 skrev Jim Giner: ok - here's the code in question. $q = 'select * from

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
Very Interesting - '\n' doesn't work, but \n does work. Steve Staples sstap...@mnsi.net wrote in message news:1300883645.5100.973.camel@webdev01... On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote: I am outputting to a textarea on an html page. A br doesn't work, nor does \n, hence the

Re: [PHP] Re: echo?

2011-03-23 Thread Stuart Dallas
http://php.net/manual/en/language.types.string.php -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ On Wednesday, 23 March 2011 at 12:39, Jim Giner wrote: Very Interesting - '\n' doesn't work, but \n does work. Steve Staples sstap...@mnsi.net wrote in message

Re: [PHP] Re: echo?

2011-03-23 Thread Jim Giner
Thanks for the pointer. Had not run across that tidbit before. Stuart Dallas stu...@3ft9.com wrote in message news:b43dfd4fa2ac4489aaf538d1bf7a8...@3ft9.com... http://php.net/manual/en/language.types.string.php -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ On Wednesday, 23 March

Re: [PHP] Re: echo?

2011-03-23 Thread Paul M Foster
On Wed, Mar 23, 2011 at 07:46:03AM +, Geoff Lane wrote: Hi Jim, On Wednesday, March 23, 2011, 1:42:18 AM, you wrote: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++)

Re: [PHP] Re: echo?

2011-03-23 Thread David Robley
Jim Giner wrote: I am outputting to a textarea on an html page. A br doesn't work, nor does \n, hence the #13#10. Of course, if I don't need the then I've just saved two keystrokes. :) Also - I do believe I tried ($i+1) and that didn't work either. Paul M Foster

Re: [PHP] Re: echo?

2011-03-22 Thread Tamara Temple
On Mar 22, 2011, at 8:42 PM, Jim Giner wrote: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++) { $j = $i+1; Am i reading this correctly: the first variable is j (jay) the second

Re: [PHP] Re: echo?

2011-03-22 Thread Jim Giner
Yes - it is J and I. I tried using $i+1 in the echo originally but it wouldn't run. That's why I created $j. And just what is wrong with the old cr/lf sequence? How would you have done it? What do you mean 'this alone .'? Tamara Temple tamouse.li...@gmail.com wrote in message

Re: [PHP] Re: echo?

2011-03-22 Thread Paul M Foster
On Tue, Mar 22, 2011 at 10:50:54PM -0400, Jim Giner wrote: Yes - it is J and I. I tried using $i+1 in the echo originally but it wouldn't run. That's why I created $j. Yes, the substitution creates a syntax error unless surrounded by parentheses or the like. And just what is wrong with

Re: [PHP] Re: PHP session replication

2011-03-19 Thread Alessandro Ferrucci
Hi Florin, thank you for your write up, actually the main reason why I asked the original question was because I mainly write servlet based webapps currently but I've decided to use PHP for my next project mainly for exploratory reasons. On Sat, Mar 19, 2011 at 10:06 AM, Florin Jurcovici

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Fri, Mar 11, 2011 at 11:39 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:34 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:26 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:22 AM, Tommy Pham tommy...@gmail.com wrote: On

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
Optimization also becomes a more manipulative, due to the stem point of your further language utilization. If you divide your languages, and disperse them through a C framework, you can utilize the languages in their refined form, and if any portion of an individual language gives optimization

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Fri, Mar 11, 2011 at 11:59 PM, David Hutto smokefl...@gmail.com wrote: Optimization also becomes a more manipulative, due to the stem point of your further language utilization. If you divide your languages, and disperse them through a C framework, you can utilize the languages in their

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:39 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:34 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:26 PM, David Hutto smokefl...@gmail.com wrote: On

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
On Sat, Mar 12, 2011 at 3:03 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:59 PM, David Hutto smokefl...@gmail.com wrote: Optimization also becomes a more manipulative, due to the stem point of your further language utilization. If you divide your languages, and disperse

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 12:06 AM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:39 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:34 AM, Tommy Pham tommy...@gmail.com wrote: On

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
We're going way off-topic. Perhaps start a new thread? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
On Sat, Mar 12, 2011 at 4:10 AM, Tommy Pham tommy...@gmail.com wrote: On Sat, Mar 12, 2011 at 12:06 AM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:39 PM, David Hutto smokefl...@gmail.com wrote: On

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 12:22 AM, David Hutto smokefl...@gmail.com wrote: This isn't a C/PHP question, or optimization, it's a matter of PHP isn't always the center of attention, in terms of a development process. In each language there are advocates, and it's admirable, but ignorant in sight

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
probably so, but it it's just another discussion we should have just for evolutions sake. Each time it takes place, new info is added by someone. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
On Sat, Mar 12, 2011 at 4:31 AM, Tommy Pham tommy...@gmail.com wrote: On Sat, Mar 12, 2011 at 12:22 AM, David Hutto smokefl...@gmail.com wrote: This isn't a C/PHP question, or optimization, it's a matter of PHP isn't always the center of attention, in terms of a development process. In each

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 1:31 AM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 4:10 AM, Tommy Pham tommy...@gmail.com wrote: On Sat, Mar 12, 2011 at 12:06 AM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham tommy...@gmail.com wrote: On Fri,

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread David Hutto
As I mentioned below, if PHP is sluggish, shouldn't it be brought up to the PHP developers instead?  Why would you try include more complexity? I'm sure it has, it's called benchmarks. And they can't top C or Fortran, last I saw. But that is not the point. And did you not see my point about

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 2:40 AM, David Hutto smokefl...@gmail.com wrote: As I mentioned below, if PHP is sluggish, shouldn't it be brought up to the PHP developers instead?  Why would you try include more complexity? I'm sure it has, it's called benchmarks. And they can't top C or Fortran,

Re: [PHP] Re: [PHP-WEBMASTER] php with htmlspecialchars function

2011-03-11 Thread NetEmp
Well Lisa, that is exactly the way htmlspecialchars is supposed to work. Here you could also display - Test - without using any function at all, simply echo a href='test'Test/a; and this should work well. NetEmp On Fri, Mar 11, 2011 at 11:51 PM, Daniel Brown danbr...@php.net wrote: On Fri,

Re: [PHP] Re: $_POST variable

2011-03-11 Thread richard gray
You could use foreach to iterate through the post variables until you encounter a match: foreach ($_POST as $key = $value){ if (substr($key, 0, 6) == radio_) { $buttonName = $key; $buttonValue = 4value; break 2; } } I haven't tried the above code, but I hope

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Jim Lucas
On 3/11/2011 12:03 PM, Shawn McKenzie wrote: On 03/11/2011 01:28 PM, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of the radio buttons: input type=radio

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Shawn McKenzie
On 03/11/2011 02:33 PM, Jim Lucas wrote: On 3/11/2011 12:03 PM, Shawn McKenzie wrote: On 03/11/2011 01:28 PM, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one of

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Kirk Bailey
On 3/11/2011 2:43 PM, Geoff Lane wrote: [snip] You could use foreach to iterate through the post variables until you encounter a match: foreach ($_POST as $key = $value){ if (substr($key, 0, 6) == radio_) { $buttonName = $key; $buttonValue = 4value; break 2;

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread Tommy Pham
I think the OP is having both PHP JS codes mixed and scattered all over the page. If chunked-encoding used without any ob* implementation, then that's the problem he'll experience. Richard, I recommend to put the $(document).ready() and any JS scriptlets within body/body tags at the very

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread David Hutto
Although, right now, if I were going to be using all of those languages in unison(and I am), then I'd go with C, and spit them out to the browser for lower level control, as well as, to remain familiar with some of the main languages being used currently. -- PHP General Mailing List

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread David Hutto
On Sat, Mar 12, 2011 at 1:21 AM, Tommy Pham tommy...@gmail.com wrote: I think the OP is having both PHP JS codes mixed and scattered all over the page.  If chunked-encoding used without any ob* implementation, then that's the problem he'll experience. Richard, I recommend to put the

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread Tommy Pham
On Fri, Mar 11, 2011 at 10:31 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 1:21 AM, Tommy Pham tommy...@gmail.com wrote: I think the OP is having both PHP JS codes mixed and scattered all over the page.  If chunked-encoding used without any ob* implementation, then

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread Tommy Pham
On Fri, Mar 11, 2011 at 10:34 PM, David Hutto smokefl...@gmail.com wrote: Although, right now, if I were going to be using all of those languages in unison(and I am), then I'd go with C, and spit them out to the browser for lower level control, as well as, to remain familiar with some of the

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread David Hutto
On Sat, Mar 12, 2011 at 2:22 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 10:34 PM, David Hutto smokefl...@gmail.com wrote: Although, right now, if I were going to be using all of those languages in unison(and I am), then I'd go with C, and spit them out to the browser for

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread Tommy Pham
On Fri, Mar 11, 2011 at 11:26 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:22 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 10:34 PM, David Hutto smokefl...@gmail.com wrote: Although, right now, if I were going to be using all of those languages in

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-11 Thread David Hutto
On Sat, Mar 12, 2011 at 2:34 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:26 PM, David Hutto smokefl...@gmail.com wrote: On Sat, Mar 12, 2011 at 2:22 AM, Tommy Pham tommy...@gmail.com wrote: On Fri, Mar 11, 2011 at 10:34 PM, David Hutto smokefl...@gmail.com wrote:

Re: [PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.6RC2 Released for Testing

2011-03-10 Thread Sharl.Jimh.Tsin
maybe the title PHP 5.3.6RC2 Released for Testing is wrong,please check. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2011/3/11 Pierre Joye pierre@gmail.com: See the NEWS file in the release. 2011/3/10 sexyprout hellosexypr...@gmail.com: Sorry everyone. I

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-07 Thread Shawn McKenzie
On 03/05/2011 04:38 PM, Mark Kelly wrote: Hi. Thanks for all the replies. On Saturday 05 Mar 2011 at 22:11 Simon J Welsh wrote: On 6/03/2011, at 11:08 AM, Shawn McKenzie wrote: $regex = '/([^]+)/'; Shawn, this regex gets me two copies of each string - one with and one without the

Re: [PHP] Re: Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Sat, Mar 5, 2011 at 5:31 AM, Florin Jurcovici florin.jurcov...@gmail.com wrote: Hi. I would always recommend stored procedures, as long as there are a very few rules obeyed: - keep them simple - they should mostly implement just CRUD operations plus application-specific searches, and

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-06 Thread Ellis Antaya
i'm not sure i understand your problem ?!? php runs on the server, delivers html code and/or javascript to the browser and only from there the jQuery will execute it's main loop and start trigger some events such as the ready event. So the php script is always finish when javascript start to

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-06 Thread Ellis Antaya
Also, the $(document).ready() is triggered when the DOM is ready to be manipulated. I dont know why you would consider alter the behavior of this event, maybe what you want is to create yourself a custom event handler ... On Sun, Mar 6, 2011 at 21:43, Ellis Antaya ellis.ant...@gmail.com wrote:

Re: [PHP] Re: Somewhat OT - Stored Procedures

2011-03-05 Thread NetEmp
Hi Team I very much agree with the points shared by Florin (esp. the two rules). But unfortunately, these rules are not standards and that is where the real problem lies. The injudicious use of SPs leads to un-manageable code which is rarely portable (real life situations J which are too

Re: [PHP] Re: Somewhat OT - Stored Procedures

2011-03-05 Thread NetEmp
Hi Team I very much agree with the points shared by Florin (esp. the two rules). But unfortunately, these rules are not standards and that is where the real problem lies. The injudicious use of SPs leads to un-manageable code which is rarely portable (real life situations J which are too

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Simon J Welsh
On 6/03/2011, at 11:08 AM, Shawn McKenzie wrote: On 03/05/2011 09:26 AM, Mark Kelly wrote: Hi. I'm hoping someone can help me extract text between double quotes from a string. $regex = 'some magic'; $r = preg_match($regex, $sentence, $phrases); So, if $sentence = 'Dave said

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Mark Kelly
Hi. Thanks for all the replies. On Saturday 05 Mar 2011 at 22:11 Simon J Welsh wrote: On 6/03/2011, at 11:08 AM, Shawn McKenzie wrote: $regex = '/([^]+)/'; Shawn, this regex gets me two copies of each string - one with and one without the double quotes - as did the one Nathan posted

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Shuo
Maybe this will help. $regex = '/(?=)[^.]*(?=)/'; $r = preg_match_all($regex, $sentence, $phrases);

Re: [PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread Richard Quadling
2011/3/4 Nisse Engström news.nospam.0ixbt...@luden.se: On Fri, 11 Feb 2011 14:42:18 -0800, Brian Dunning wrote: Hey all - I'm using mcrypt to store credit cards into MySQL. About 90% of them decrypt fine, but about 10% decrypt as nonsense (b1�\�JEÚU�A��� is a good example). Maybe there is a

Re: [PHP] Re: Help! Made a boo-boo encrypting credit cards

2011-03-04 Thread David Hutto
Maybe I missed something here, but aren't the cc's held by the merchant account provider, and just an id by you to recharge(recurring or once), which can be disputed. I ask because it's been a while since I had to look at this. So let the OP's question take precedence, and mine secondary if

Re: [PHP] Re: Possible bug in PHP 5.3.5 with OAuth extension?

2011-03-04 Thread Jim Lucas
On 3/4/2011 5:18 PM, Daniel Hong wrote: Correction: I stated the incorrect version of PHP that does not seem to have this issue. The version of PHP that works correctly is 5.3.2, not 5.3.3. Can you give us an example of what you are doing? Jim Lucas Thanks, daniel On Fri, Mar 4,

Re: [PHP] Re: Possible bug in PHP 5.3.5 with OAuth extension?

2011-03-04 Thread Daniel Hong
Hi Jim, I'm using oauth to connect to Dropbox. The OAuth::getRequestToken() and OAuth::getAccessToken() works without a problem since (assuming) those are sent over the wire as a GET request. When I try to issue a fetch command, for example: $oauth-enableDebug()

Re: [PHP] Re: Possible bug in PHP 5.3.5 with OAuth extension?

2011-03-04 Thread Daniel Hong
Ok, I'm such a dud. Looks like someone had already reported this exact bug http://pecl.php.net/bugs/bug.php?id=22485 I actually was looking at the problematic method in the source, but didn't catch the problem. But now that someone has pointed it out, it's so obvious. I deserve a slap on the back

Re: [PHP] Re: Sorting an array

2011-03-01 Thread FeIn
Also check http://www.php.net/manual/en/function.natsort.php On Tue, Mar 1, 2011 at 1:39 PM, David Robley robl...@aapt.net.au wrote: Ron Piggott wrote: I need help to know how to sort the words / phrases in my array. Variable name: $words_used print_r( $words_used ); Current output:

Re: [PHP] Re: Sorting an array

2011-03-01 Thread Alex
That or do it in mysql before you get the data back, its also pretty good at sorting, you know ;) -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. FeIn aci...@gmail.com wrote: Also check http://www.php.net/manual/en/function.natsort.php On Tue, Mar 1, 2011 at 1:39 PM,

RE: [PHP] Re: Quotes in Heredoc

2011-02-28 Thread Bob McConnell
From: Colin Guthrie 'Twas brillig, and Bob McConnell at 28/02/11 13:23 did gyre and gimble: XHTML also requires all tags, attribute labels and values to be in lower case and values must be quoted. So your original content should be table cellpadding=0 cellspacing=0 border=0 align=center

Re: [PHP] Re: Simplest way of enforcing an array of instances of a specific class but treating the whole thing as an array.

2011-02-25 Thread Richard Quadling
On 24 February 2011 18:28, David Harkness davi...@highgearmedia.com wrote: If each array will contain a single type of object, but you need many of these arrays, each containing a different type of object, I recommend creating a generic instances-of-class array using ArrayObject. You can

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Steve Staples
On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298492194.14826.2425.camel@webdev01... On Wed, 2011-02-23 at 14:56 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298490417.14826.2418.camel@webdev01... On

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Gary
Steve Staples sstap...@mnsi.net wrote in message news:1298568238.14826.2431.camel@webdev01... On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298492194.14826.2425.camel@webdev01... On Wed, 2011-02-23 at 14:56 -0500, Gary wrote: Steve

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Steve Staples
On Thu, 2011-02-24 at 12:52 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298568238.14826.2431.camel@webdev01... On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298492194.14826.2425.camel@webdev01... On

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-24 Thread Gary
Steve Staples sstap...@mnsi.net wrote in message news:1298570683.14826.2438.camel@webdev01... On Thu, 2011-02-24 at 12:52 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298568238.14826.2431.camel@webdev01... On Thu, 2011-02-24 at 11:42 -0500, Gary wrote: Steve

Re: [PHP] Re: Simplest way of enforcing an array of instances of a specific class but treating the whole thing as an array.

2011-02-24 Thread David Harkness
If each array will contain a single type of object, but you need many of these arrays, each containing a different type of object, I recommend creating a generic instances-of-class array using ArrayObject. You can enforce the type in append(), offsetSet(), and exchangeArray() and then check the

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Jim Lucas
On 2/23/2011 4:35 AM, Gary wrote: Pete Ford p...@justcroft.com wrote in message news:62.c1.32612.d49d4...@pb1.pair.com... This bit? On 22/02/11 22:06, Gary wrote: for($i=1; $i=$_POST['counties']; $i++) { if ( isset($_POST[county{$i}] ) ) { You loop over $_POST['counties'] and look for

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Gary
Jim Lucas li...@cmsws.com wrote in message news:4d653673.7040...@cmsws.com... On 2/23/2011 4:35 AM, Gary wrote: Pete Ford p...@justcroft.com wrote in message news:62.c1.32612.d49d4...@pb1.pair.com... This bit? On 22/02/11 22:06, Gary wrote: for($i=1; $i=$_POST['counties']; $i++) { if (

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Gary
Jim Lucas li...@cmsws.com wrote in message news:4d653673.7040...@cmsws.com... On 2/23/2011 4:35 AM, Gary wrote: Pete Ford p...@justcroft.com wrote in message news:62.c1.32612.d49d4...@pb1.pair.com... This bit? On 22/02/11 22:06, Gary wrote: for($i=1; $i=$_POST['counties']; $i++) { if (

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Steve Staples
On Wed, 2011-02-23 at 14:17 -0500, Gary wrote: Jim Lucas li...@cmsws.com wrote in message news:4d653673.7040...@cmsws.com... On 2/23/2011 4:35 AM, Gary wrote: Pete Ford p...@justcroft.com wrote in message news:62.c1.32612.d49d4...@pb1.pair.com... This bit? On 22/02/11 22:06, Gary

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Gary
Steve Staples sstap...@mnsi.net wrote in message news:1298490417.14826.2418.camel@webdev01... On Wed, 2011-02-23 at 14:17 -0500, Gary wrote: Jim Lucas li...@cmsws.com wrote in message news:4d653673.7040...@cmsws.com... On 2/23/2011 4:35 AM, Gary wrote: Pete Ford p...@justcroft.com wrote

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Steve Staples
On Wed, 2011-02-23 at 14:56 -0500, Gary wrote: Steve Staples sstap...@mnsi.net wrote in message news:1298490417.14826.2418.camel@webdev01... On Wed, 2011-02-23 at 14:17 -0500, Gary wrote: Jim Lucas li...@cmsws.com wrote in message news:4d653673.7040...@cmsws.com... On 2/23/2011 4:35

Re: [PHP] Re: 9970318527584

2011-02-21 Thread Richard Quadling
On 21 February 2011 07:46, Gary php-gene...@garydjones.name wrote: Richard Quadling wrote: nada. Please stop posting my bank account balance! OK. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: 9970318527584

2011-02-20 Thread Richard Quadling
On 20 February 2011 12:24, Vlatko Šurlan mrdo...@gmail.com wrote: John Taylor-Johnston wrote: 9970318527584 Not an ISBN number. In fact Google only shows this thread for this number. The hex value is uninspiring 0x911654B4C60 As is the octal 0221054522646140 and binary

<    4   5   6   7   8   9   10   11   12   13   >