Quantcast
Channel: Adclick IT Blog » tip
Browsing latest articles
Browse All 3 View Live

Doctrine Bulk Inserts

Good tip on improving doctrine performance on bulk inserts: $col = new Doctrine_Collection('Model'); $cold->add($record1); $cold->add($record2); $cold->add($record3); $cold->add($recordN);...

View Article



Validate emails the PHP 5 way

Forget the numerous regex’s, if you’re using PHP5 (i hope 99% of you do…), just use PHP’s native filter_var function: 123456789function is_email_valid($email) {   return filter_var(filter_var($email,...

View Article

PHP read POST json data

Imagine you have a webhook on your server and someone sends a JSON body POST to it. The data is not available in the global $_REQUEST or $_POST variables as you’d expect. To access the JSON data you’ll...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images