Re: [PHP] Re: Which PHP 5.3 documentation generators have you found?

2010-09-30 Thread Andrew Mason
On Fri, Oct 1, 2010 at 6:44 AM, David Harkness wrote: > While we don't use any 5.3 specific features such as namespaces yet, we set > up our continuous integration system to use Doxygen. It runs significantly > faster than phpDocumentor, though we put zero effort into tuning either > system. > I

Re: [PHP] PHP Email Question

2010-09-30 Thread J Ravi Menon
On Wed, Sep 29, 2010 at 1:37 PM, Joe Jackson wrote: > Hi > > I am trying the following snippet as Bostjan  suggested, and an email is > getting sent when I submit the form however in the body of the email I am > getting none of the form data in the body of the email.  All I am getting is > the let

Re: [PHP] file_get_contents() failing on CentOS.

2010-09-30 Thread Richard Quadling
On 30 September 2010 20:27, Adam Richardson wrote: > On Thu, Sep 30, 2010 at 5:02 AM, Richard Quadling > wrote: >> >> Hi. >> >> I'm trying to help a friend with a CentOS setup. >> >> He's installed PHP and SOAP using yum install php-soap and he is >> having problems. >> >> I assisted in the devel

Re: [PHP] Re: Which PHP 5.3 documentation generators have you found?

2010-09-30 Thread David Harkness
While we don't use any 5.3 specific features such as namespaces yet, we set up our continuous integration system to use Doxygen. It runs significantly faster than phpDocumentor, though we put zero effort into tuning either system.

[PHP] filter_var (was: Re: [PHP] version_compare)

2010-09-30 Thread Brian Smither
>As Paul pointed out, maybe your version of PHP was built without the >filter_var function compiled in. This is what I have learned about PHP with filter_var() as an illustrative point: Many people who provide elaborations on PHP make too many assumptions or are blatently and woefully incomple

Re: [PHP] Re: Which PHP 5.3 documentation generators have you found?

2010-09-30 Thread Adam Richardson
On Thu, Sep 30, 2010 at 2:30 PM, Erik L. Arneson wrote: > On Wed, 29 Sep 2010, Adam Richardson wrote: > > Hi all, > > > > Anybody know of a documentation generator which plays nicely with PHP > > 5.3? > > I've always been a fan of phpDocumentor. > > I agree, it's worked very well in the past. Ho

Re: [PHP] version_compare

2010-09-30 Thread Jim Lucas
Brian Smither wrote: >> Personally, I would change that to be >> if ( function_exists('filter_var') ) { > > So would I: > *But it's not my code. > *I wish to learn and understand the cause of the problem - not walk around it. > >> It means condition (PHP_VERSION >= 5.2.0) > > I understand that.

[PHP] Re: Which PHP 5.3 documentation generators have you found?

2010-09-30 Thread Erik L. Arneson
On Wed, 29 Sep 2010, Adam Richardson wrote: > Hi all, > > Anybody know of a documentation generator which plays nicely with PHP > 5.3? I've always been a fan of phpDocumentor. -- Erik Arneson GPG Key ID : 1024D/62DA1D25 BitCoin : 1LqvuGUqJ4ZUSoE7YE9ngETjwp4yZ2uSdP Office : +1.541.291.

Re: [PHP] version_compare

2010-09-30 Thread Brian Smither
>Personally, I would change that to be >if ( function_exists('filter_var') ) { So would I: *But it's not my code. *I wish to learn and understand the cause of the problem - not walk around it. >It means condition (PHP_VERSION >= 5.2.0) I understand that. There was a second, more relevant, part

Re: [PHP] version_compare

2010-09-30 Thread Jim Lucas
Brian Smither wrote: > I found this code... > if (version_compare(PHP_VERSION, '5.2.0', '>=')) { > $text=filter_var($text, FILTER_SANITIZE_URL); > } > > ...to be questionable. > > Under what conditions would version_compare() return true, yet the > filter_var() be undefined? Because that's what

Re: [PHP] version_compare

2010-09-30 Thread Paul M Foster
On Thu, Sep 30, 2010 at 09:43:22AM -0600, Brian Smither wrote: > > I found this code... > if (version_compare(PHP_VERSION, '5.2.0', '>=')) { > $text=filter_var($text, FILTER_SANITIZE_URL); > } > > ...to be questionable. > > Under what conditions would version_compare() return true, yet the >

Re: [PHP] version_compare

2010-09-30 Thread shiplu
On Thu, Sep 30, 2010 at 9:43 PM, Brian Smither wrote: > > I found this code... > if (version_compare(PHP_VERSION, '5.2.0', '>=')) { It means condition (PHP_VERSION >= 5.2.0) >  $text=filter_var($text, FILTER_SANITIZE_URL); > } > > ...to be questionable. > > Under what conditions would version_com

Re: [PHP] Database Administration

2010-09-30 Thread Tom Barrett
Thanks for the replies, they have been most enlightening. :)

[PHP] version_compare

2010-09-30 Thread Brian Smither
I found this code... if (version_compare(PHP_VERSION, '5.2.0', '>=')) { $text=filter_var($text, FILTER_SANITIZE_URL); } ...to be questionable. Under what conditions would version_compare() return true, yet the filter_var() be undefined? Because that's what is happening. Thank you. -- PHP

Re: [PHP] Which PHP 5.3 documentation generators have you found?

2010-09-30 Thread Richard Quadling
On 29 September 2010 20:07, Adam Richardson wrote: > On Wed, Sep 29, 2010 at 2:54 PM, a...@ashleysheridan.co.uk < > a...@ashleysheridan.co.uk> wrote: > >> Does phpDocumenter not do the trick? I must admit, I've not tried anything >> specific to 5.3 (i can imagine the namespace thing would be a maj

[PHP] file_get_contents() failing on CentOS.

2010-09-30 Thread Richard Quadling
Hi. I'm trying to help a friend with a CentOS setup. He's installed PHP and SOAP using yum install php-soap and he is having problems. I assisted in the developed the php script he is using and it is working fine on Windows. In testing, we can do ... # wget http://www.php.net but not ... # p