php-general Digest 23 Feb 2010 15:32:38 -0000 Issue 6605

2010-02-23 Thread php-general-digest-help
php-general Digest 23 Feb 2010 15:32:38 - Issue 6605 Topics (messages 302289 through 302314): Re: PDOStatement::rowCount() bug? 302289 by: Paul M Foster 302290 by: Nathan Nobbe 302291 by: Paul M Foster unpacking an array of structs... 302292 by:

php-general Digest 24 Feb 2010 03:43:07 -0000 Issue 6606

2010-02-23 Thread php-general-digest-help
php-general Digest 24 Feb 2010 03:43:07 - Issue 6606 Topics (messages 302315 through 302329): Re: How to get the 'return type' of a function? 302315 by: Nathan Rixham 302325 by: Ashley Sheridan 302327 by: Kevin Kinsey 302328 by: Ashley Sheridan Re: help,

Re: [PHP] Sending e-mail via socket

2010-02-23 Thread Per Jessen
Paul M Foster wrote: Second, you're doing this socket operation as though it's a static one-sided conversation. I'm not an expert, but SMTP conversations don't normally work this way. You issue the HELO, wait for the response, issue other commands, wait for the response, etc. The way you're

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Richard
Hi, Well people better than me (how is that possible?!) have said that $_REQUEST has the potential to open your app up to security vulnerabilities, and that it should be avoided because of that. Here's a post from Stephan Esser about it on the PHP-Internals list:

[PHP] How to get the 'return type' of a function?

2010-02-23 Thread Dasn
Hello guys, I try to use 'ReflectionFunction' to retrieve the info of a function. For example: ?php $rf = new ReflectionFunction('strstr'); echo $rf; ? === output == Function [ internal:standard function strstr ] { - Parameters [3] { Parameter #0 [ required

Re[2]: [PHP] Sending e-mail via socket

2010-02-23 Thread Andre Polykanine
Hello Rene, Can't do that since the message is personalized: I need to put in the user name (Hello $username) and some other data, so the BCC is not a solution, unfortunately... -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 09:19 +, Richard wrote: Hi, Well people better than me (how is that possible?!) have said that $_REQUEST has the potential to open your app up to security vulnerabilities, and that it should be avoided because of that. Here's a post from Stephan Esser about it on

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Richard Quadling
On 23 February 2010 00:28, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] On Mon, 2010-02-22 at 14:39 -0800, Don Wieland wrote: I am needing assistance IMMEDIATELY in finishing up a project (the developer went in

[PHP] Re: help, please, understanding my problem

2010-02-23 Thread Stan
It works like it is ... once. What I don't understand is why the client browser(s I have tried it with Firefox and IE 6) can't find the Javascript function the second time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: help, please, understanding my problem

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 05:55 -0600, Stan wrote: It works like it is ... once. What I don't understand is why the client browser(s I have tried it with Firefox and IE 6) can't find the Javascript function the second time. I've had a look, but I'm not sure what you're trying to achieve

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread shiplu
2010/2/23 Dasn d...@lavabit.com: Hello guys, I try to use 'ReflectionFunction' to retrieve the info of a function. For example: ?php $rf = new ReflectionFunction('strstr'); echo $rf; ? === output == Function [ internal:standard function strstr ] {  -

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Phpster
Depends on what you do with them! Bastien Sent from my iPod On Feb 23, 2010, at 6:42 AM, Richard Quadling rquadl...@googlemail.com wrote: On 23 February 2010 00:28, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]

RE: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Bob McConnell
From: Rene Veerman [mailto:rene7...@gmail.com] On Mon, Feb 22, 2010 at 9:39 PM, Slack-Moehrle Single quotes is best, correct to prevent sql injection? sql injection fixing is an evolving art, but you can start by pushing all variables that can be changed by end-users going into a database

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Daniel Egeberg
2010/2/23 Dasn d...@lavabit.com: Hello guys, I try to use 'ReflectionFunction' to retrieve the info of a function. For example: ?php $rf = new ReflectionFunction('strstr'); echo $rf; ? === output == Function [ internal:standard function strstr ] {  -

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Bruno Fajardo
2010/2/23 Daniel Egeberg degeb...@php.net 2010/2/23 Dasn d...@lavabit.com: Hello guys, I try to use 'ReflectionFunction' to retrieve the info of a function. For example: ?php $rf = new ReflectionFunction('strstr'); echo $rf; ? === output ==

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread tedd
At 3:17 PM +0100 2/23/10, Daniel Egeberg wrote: 2010/2/23 Dasn d...@lavabit.com: Could you tell me how to retrieve the 'return type'? Thanks. -- Dasn That's not possible. Consider this function: function foo() { switch (rand(0, 1)) { case 0: return 42;

Re: [PHP] PHP / mySQL Project...

2010-02-23 Thread tedd
At 11:46 PM + 2/22/10, Ashley Sheridan wrote: On Mon, 2010-02-22 at 14:39 -0800, Don Wieland wrote: Hello, I am needing assistance IMMEDIATELY in finishing up a project (the developer went in to have shoulder surgery and will be out of commission for 3 weeks) and I need this

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread tedd
At 11:07 PM +0100 2/22/10, John Black wrote: On 02/22/2010 10:37 PM, Michael Shadle wrote: On Mon, Feb 22, 2010 at 1:30 PM, David Murphyda...@icewatermedia.com wrote: Richard, The use of $_REQUEST it no more a security hole than $_GET or $_REQUEST, they should ALL be treats as bad data until

Re: [PHP] Re: help, please, understanding my problem

2010-02-23 Thread Rene Veerman
On Tue, Feb 23, 2010 at 1:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Are you maybe modifying it in a way that breaks the javascript? that would be my guess too... firefox + firebug will often give accurate error messages for badly formed js. the error itself is known to be caused

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Nathan Rixham
tedd wrote: At 3:17 PM +0100 2/23/10, Daniel Egeberg wrote: 2010/2/23 Dasn d...@lavabit.com: Could you tell me how to retrieve the 'return type'? Thanks. -- Dasn That's not possible. Consider this function: function foo() { switch (rand(0, 1)) { case 0: return 42;

[PHP] Re: help, please, understanding my problem

2010-02-23 Thread Stan
Thanks all. I rediscovered DIFF, compared the source for the first and second rendering. Besides the unique variable names there was also the message ... which contained imbedded single quote marks. When I changed them to imbedded double quote marks the problem went away. Stan

[PHP] PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST

2010-02-23 Thread William C. Schnute
PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST --- YOU PEOPLE ARE DRIVING ME CRAZY1 Please unsubscribe: m...@honeyflowfarm.com, wschn...@mail.honeyflowfarm.com or anyone else @honeyflowfarm.com or wschn...@gm.com PLEASE At 08:32 AM 2/23/2010, you wrote:

Re: [PHP] PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 12:10 -0500, William C. Schnute wrote: PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST --- YOU PEOPLE ARE DRIVING ME CRAZY1 Please unsubscribe: m...@honeyflowfarm.com, wschn...@mail.honeyflowfarm.com or anyone else @honeyflowfarm.com or

Re: [PHP] PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST

2010-02-23 Thread Daniel Brown
On Tue, Feb 23, 2010 at 12:10, William C. Schnute wschn...@mail.honeyflowfarm.com wrote: PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST --- YOU PEOPLE ARE DRIVING ME CRAZY1 Good. Please unsubscribe: m...@honeyflowfarm.com, wschn...@mail.honeyflowfarm.com  or

Re: [PHP] Sending e-mail via socket

2010-02-23 Thread John Black
On 02/23/2010 01:16 AM, Andre Polykanine wrote: Hello everyone, I've just subscribed to the list, and I already have a question. what I need to do is to send mail using sockets. Actually, the built-in Mail() function is great and I wouldn't have to search for something else if I didn't need more

RE: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Daevid Vincent
Am I the only Linux/Unix guy here? Do you guys not know what 'cat' is? :-\ http://en.wikipedia.org/wiki/Cat_(Unix) http://techrepublic.com.com/5208-12846-0.html?forumID=102threadID=310099m essageID=3099392tag=content;leftCol -Original Message- From: Richard Quadling

RE: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 15:06 -0800, Daevid Vincent wrote: Am I the only Linux/Unix guy here? Do you guys not know what 'cat' is? :-\ http://en.wikipedia.org/wiki/Cat_(Unix) http://techrepublic.com.com/5208-12846-0.html?forumID=102threadID=310099m essageID=3099392tag=content;leftCol

[PHP] Creating Days in a Year - Stored Procedure

2010-02-23 Thread Pointmade_Noah1
I found this code below online and I am trying to modify it for my needs. I want to pass a YEAR (Int) to the stored procedure and have it create all the day in that passed year. With one tweak, If the day is Sunday the sStatus field will equal Closed ELSE Open. All attempts come up with

[PHP] Re: Creating Days in a Year - Stored Procedure

2010-02-23 Thread clancy_1
On Tue, 23 Feb 2010 14:49:01 -0800, d...@pointmade.net (Pointmade_Noah1) wrote: I found this code below online and I am trying to modify it for my needs. I want to pass a YEAR (Int) to the stored procedure and have it create all the day in that passed year. With one tweak, If the day is

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 09:31 -0500, tedd wrote: At 3:17 PM +0100 2/23/10, Daniel Egeberg wrote: 2010/2/23 Dasn d...@lavabit.com: Could you tell me how to retrieve the 'return type'? Thanks. -- Dasn That's not possible. Consider this function: function foo() { switch

Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Jochem Maas
Op 2/23/10 10:27 AM, Ashley Sheridan schreef: On Tue, 2010-02-23 at 09:19 +, Richard wrote: Hi, Well people better than me (how is that possible?!) have said that $_REQUEST has the potential to open your app up to security vulnerabilities, and that it should be avoided because of that.

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Kevin Kinsey
Ashley Sheridan wrote: is_quantum() is pretty useful as well, if you want to see if it's sort of there and not at the same time. Probably turns into a cat in a box at some point too, everything quantum has cats in... Thanks, Ash So, should we add to the list: is_schrodingers_cat_alive() ??

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Ashley Sheridan
On Tue, 2010-02-23 at 19:19 -0600, Kevin Kinsey wrote: Ashley Sheridan wrote: is_quantum() is pretty useful as well, if you want to see if it's sort of there and not at the same time. Probably turns into a cat in a box at some point too, everything quantum has cats in... Thanks, Ash

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Paul M Foster
On Tue, Feb 23, 2010 at 11:05:14PM +, Ashley Sheridan wrote: On Tue, 2010-02-23 at 15:06 -0800, Daevid Vincent wrote: http://techrepublic.com.com/5208-12846-0.html?forumID=102threadID=310099messageID=3099392tag=content;leftCol That guy's partial to JOE. Pffft. Real men use Vim. And

[PHP] PHP or SQL to do this?

2010-02-23 Thread Rob Gould
I'm not sure if I need to write a PHP for-loop to do this, or if it can all be done in one SQL statement? Basically, I want to copy all the barcodes from one table and put them into another table, but only if the barcode in the first table 0, and only if the wineid's match from table to