[PHP] Re: dynamic copyright in page footer?

2011-05-01 Thread Walkinraven
On 04/30/2011 07:06 PM, David Mehler wrote: Hello, I am trying to use php to put a copyright notice in a page footer. I'm using the date function with the Y value for the year. Here's the code: ?php echo date ('Y'); ? This works great for a site done in 2011 but next year I'm going to want to

[PHP] Why Constants could Not be Array?

2011-04-30 Thread Walkinraven
For needing a constants=array, I have to use 'public static $a = array(...)' instead. Why the language could not relax the restriction of constants? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-18 Thread WalkinRaven
On 01/08/2011 04:55 PM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # One label (?:\.(?1))*+ # More labels

Re: [PHP] Help: Validate Domain Name by Regular Express

2011-01-08 Thread WalkinRaven
On 01/09/2011 01:09 AM, Ashley Sheridan wrote: On Sat, 2011-01-08 at 16:55 +0800, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z