Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2003, 10:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry about that. I didn't mean to offend you.

Here's something you can slap me with:

version_compare() didn't exist until 4.1.0, so my conditional expression that USES version_compare is totally redundant and decreases inefficiency.

I mean, if version_compare() exists, then we know for a fact that the current version (as returned by php_version()) is definitely NOT less than 4.1.0.

The entire conditional can be rewritten without loss of functionality as (!function_exists('version_compare')).



Take care,

Nik
http://www.bigaction.org/
 
Old November 14th, 2003, 12:31 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Quote:
quote:
Sorry about that. I didn't mean to offend you.
Oh no worries! I'm not offended! Most of the time your input/criticism is wholly merited. Many of the threads that I participate in I'm learning whatever subject matter is there for the first time, researching it, seeing what's going on so I can learn too. So don't get me wrong... I value your expertise.

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
coding php which link that i want to view a form syazlan Pro PHP 0 January 30th, 2007 03:38 AM
PHP - Save files from link in email ? brigzy PHP How-To 0 September 15th, 2005 05:13 PM
Tracking Users arimakidd Classic ASP Professional 0 August 17th, 2005 05:35 PM
UPS Tracking jafarsalam XML 0 October 20th, 2004 04:23 PM
Chap. 11 - Try It Out, Session Tracking with PHP Tachyon BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 June 17th, 2004 02:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.