Re: [PHP] Web Development/Application Analysis

2009-03-21 Thread OOzy Pal
On Sat, Mar 21, 2009 at 6:33 PM, tedd wrote: > At 6:15 PM +0300 3/21/09, OOzy Pal wrote: >> >> Tedd, >> >> You wrote a long story about a client hiring a programmer which not >> what I am asking. >> >> Anyhow, thank you for your post. I learned from it. >> >> I don't want to take it further. This

Re: [PHP] how to make multiple sql run faster

2009-03-21 Thread Virgilio Quilario
> Usually a single transaction is faster than an insert a time (with or without > union) > >> Hi all, >> >> I am inserting more than 5000 rows into sql database but its taking more >> than 30 mins  to get it all the data inserted. I use union to insert >> multiple rows of 20 at a time. >> >> What

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread mike
2009/3/21 Robert Cummings : > Yes, I'm a big fan of automatic database connection identifiers. Why > just the other week I was integrating ZenCart into another system and I > couldn't understand why ZenCart wasn't able to properly retrieve the > last_insert_id(). After digging throught he code I f

Re: [PHP] need help with code

2009-03-21 Thread Virgilio Quilario
>> hi Chris, >> >> basing on the code you posted, you're missing the closing brace for >> if ($accessToken===NULL) >> { >> >> there should be 3 closing braces before the last ?> > >    That'll be the next error, but that error would print "unexpected > $end on line xxx." well, if you're getting th

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread Virgilio Quilario
> I typically do something like this: > > $data_sql = mysql_real_escape_string($data, $connection); > $query = "insert into data(data) values('$data_sql')"; > $insert = mysql_query($query, $connection); > if (!$insert){ >  trigger_error(mysql_error($connection), E_USER_ERROR); > } > > My custom err

Re: [PHP] Select Query with Multiple Optional Values

2009-03-21 Thread Virgilio Quilario
>> Trying to find best way to accomplish following scenario.  Looking to search >> inventory through a POST form, have the following optional fields to search >> by: Product Name, Color, Size, and Status.  Search maybe for the Product >> Name and/or Color or they may search for just the Color or al

RE: [PHP] So called "PHP Expert"

2009-03-21 Thread abdulazeez alugo
> Date: Sat, 21 Mar 2009 10:54:56 -0400 > From: danbr...@php.net > To: tedd.sperl...@gmail.com > CC: php-general@lists.php.net; rob...@interjinn.com > Subject: Re: [PHP] So called "PHP Expert" > > On Sat, Mar 21, 2009 at 10:48, tedd wrote: > > > > Leave it to you to drop kick me when you hav

Re: [PHP] PHP (Google Summer of Code 2009)

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 18:39, Slava Gerchicov wrote: >  Are you looking for developers? > What could I do for you? Check out the GSOC 2009 Wiki page at http://wiki.php.net/gsoc/2009 for some ideas of what's being considered this year. > What do you think about a translation the last PHP's d

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread Robert Cummings
On Sat, 2009-03-21 at 15:37 -0700, mike wrote: > 2009/3/21 Nisse Engström : > > > I tend to use the escape functions in very close proximity to > > the actual query, so I don't see a problem with supplying a > > connection identifier. > > Except unless explicitly specified, my applications do not

Re: [PHP] Select Query with Multiple Optional Values

2009-03-21 Thread Robert Cummings
On Sat, 2009-03-21 at 10:30 -0700, ben...@gmail.com wrote: > Trying to find best way to accomplish following scenario. Looking to search > inventory through a POST form, have the following optional fields to search > by: Product Name, Color, Size, and Status. Search maybe for the Product > Name a

[PHP] PHP (Google Summer of Code 2009)

2009-03-21 Thread Slava Gerchicov
Are you looking for developers? What could I do for you? What do you think about a translation the last PHP's documentaion to Russian?

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread mike
2009/3/21 Nisse Engström : > I tend to use the escape functions in very close proximity to > the actual query, so I don't see a problem with supplying a > connection identifier. Except unless explicitly specified, my applications do not require a connection identifier as it is stored in a global

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread Nisse Engström
On Fri, 20 Mar 2009 09:49:23 -0700, mike wrote: > Slightly off topic here, but I find it annoying to have to use the > connection identifier for the mysqli_real_escape_string. > > It would be great if there was a function that I could say > mysql_escape_string that is using utf-8 instead of defau

[PHP] Select Query with Multiple Optional Values

2009-03-21 Thread ben...@gmail.com
Trying to find best way to accomplish following scenario. Looking to search inventory through a POST form, have the following optional fields to search by: Product Name, Color, Size, and Status. Search maybe for the Product Name and/or Color or they may search for just the Color or all 4 fields.

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread Lists
George Larson wrote: [snip] Donovan: There's no "powers that be" on this list. The closest is Dan and we all ignore him. :-) Next question -- how do you keep login's and passwords safe? Is the following not embedded in the html? [SQLConnect dbType=MySQL&host=192.168.1.1&database=TestNames&uid=

Re: [PHP] Web Development/Application Analysis

2009-03-21 Thread tedd
At 6:15 PM +0300 3/21/09, OOzy Pal wrote: Tedd, You wrote a long story about a client hiring a programmer which not what I am asking. Anyhow, thank you for your post. I learned from it. I don't want to take it further. This php mailing list. Really -- is that what this is? I thought it was

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread tedd
At 11:20 AM -0400 3/21/09, Robert Cummings wrote: My ignorance is vast indeed... how else do you explain all that outer space. Cheers, Rob. Rob kids you not, I stood on the edge of his vastness and saw black holes running form it. :-) Cheers, tedd -- --- http://sperling.com http://

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread Robert Cummings
On Sat, 2009-03-21 at 10:48 -0400, tedd wrote: > At 10:37 AM -0400 3/21/09, Robert Cummings wrote: > >On Sat, 2009-03-21 at 09:29 -0400, tedd wrote: > > > From my perspective, once you realize how much > >> you don't know, then you can grow. I am amazed > >> everyday by my vast ignorance. > > >

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread Robert Cummings
On Sat, 2009-03-21 at 16:40 +0200, Dotan Cohen wrote: > > tedd kids you not. I'm standing at the edge of his ignorance and I just > > droppped a rock... I've yet to hear it hit the bottom. I'll let you know > > when I do. > > That was you?!? I'm stand right here in the middle of ignorance and > BA

Re: [PHP] Web Development/Application Analysis

2009-03-21 Thread OOzy Pal
Tedd, You wrote a long story about a client hiring a programmer which not what I am asking. Anyhow, thank you for your post. I learned from it. I don't want to take it further. This php mailing list. On Sat, Mar 21, 2009 at 4:40 PM, tedd wrote: > At 11:45 PM +0300 3/20/09, OOzy Pal wrote: >

Re: [PHP] need help with code

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:54, Virgilio Quilario wrote: > > hi Chris, > > basing on the code you posted, you're missing the closing brace for > if ($accessToken===NULL) > { > > there should be 3 closing braces before the last ?> That'll be the next error, but that error would print "unexpecte

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:48, tedd wrote: > > Leave it to you to drop kick me when you have the chance. Here I was trying > to say something prophetic and you made it pathetic. :-) Maybe philosophical? > Oh well, at least I take comfort in the fact that you'll probably not live > to be as o

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread tedd
At 10:26 AM -0400 3/21/09, George Larson wrote: For the record, I'm with Tedd. Regardless of this being a "designated" PHP arena, I'm enjoying this WebDNA conversation and might even give it a test drive... One of the good things about this list is that most of us are multi-lingual. Most of

Re: [PHP] need help with code

2009-03-21 Thread Virgilio Quilario
> I hate asking for help with simple code like this because I can usually > figure it out, but I'm stumped on this one.  I'm getting a parser error on > line 13, whether I comment out the require_once line or not.   Can you help? > > require_once('twitterlib.php'); > > $consumerKey="yVVRd1QCJYBt

Re: [PHP] need help with code

2009-03-21 Thread Daniel Brown
On Sat, Mar 21, 2009 at 10:42, Chris Westbrook wrote: > I hate asking for help with simple code like this because I can usually > figure it out, but I'm stumped on this one.  I'm getting a parser error on > line 13, whether I comment out the require_once line or not.   Can you help? Probabl

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread tedd
At 10:37 AM -0400 3/21/09, Robert Cummings wrote: On Sat, 2009-03-21 at 09:29 -0400, tedd wrote: > From my perspective, once you realize how much you don't know, then you can grow. I am amazed everyday by my vast ignorance. tedd kids you not. I'm standing at the edge of his ignorance and I

Re: [PHP] Having trouble with a form to mail script.

2009-03-21 Thread Virgilio Quilario
> Hi there, > Well, after reading the post about "so called experts" and licensing > programming, I > can say that I sure am not licensed or even remotely close to a novice PHP > programmer, just a ‘lil ole PHP beginner trying to get my web page set up and > learn a few things.  I’m not sure if I

[PHP] need help with code

2009-03-21 Thread Chris Westbrook
I hate asking for help with simple code like this because I can usually figure it out, but I'm stumped on this one. I'm getting a parser error on line 13, whether I comment out the require_once line or not. Can you help? getRequestToken(); $reqToken = $tok['oauth_token']; $reqToke

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread Dotan Cohen
> tedd kids you not. I'm standing at the edge of his ignorance and I just > droppped a rock... I've yet to hear it hit the bottom. I'll let you know > when I do. That was you?!? I'm stand right here in the middle of ignorance and BAM! a rock falls out of nowhere. There are people in here, you inse

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread George Larson
**On Sat, Mar 21, 2009 at 10:27 AM, Hans Schultz wrote: > Hi Virgilio, > Thanks for that last link, I just know need to figure out why my Netbeans > doesn't work > like that (although I am using latest version) > > On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario < > virgilio.quila...@gmail.c

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread Robert Cummings
On Sat, 2009-03-21 at 09:29 -0400, tedd wrote: > At 12:27 AM +0200 3/21/09, “•ÈýÏÝ“•ÂÔ wrote: > > > >Help me find something to say to him - I am not so good at that kind of > >stuff > > Daniel: > > It's pointless to say anything at all. People who > claim to know everything, probably do -- in th

Re: [PHP] Web Development/Application Analysis

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 9:40 AM, tedd wrote: > At 11:45 PM +0300 3/20/09, OOzy Pal wrote: > >> I guess I did not make it clear. Sorry guys/gals. I forgot to tell you >> that I own a web development/design company. >> >> Thank you >> >> -- >> OOzy >> > > What does that have to do with your questio

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Hans Schultz
Hi Virgilio, Thanks for that last link, I just know need to figure out why my Netbeans doesn't work like that (although I am using latest version) On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario wrote: Hi Hans, Is this what you are looking for? Debug PHP code using Xdebug: You ca

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 8:58 AM, tedd wrote: > At 1:03 PM -0500 3/20/09, Lists wrote: > >> tedd wrote: >> >>> Now, can you show me how to pull data from a mysql database so that the >>> input statements can be created dynamically? >>> >> >> >> Sure, >> On the WebDNA side, it's something like this

Re: [PHP] Re: So called "PHP Expert"

2009-03-21 Thread Dotan Cohen
>> This is why I am pushing for legislation to make this a licensed >> profession. > > Licensed where, and by whom? > > I envision paying M$ for some form of certification -- I can do with out. > Exactly. Programming is an accredited profession, not a licensed profession. Where did the OP's expert

Re: [PHP] Web Development/Application Analysis

2009-03-21 Thread tedd
At 11:45 PM +0300 3/20/09, OOzy Pal wrote: I guess I did not make it clear. Sorry guys/gals. I forgot to tell you that I own a web development/design company. Thank you -- OOzy What does that have to do with your questions -- other than you should have known the answers. Some times it's ju

RE: [PHP] Re: So called "PHP Expert"

2009-03-21 Thread tedd
At 10:07 PM -0400 3/20/09, Marc Christopher Hall wrote: This is why I am pushing for legislation to make this a licensed profession. Licensed where, and by whom? I envision paying M$ for some form of certification -- I can do with out. Cheers, tedd -- --- http://sperling.com http://anc

Re: [PHP] So called "PHP Expert"

2009-03-21 Thread tedd
At 12:27 AM +0200 3/21/09, “•ÈýÏݓ•ÂÔ wrote: Help me find something to say to him - I am not so good at that kind of stuff Daniel: It's pointless to say anything at all. People who claim to know everything, probably do -- in their limited world. They need the time and life experiences to o

RE: [PHP] how to make multiple sql run faster

2009-03-21 Thread Andrea Giammarchi
Usually a single transaction is faster than an insert a time (with or without union) > Date: Sat, 21 Mar 2009 12:05:18 + > From: andrew4willi...@gmail.com > To: php-general@lists.php.net > Subject: [PHP] how to make multiple sql run faster > > Hi all, > > I am inserting more than 5000 rows

Re: [PHP] PHP blogs?

2009-03-21 Thread tedd
At 12:52 PM -0700 3/20/09, Michael A. Peters wrote: Stuart wrote: 2009/3/20 George Larson : I'm reorganizing my reader. Anybody suggest any good PHP feeds? http://www.planet-php.net/ is an aggregator of some of the good stuff that's out there. It displays horribly in Firefox. They need to

Re: [PHP] mysql_real_escape_string paranoid enough?

2009-03-21 Thread tedd
At 11:41 AM -0500 3/20/09, Richard Lynch wrote: I typically do something like this: $data_sql = mysql_real_escape_string($data, $connection); $query = "insert into data(data) values('$data_sql')"; $insert = mysql_query($query, $connection); if (!$insert){ trigger_error(mysql_error($connection)

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread tedd
At 1:03 PM -0500 3/20/09, Lists wrote: tedd wrote: Now, can you show me how to pull data from a mysql database so that the input statements can be created dynamically? Sure, On the WebDNA side, it's something like this (form of "names" from a database): -snip- However, like you said, this

[PHP] how to make multiple sql run faster

2009-03-21 Thread Andrew Williams
Hi all, I am inserting more than 5000 rows into sql database but its taking more than 30 mins to get it all the data inserted. I use union to insert multiple rows of 20 at a time. What is the best way to make insert sql statement run faster -- andrew www.willandy.co.uk

RE: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Pierre Lilliman
Using it (and Codenizer within), this is completely different thing... Regards > > Hi guys, > > Check out Netbeans IDE for PHP. > http://www.netbeans.org/features/php/ > > Your wishes answered. > Though it doesn't have "use strict" but it tracks variables for you. > > Virgil > http://www.jampmar

Re: [PHP] Having trouble with a form to mail script.

2009-03-21 Thread Dotan Cohen
2009/3/21 Linda Stark : > > > > > > > > > > Hi there, > > > > Well, after reading the post about "so called experts" and licensing > programming, I > can say that I sure am not licensed or even remotely close to a novice PHP > programmer, just a ‘lil ole PHP beginner trying to get my web page set

[PHP] Having trouble with a form to mail script.

2009-03-21 Thread Linda Stark
Hi there, Well, after reading the post about "so called experts" and licensing programming, I can say that I sure am not licensed or even remotely close to a novice PHP programmer, just a ‘lil ole PHP beginner trying to get my web page set up and learn a few things. I’m not sure if I

Re: [PHP] today i found the best function I've ever seen

2009-03-21 Thread Virgilio Quilario
> if( !function_exists('clean_sql_term') ) > { >    function clean_sql_term($term) { >        return $term; >    } > } > > beautiful > hi Nathan, Nice find. You have found a very useful function. Here is how I use it to load needed PHP files that declares the function. if (!function_exists('clean

RE: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-21 Thread abdulazeez alugo
> Date: Sat, 21 Mar 2009 18:10:41 +0800 > From: virgilio.quila...@gmail.com > To: webdes...@ginkga.com > CC: danbr...@php.net; joc...@iamjochem.com; php-general@lists.php.net; > george.g.lar...@gmail.com > Subject: Re: [PHP] [News] Affordable Independent Web Developer - Search > Engine Optim

Re: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-21 Thread Virgilio Quilario
> As a matter of fact "DANIEL" ...I AM A REAL PERSON ! > > You know, I really hate it that people like YOU reply back to me with your > self-vain - self-important attitudes - and act like no one else on the F-ing > planet has the right to live or even share the same air you breath > > Y

Re: [PHP] Re: today i found the best function I've ever seen

2009-03-21 Thread 9el
>>>    It's in the upcoming retrograde release: PHP 3.11 (For Workgroups). >>> >> >> Sweet!  Will that improve security?  What about right mouse button, will >> it remove it? >> > > Not sure about that, but I heard it should fix the bug with my new mouse and > the center button tilt clicker thingy

Re: [PHP] Trying To Read - Show A Csv File Line By Line

2009-03-21 Thread Virgilio Quilario
> The for loop iterates through each field of each line, the while loop > iterates through each line.  Move the out of the for loop, right > before the end of the while loop as follows: > $row = 1; > $handle = fopen("try3.csv", "r"); > while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { >  

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Virgilio Quilario
> Thanks, > I downloaded Netbeans week or two ago and I found all that. I thought there > is > something more advanced (these things have any decent editor/ide (for > example > eclipse + pdt also have all that)). We are talking completely different > level > of checks :-) In the end I may switch to

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Hans Schultz
Thanks, I downloaded Netbeans week or two ago and I found all that. I thought there is something more advanced (these things have any decent editor/ide (for example eclipse + pdt also have all that)). We are talking completely different level of checks :-) In the end I may switch to non-free

Re: [PHP] Re: So called "PHP Expert"

2009-03-21 Thread Dotan Cohen
> Maybe someone else will disagree and say that its a masterpiece, then > I'll bow out gracefully. > Actually, it is a masterpiece and it _should_ be treated like the prize that it is with it's own page on some wiki. Under the title "How not to do it". -- Dotan Cohen http://what-is-what.com ht