Re: [PHP] URL data decoding problem

2009-04-20 Thread Ashley Sheridan
On Tue, 2009-04-21 at 08:39 +0200, Anders Norrbring wrote: > I'm working on a PayPal IPN module, and PayPal returns a lot of data in a > GET call. > The problem is that international characters entered by a user on the PayPal > site gets encoded really weird, and I don't see an obvious way to decod

[PHP] URL data decoding problem

2009-04-20 Thread Anders Norrbring
I'm working on a PayPal IPN module, and PayPal returns a lot of data in a GET call. The problem is that international characters entered by a user on the PayPal site gets encoded really weird, and I don't see an obvious way to decode them, can someone please assist? My website is running utf-8 all

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

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 wou

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 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 wit

Re: [PHP] Help me debug this

2009-04-20 Thread Phpster
On Apr 20, 2009, at 17:23, Patrick Moloney 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 run their product. Th

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. Inputs are user supplied. Are you saying that I don't need to sanitize the variables above - $db_host, $db_user, $db_pwd, $database, $table ? No - they are essentially hardcoded. A user (through a form or any other

[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] 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

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

[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 temporari

[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 y

Re: [PHP] Time difference desired load

2009-04-20 Thread Bastien Koert
On Mon, Apr 20, 2009 at 1:38 PM, 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', strtotime($ledip['touchedlast']) - > strto

[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 qu

[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: /usr/local/lib/php/exte

[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: /usr/local/lib/php/exte

[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 be

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

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 (http://www.php.net

Re: [PHP] escape your variables

2009-04-20 Thread PJ
Bastien Koert wrote: > On Wed, Feb 18, 2009 at 8:34 AM, PJ 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', '$value2')"; >

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 rota

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Bastien Koert
On Mon, Apr 20, 2009 at 10:42 AM, Bob McConnell 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 esp

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 fork

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 Daniel Brown
On Mon, Apr 20, 2009 at 09:58, Marc Christopher Hall 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 democratic vote? Condesce

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 wrote:

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 wi

[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 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 wi

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

2009-04-20 Thread Alpár Török
2009/4/20 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 > > Session variables will not solve race conditions. I woul

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 modi

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 (http://www.

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 developer

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Daniel Brown
On Mon, Apr 20, 2009 at 09:48, 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 Become a MySQL developer and help make the decision. -- daniel.br...@parasan

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] cURL - Error 400

2009-04-20 Thread David
On Mon, Apr 20, 2009 at 9:35 PM, haliphax wrote: > On Fri, Apr 17, 2009 at 7:58 AM, David wrote: > > On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard > wrote: > >> > >> On Fri, Apr 17, 2009 at 12:41 AM, David > wrote: > >> > On Thu, Apr 16, 2009 at 11:48 PM, haliphax > wrote: > >> > > >> >> On

Re: [PHP] cURL - Error 400

2009-04-20 Thread haliphax
On Fri, Apr 17, 2009 at 7:58 AM, David wrote: > On Fri, Apr 17, 2009 at 8:55 PM, Andrew Ballard wrote: >> >> On Fri, Apr 17, 2009 at 12:41 AM, David wrote: >> > On Thu, Apr 16, 2009 at 11:48 PM, haliphax wrote: >> > >> >> On Wed, Apr 15, 2009 at 9:17 PM, David >> >> wrote: >> >> > Except I als

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] 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 i

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 (http

[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.