php-general Digest 20 Apr 2009 15:21:36 -0000 Issue 6077

2009-04-20 Thread php-general-digest-help
php-general Digest 20 Apr 2009 15:21:36 - Issue 6077 Topics (messages 291671 through 291698): Re: DATE / strtotime 291671 by: Chris 291672 by: Jim Lucas 291674 by: Ron Piggott Re: pup 291673 by: ramesh.marimuthu.wipro.com 291675 by: Jim Lucas Re:

php-general Digest 21 Apr 2009 03:49:45 -0000 Issue 6078

2009-04-20 Thread php-general-digest-help
php-general Digest 21 Apr 2009 03:49:45 - Issue 6078 Topics (messages 291699 through 291715): Re: 800 pound gorilla 291699 by: Sancar Saran 291713 by: Raymond Irving 291715 by: Manuel Lemos Re: problems with gnupg extension. 291700 by: Ray Time difference

[PHP] Resampling images -- need lock ?

2009-04-20 Thread Martin Zvarík
I have 10 images of different sizes. If user clicks ROTATE, a script will go through all these 10 images and rotates them. If the user clicks TWICE, the first script will get aborted in the middle (so few images are already rotated) and then the second request will rotate all of them again.

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread kranthi
yeh. if u want it to be on server side that is a good approach. but i feel it'll be very easy to do it with javascript... but what i did not understand is: what should happen if the user clicks ROTATE second time(when the script completed rotating say 5 images)? -- PHP General Mailing List

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread Martin Zvarík
kranthi napsal(a): yeh. if u want it to be on server side that is a good approach. but i feel it'll be very easy to do it with javascript... but what i did not understand is: what should happen if the user clicks ROTATE second time(when the script completed rotating say 5 images)? Well, few

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread kranthi
then u'll b needing a lock (a shared resource like a SESSION var will do) even if u do it by javascript -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cURL - Error 400

2009-04-20 Thread haliphax
On Fri, Apr 17, 2009 at 7:58 AM, David quick.webmas...@gmail.com wrote: On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard aball...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:48 PM, haliphax halip...@gmail.com wrote:

Re: [PHP] cURL - Error 400

2009-04-20 Thread David
On Mon, Apr 20, 2009 at 9:35 PM, haliphax halip...@gmail.com wrote: On Fri, Apr 17, 2009 at 7:58 AM, David quick.webmas...@gmail.com wrote: On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard aball...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:41 AM, David quick.webmas...@gmail.com wrote:

Re: [PHP] niewbie - call methods from another class

2009-04-20 Thread Philip Thompson
On Apr 19, 2009, at 9:43 AM, MEM wrote: Hello, I have something like this: $stmt = $this-_dbh-prepare(INSERT INTO DOG (name_dog, race_dog, id_vet) VALUES (?, ?, ?)); $stmt-bindParam(1, $this-getNameDog() ); $stmt-bindParam(2, $this-getRaceDog());

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Daniel Brown
On Mon, Apr 20, 2009 at 09:48, Marc Christopher Hall m...@hallmarcwebsites.com wrote: Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 Become a MySQL developer and help make the decision.

RE: [PHP] 800 pound gorilla

2009-04-20 Thread Bob McConnell
From: Marc Christopher Hall Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 Speak for yourself, I prefer PostgreSQL. But there are already two announced forks of MySQL, created by developers

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread Martin Zvarík
I see... I will need this too: ignore_user_abort(true); kranthi napsal(a): i dont think flock will help in this case.. flock will b of help when u want to lock a particular file(to read/write) but it'll not help u to stop execution of a php script -- PHP General Mailing List

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Philip Thompson
On Apr 20, 2009, at 8:48 AM, Marc Christopher Hall wrote: Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 Probably nothing. It would not behoove Oracle to get rid of or significantly

Re: [PHP] Resampling images -- need lock ?

2009-04-20 Thread Alpár Török
2009/4/20 kranthi kranthi...@gmail.com: then u'll b needing a lock (a shared resource like a SESSION var will do) even if u do it by javascript -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Session variables will not solve race

RE: [PHP] 800 pound gorilla

2009-04-20 Thread Marc Christopher Hall
-Original Message- From: Bob McConnell [mailto:r...@cbord.com] Sent: Monday, April 20, 2009 9:59 AM To: Marc Christopher Hall; php-general@lists.php.net Subject: RE: [PHP] 800 pound gorilla From: Marc Christopher Hall Sun buys MySQL and now Oracle buys Sun (not final, yet). What

[PHP] 800 pound gorilla

2009-04-20 Thread Marc Christopher Hall
Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Lists
Marc Christopher Hall wrote: Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 Sorry Marc, meant to send this to the list... I don't know what to think of this yet. Oracle has always competed

RE: [PHP] 800 pound gorilla

2009-04-20 Thread Marc Christopher Hall
-Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown Sent: Monday, April 20, 2009 9:52 AM To: Marc Christopher Hall Cc: php-general@lists.php.net Subject: Re: [PHP] 800 pound gorilla On Mon, Apr 20, 2009 at 09:48, Marc Christopher Hall

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Daniel Brown
On Mon, Apr 20, 2009 at 09:58, Marc Christopher Hall m...@hallmarcwebsites.com wrote: Ahhh, I love the smell of condescension first thing in the morning. BTW I am a MySQL developer thank you. A developer does not an owner make. Where do you get the idea that Oracle would put this to a

RE: [PHP] 800 pound gorilla

2009-04-20 Thread bruce
hmmm... a developer might not (won't) give you voting rights? (is there sucj a thing!!!) however, if you put together a number of really skilled c/c++ (whatever) developers, then you could easily take the current existing sourcebase of code, and go ahead and fork your own version, and never need

RE: [PHP] 800 pound gorilla

2009-04-20 Thread Bob McConnell
From: Marc Christopher Hall From: Bob McConnell From: Marc Christopher Hall Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 But there are already two announced forks of MySQL, created

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Bastien Koert
On Mon, Apr 20, 2009 at 10:42 AM, Bob McConnell r...@cbord.com wrote: From: Marc Christopher Hall From: Bob McConnell From: Marc Christopher Hall Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love

RE: [PHP] Resampling images -- need lock ?

2009-04-20 Thread Bob McConnell
From: Martin Zvarík kranthi napsal(a): yeh. if u want it to be on server side that is a good approach. but i feel it'll be very easy to do it with javascript... but what i did not understand is: what should happen if the user clicks ROTATE second time(when the script completed rotating say 5

Re: [PHP] escape your variables

2009-04-20 Thread PJ
Bastien Koert wrote: On Wed, Feb 18, 2009 at 8:34 AM, PJ af.gour...@videotron.ca wrote: To focus on mysql_real_escape_string, I am recapping... questions below QUOTE:== Instead of doing this (for an imaginary table): $sql = insert into table1(field1, field2) values ('$value1',

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Sancar Saran
On Monday 20 April 2009 16:48:42 Marc Christopher Hall wrote: Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 sudo apt-get install postgresql -- PHP General Mailing List

Re: [PHP] problems with gnupg extension.

2009-04-20 Thread Ray
On Monday 13 April 2009 10:17:28 Ray wrote: Hello all, I'm trying to use the gnupg extension and I think everything is properly installed. I'm just using test data. I'm encrypting and then immediately decrypting. But the decryption is failing with a unhelpful error message. error message

[PHP] Time difference desired load

2009-04-20 Thread admin
Suggestion on faster solutions for extremely large database. $ledip['started'] = '2009-04-01 13:40:34'; Example time in DB $ledip['touchedlast'] = '2009-04-01 13:41:28'; Example time in DB date('i:s', strtotime($ledip['touchedlast']) - strtotime($ledip['started'])); // Not a desired solution

[PHP] Extensions not compile

2009-04-20 Thread Joaquim Pedro França Simão
I use cygwin (updated). I try to compile extensions, but i only get extension.a -- # phpize # ./configure # make /usr/local/src/extension/.libs/extension.a, extension.la.lnk, extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai) # make install ... created:

[PHP] Extensions not compile

2009-04-20 Thread Joaquim Pedro França Simão
I use cygwin (updated). I try to compile extensions, but i only get extension.a -- # phpize # ./configure # make /usr/local/src/extension/.libs/extension.a, extension.la.lnk, extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai) # make install ... created:

[PHP] Socket connection not closing

2009-04-20 Thread Martín Marqués
I have a socket application written a few years ago in PHP which receives information and does something (not relevant at the moment). The program that connects is written in PHP with PEARs Net_Socket. This socket is really taken from the socket example in the PHP docs. It's been working OK for

Re: [PHP] Time difference desired load

2009-04-20 Thread Bastien Koert
On Mon, Apr 20, 2009 at 1:38 PM, ad...@buskirkgraphics.com wrote: Suggestion on faster solutions for extremely large database. $ledip['started'] = '2009-04-01 13:40:34'; Example time in DB $ledip['touchedlast'] = '2009-04-01 13:41:28'; Example time in DB date('i:s',

[PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could run their product. The Test Script is php and appears as a form that allows

[PHP] Creating A Chat?

2009-04-20 Thread Nitsan Bin-Nun
Hi Guys, I have created few chats in the past, but I'm trying to create a new one which saves on HTTP requests and do not become an overkill to the server as more users get in. The chat is a one on one, I'm trying to achieve this: * A user sends a message * The message is not saved/save

Re: [PHP] Help me debug this

2009-04-20 Thread Stephen
Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Stephen wrote: Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Resampling images -- need lock ? SOLVED

2009-04-20 Thread Martin Zvarík
Martin Zvarík napsal(a): I have 10 images of different sizes. If user clicks ROTATE, a script will go through all these 10 images and rotates them. If the user clicks TWICE, the first script will get aborted in the middle (so few images are already rotated) and then the second request will

Re: [PHP] escape your variables

2009-04-20 Thread Chris
How does one deal with that? Do you use mysql_real_escape_string? e.g. ?php $db_host = 'localhost'; $db_user = 'auser'; $db_pwd = 'apassword'; $database = 'adatabase'; $table = 'authorBook'; if (!mysql_connect($db_host, $db_user, $db_pwd)) die(Can't connect to database); if

Re: [PHP] Help me debug this

2009-04-20 Thread Phpster
On Apr 20, 2009, at 17:23, Patrick Moloney webpa...@gmail.com wrote: Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Raymond Irving
Ok, Sun buys MySQL and now Oracle is planning on buying Sun. Who's going to buy Oracle in a few years from now? Maybe it's time the PHP dev team start thinking about supporting a database side project of their own. I would do well to have an open source database engine that integrates well

Re: [PHP] Help me debug this

2009-04-20 Thread kranthi
i find var_dump useful in these situations, and for error reporting try trigger error. http://php.net/manual/en/function.trigger-error.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Manuel Lemos
Hello, on 04/20/2009 10:57 PM Raymond Irving said the following: Ok, Sun buys MySQL and now Oracle is planning on buying Sun. Who's going to buy Oracle in a few years from now? Maybe it's time the PHP dev team start thinking about supporting a database side project of their own. I would

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Chris
Maybe it's time the PHP dev team start thinking about supporting a database side project of their own. I would do well to have an open source database engine that integrates well with the system under contact development. The PHP group already did that. They pushed SQLite when MySQL started