Re: [PHP] $_POST vs $_REQUEST

2010-02-23 Thread Jochem Maas
Op 2/22/10 10:49 PM, John Black schreef: > On 02/22/2010 11:42 PM, Michael Shadle wrote: >> The difference here is you can at least have some control over the data >> and expect it in a certain fashion. Also the behavior of cookies vs. get >> vs. post are different (cookies have length and expirati

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

2010-02-23 Thread Jochem Maas
Op 2/24/10 1:16 AM, Ashley Sheridan schreef: > 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 t

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

2010-02-23 Thread Dasn
On Tue, 23 Feb 2010 23:44:17 +0800, Nathan Rixham wrote: As PHP is loosely typed, the only real way around this is to specify a return type in a PHPDoc block, then parse that using reflection to get the @return parameter. another option is to use something like haXe which is an ECMA style typ

Re: [PHP] PHP or SQL to do this?

2010-02-23 Thread Jim Lucas
Rob Gould wrote: 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

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

2010-02-23 Thread Jim Lucas
Paul M Foster wrote: 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=102&threadID=310099&messageID=3099392&tag=content;leftCol That guy's partial to JOE. Pffft. Rea

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

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=102&threadID=310099&messageID=3099392&tag=content;leftCol That guy's partial to JOE. Pffft. Real men use Vim. A

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

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] $_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 becau

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 : > > > Could you tell me how to retrieve the 'return type'? > >> Thanks. > >> > >> > >> -- > >> Dasn > > > >That's not possible. Consider this function: > > > >function foo() > >

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

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

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=102&threadID=310099&m > essageID=3099392&tag=content;leftCol

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=102&threadID=310099&m essageID=3099392&tag=content;leftCol > -Original Message- > From: Richard Quadling [mailto:rquad

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] 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 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 anyone else @honeyflowfarm.c

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

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

[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"" wrote in mess

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 : >> > 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)) { >> ca

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 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 by malformed js unable

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 Murphy 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 normalized and sanitized

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 finish

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 : > 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; case 1:

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

2010-02-23 Thread Bruno Fajardo
2010/2/23 Daniel Egeberg > > 2010/2/23 Dasn : > > Hello guys, I try to use 'ReflectionFunction' to retrieve the info of a > > function. > > For example: > > > > > $rf = new ReflectionFunction('strstr'); > > echo $rf; > > ?> > > === output == > > > > Function [ functio

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

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

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 da

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 wrote: On 23 February 2010 00:28, Daevid Vincent wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] On Mon, 2010-02-22 at 14:39 -0800, Don W

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

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

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 achi

[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] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Richard Quadling
On 23 February 2010 00:28, Daevid Vincent 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 t

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 i

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; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jab

[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: === output == Function [ function strstr ] { - Parameters [3] { Parameter #0 [ $haystack ] Parameter #1 [ $needle ] Parameter #2 [ $part ] } } The pr

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: http://www.mail-archive.com/inter

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