[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Nathan Rixham
Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's no information in mysql_error. In fact

Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/5/7 Richard Quadling : > 2009/4/30 Olivier Lalonde : >> Hi all, >> >> Since I can't do $this = new Class(); within my class (it gives an >> error), I was looking for ways to get the same result by other means. >> >> I am actually working on an ORM and trying to implement lazy loading. >> >> $b

Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/4/30 Olivier Lalonde : > Hi all, > > Since I can't do $this = new Class(); within my class (it gives an > error), I was looking for ways to get the same result by other means. > > I am actually working on an ORM and trying to implement lazy loading. > > $book = $orm->getBook('id'); // returns

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Jan G.B.
What about declare, cast, unhex, exec etc.? You Replace everything with "" isn't so good, I believe. Others mentiond it before, that *, =, select, from ETC. are valid words and characters in an other context. Anayse some attacks before trying to defend them. Injections can be heavily db-dependent,

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Ray Hauge
Nathan Rixham wrote: Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's no information in

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Nathan Rixham
Ray Hauge wrote: Nathan Rixham wrote: Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's

Re: [PHP] speaking of control structures...

2009-05-07 Thread Tom Worster
On 5/6/09 9:31 PM, "Clancy" wrote: > I can understand your reluctance to disregard your mother's advice, but > unfortunately she > had been brainwashed to accept the dogma of the day. actually, i don't believe so. she did numerical work so she continued using fortran and therefore gotos for the

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Igor Escobar
Ok guys, thanks. Regards, Igor Escobar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Thu, May 7, 2009 at 7:32 AM, Jan G.B. wrote: > What about declare, cast, unhex, exec etc.? > You Replace e

Re: [PHP] speaking of control structures...

2009-05-07 Thread Robert Cummings
On Thu, 2009-05-07 at 09:33 -0400, Tom Worster wrote: > On 5/6/09 9:31 PM, "Clancy" wrote: > > > I can understand your reluctance to disregard your mother's advice, but > > unfortunately she > > had been brainwashed to accept the dogma of the day. > > actually, i don't believe so. she did numeri

Re: [PHP] speaking of control structures...

2009-05-07 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2009-05-07 at 09:33 -0400, Tom Worster wrote: On 5/6/09 9:31 PM, "Clancy" wrote: I can understand your reluctance to disregard your mother's advice, but unfortunately she had been brainwashed to accept the dogma of the day. actually, i don't believe so. she did

Re: [PHP] Re: speaking of control structures...

2009-05-07 Thread Tom Worster
On 5/6/09 4:02 PM, "Al" wrote: > Here's the way I handle validating user form inputs. Each function validates > several things and throws an error with the message stating what's wrong. > > try > { > checkEmailAddr($userSubmitedDataArray[EMAIL_ADDR_FIELD]); >

Re: [PHP] Re: speaking of control structures...

2009-05-07 Thread Al
Tom Worster wrote: On 5/6/09 4:02 PM, "Al" wrote: Here's the way I handle validating user form inputs. Each function validates several things and throws an error with the message stating what's wrong. try { checkEmailAddr($userSubmitedDataArray[EMAIL_ADDR_FIELD]);

[PHP] PHP 5.3.0RC2

2009-05-07 Thread Johannes Schlüter
Hello! we have packaged PHP 5.3.0RC2, which you can find here: http://downloads.php.net/johannes/ Windows binaries are available here: http://windows.php.net/qa/ This second release candidate focused on bug fixes and stability improvements and we hope to only require minimal changes ahead of the

RE: [PHP] speaking of control structures...

2009-05-07 Thread bruce
you know... interesting that goto can be found in code!! -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, May 07, 2009 7:36 AM To: Tom Worster Cc: Clancy; php-general@lists.php.net Subject: Re: [PHP] speaking of control structures... On Thu, 2009-

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Eric Butera
On Thu, May 7, 2009 at 9:41 AM, Igor Escobar wrote: > Ok guys, thanks. > > > Regards, > Igor Escobar > Systems Analyst & Interface Designer > > -- > > Personal Blog > ~ blog.igorescobar.com > Online Portifolio > ~ www.igorescobar.com > Twitter > ~ @igorescobar > > > > > > On Thu, May 7, 2009 at 7:

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Shawn McKenzie
Eric Butera wrote: > On Thu, May 7, 2009 at 9:41 AM, Igor Escobar wrote: >> Ok guys, thanks. >> >> >> Regards, >> Igor Escobar >> Systems Analyst & Interface Designer >> >> -- >> >> Personal Blog >> ~ blog.igorescobar.com >> Online Portifolio >> ~ www.igorescobar.com >> Twitter >> ~ @igorescobar >

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Michael Shadle
On Thu, May 7, 2009 at 4:28 PM, Shawn McKenzie wrote: > RTFP!  ;-) > > He has no idea what DB will be used. Wouldn't that be a better argument -for- using PDO? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] speaking of control structures...

2009-05-07 Thread Clancy
On Thu, 07 May 2009 09:33:00 -0400, f...@thefsb.org (Tom Worster) wrote: >On 5/6/09 9:31 PM, "Clancy" wrote: > >> I can understand your reluctance to disregard your mother's advice, but >> unfortunately she >> had been brainwashed to accept the dogma of the day. > >actually, i don't believe so. s

[PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-07 Thread Tim-Hinnerk Heuer
I've been using Gmail and thought you might like to try it out. Here's an invitation to create an account. if you send me mail on here it will probably be more secure than over the rest of the network. just let me know what the new address will be in case you change mail providers. ---

[PHP] Re: bcmath integer type?

2009-05-07 Thread Michael A. Peters
Michael A. Peters wrote: I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equations, and are integer. Does bcmath for some reason output a text type? I can fix it by a

[PHP] bcmath integer type?

2009-05-07 Thread Michael A. Peters
I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equations, and are integer. Does bcmath for some reason output a text type? I can fix it by adding 0 but I want to know