One way to start the session with Zend Framework 2 (2.0.3 dev) is as below written.
$manager = new \Zend\Session\SessionManager();
- Start the session manager
- Get the session config object
- Set httpOnly cookies for better xss security
- Set your session name
- Start the session
There are many other options which i have not tested yet, but this options are mandatory in my opinion.
- aware of language grammatics,
- easy to hack,
- available for past and future dates,
- show original date on mouseover
Here is some quick example how to use zend framework rest client and google maps geocoder API together.
$client = new Zend_Rest_Client('http://maps.googleapis.com/maps/api/geocode/xml');
$client->address('Cesta Andreja Bitenca 68, 1000 Ljubljana');
$res = $client->get();
After having deep thought about security, bad hardware and shit I decided to make some database backup for some of my clients. They wouldn’t provide any spare backup space so i decided to use my account on rackspace cloud. The file space was cheap enough so i do not charge my client for it (even if I would i could not). I wont write about how to restore the database. In case a restore is needed, the situation will be too complex to restore with a click of button. It took about 1 hour to complete the task. The plan is to use php-cli, crontab and cloud files. Continue reading