Regular expression
One of the most important things you need to know when doing any language is regular expression. It will do almost everything for you. Cup of tea? Two sugars? Milk? No problem.
Generators:
Simple way off accessing mysql tables in codeigniter
Easy base model to setup so you can slim down that controller.
add the public $table_name;
/**
* Get all research types, returns all
*
* @return object
*/
private function get_TableAccess()
{
$query = $this->db->get($this->table_name);
if ($query->num_rows() > 0) return $query->result() ;
return NULL;
}
function get_GetTable($table = NULL){
$this->table_name = $table;
return $this->get_tableaccess();
}
do the call:
$data['countries'] = $this->get_GetTable('Countries');
PHP GD programming
If you need to do image filters in php GD, David Walsh has some easy to understand ways of doing it. This method seems a lot better than using Canvas and IE image filters has you need to program for each browser and relies on the clients machine.
http://davidwalsh.name/php-image-filter
Import to google plus
Twitter:
http://www.twittertoplus.com/
Facebook:
https://chrome.google.com/webstore/detail/ficlccidpkaiepnnboobcmafnnfoomga
Twitter on Google plus:
http://crossrider.com/install/529-google-tweet
Facebook on Google plus:
http://crossrider.com/install/519-google-facebook
Follow me:
http://bit.ly/nzwc4f
Shorted:
http://goo.gl/
Tools like these are important if you need to use Social Media to sell your business.
Just PHP
php compiler
http://www.roadsend.com/home/index.php
https://github.com/facebook/hiphop-php/wiki/
Raven compiler http://code.roadsend.com/rphp
Template engines
http://www.twig-project.org/doc/templates.html
http://www.raintpl.com/
http://phpsavant.com/
http://www.invenzzia.org/en/download/open-power-template/
Testing
http://www.raintpl.com/PHP-Template-Engines-Speed-Test/
Frameworks
Codeigniter
Zend
Yii
CakePHP
Social media management tools
A good list of 22 social media management apps that will assist you
http://www.freshnetworks.com/blog/2011/01/25-social-media-management-tools-list-wiki/
Automate your blog posting to social networks
Linux server upgrades
One of my main dedicated servers had a full upgrade of hardware and software yesterday.
BIG bug in php 5.3.6 was opendir, readdir which since the upgrade cause a massive memory leak per call of 600 – 700mb, as you would think this used up all the 8 gig swap and 4 gig physical memory, I’m guessing it would use up all the memory what ever you had.
The solution was to use is_dir as the loop through on opendir would return a TRUE and cause it to read even when it wasn’t a directory, this would load all the files in storage causing this issue.
The server is now being monitored until we are happy.
