At first glance , the biggest news is AMF support:
Adobe’s Action Message Format protocol to your PHP 5 application
Posted in Zend Framework
No comments »At first glance , the biggest news is AMF support:
Adobe’s Action Message Format protocol to your PHP 5 application
Posted in Zend Framework
1 comment »Why we want to install ZF as PEAR ? Because is too boring and time consuming to move all ZF files up and down for each script you want to install , there are a lot of files.
Also that way we can forget about the need to update ZF at latest versions, and keep tracks of which version and on which server we have ZF. Of course, backward compatibility can be an issue in future ZF releases ( like 2.0 branch for PHP > 5.3)
php_admin_value open_basedir "/var/www/vhosts/dotkernel.com/httpdocs:/tmp:/usr/share/pear"
require_once 'Zend/Loader/Autoloader.php';
Posted in javascript
No comments »Problem: email should allow +/- characters in user, – in domain.
dash (-) should be allowed anywhere in an email address or domain.
plus (+) is allowed in the username (many people use this for categorization, especially at gmail)
Solution :
var regex = new RegExp("^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,})$","i");
This will validated also emails like: username1+username2@gmail-domain.co.uk