Re: [PHP] Re: Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Sat, Mar 5, 2011 at 5:31 AM, Florin Jurcovici wrote: > Hi. > > I would always recommend stored procedures, as long as there are a > very few rules obeyed: > - keep them simple - they should mostly implement just CRUD operations > plus application-specific searches, and should not encapsulate a

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling wrote: > On 3 March 2011 18:30, Nathan Nobbe wrote: > > Hey gang, > > > > (Yes Tedd, I like your style, when it pertains to how you address the > list > > :)) > > > > I have a new curiosity that's arisen as a result of a new contract I'm > > workin

[PHP] Am I missing something about escapeshellarg

2011-03-07 Thread Kevin Chadwick
I just posted the following at "http://stackoverflow.com/questions/3481880/what-php-extensions-are-preferred-and-what-about-security-preferences/5223539#5223539"; Am I missing anything or are all these guides and hosts either not disabling enough functions or disabling security aids to give warni

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread Marc Guay
Hi Richard, It's not a SOAP service, and I've actually decided to have ask the client to upgrade their server software before continuing. But for the sake of study: > Depending upon your requirement, you could use simplexml_load_string() to > convert an XML string into a native PHP object rath

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread Richard Quadling
On 7 March 2011 16:16, Marc Guay wrote: > Hi folks, > > I've stumbled into a project involving a server running PHP4 without > cURL.  The script fetches data from an XML webservice and deals with > it.  Is http://ca2.php.net/xml_parser_create the place to start?  Any > tips (besides updating PHP)?

Re: [PHP] Overriding session length in existing session?

2011-03-07 Thread Scott Baker
On 03/04/2011 11:48 AM, Marc Guay wrote: > I think that my suggestion is still a valid solution, someone correct > me if I'm wrong. Let's say your code went like this: > > session_start(); I did a ton of digging and came up with session_regenerate_id() In my header.php I start the session as no

Re: [PHP] Overriding session length in existing session?

2011-03-07 Thread Scott Baker
On 03/04/2011 11:48 AM, Marc Guay wrote: > I think that my suggestion is still a valid solution, someone correct > me if I'm wrong. Let's say your code went like this: > > session_start(); I did a ton of digging and came up with session_regenerate_id() In my header.php I start the session as no

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-07 Thread Shawn McKenzie
On 03/05/2011 04:38 PM, Mark Kelly wrote: > Hi. > > Thanks for all the replies. > > On Saturday 05 Mar 2011 at 22:11 Simon J Welsh wrote: > >> On 6/03/2011, at 11:08 AM, Shawn McKenzie wrote: >>> $regex = '/"([^"]+)"/'; > > Shawn, this regex gets me two copies of each string - one with and one

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread sexyprout
Just take another web host. 2011/3/7 Marc Guay > Hi folks, > > I've stumbled into a project involving a server running PHP4 without > cURL. The script fetches data from an XML webservice and deals with > it. Is http://ca2.php.net/xml_parser_create the place to start? Any > tips (besides updat

[PHP] Help translating PHP5 code to PHP4.

2011-03-07 Thread Marc Guay
Hi folks, I've stumbled into a project involving a server running PHP4 without cURL. The script fetches data from an XML webservice and deals with it. Is http://ca2.php.net/xml_parser_create the place to start? Any tips (besides updating PHP)? Here's an example of the PHP5 code: $url = "http:

Re: [PHP] imap_search ?

2011-03-07 Thread Alex
Imap remains open after you search and doesn't close until you call imap_close. Firstly the code shouldn't be written like that, while should not operate on a fail condition of a function exec, that's just bad coding practice and that's what causes a loop here. If there are no messages in the em

Re: [PHP] Returning a recordset to a desktop app

2011-03-07 Thread Richard Quadling
On 5 March 2011 13:48, Ken Watkins wrote: > On 3/5/2011 4:30 AM, Richard Quadling wrote: >> On 4 March 2011 23:48, Ken Watkins wrote: >>> Hi All. >>> >>> I have a Windows desktop app that I created using Visual Foxpro (a database >>> app). >>> I want to write a PHP script that I will call from m

[PHP] Re: $$var

2011-03-07 Thread Colin Guthrie
'Twas brillig, and sexyprout at 06/03/11 15:16 did gyre and gimble: > ∞ And beyond! -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mageia Contributor [http://www.mageia.org/] PulseAudio Hacker [http:/

Re: [PHP] $GLOBALS example script on php.net

2011-03-07 Thread Ashim Kapoor
Before..."); print_r($globals); foreach (array( 'GLOBALS', '_ENV', 'HTTP_ENV_VARS', '_POST', 'HTTP_POST_VARS', '_GET', 'HTTP_GET_VARS', '_COOKIE', 'HTTP_COOKIE_VARS', '_SERVER', 'HTTP_SERVER_VARS',

Re: [PHP] $GLOBALS example script on php.net

2011-03-07 Thread FeIn
I am unable to provide a better definition that "user defined variables". User defined variables are variables that are declared by the user. User here means the creator (or maintainer of the script). So for: After..."); print_r($globals); return $globals; } globals(); ?> You will g