Ubuntu 8.10, Perfect Linux distro for PHP development

Linux, OpenSource, Resources, Reviews, Thoughts, Ubuntu
I recently felt the urge to have a development testing environment on Linux (LAMP). I tried CentOS first since it is one of the leading industry standard Linux server. I was disappointed to see that CentOS does not have a 5.2.x series of PHP that I could install via "yum" (am not a very advance user so does not wanted to build it by typing long queries in SSH just to find out that I left some core thing in the first place). I did a bit of research and found out that Ubuntu could be a better choice. Luckily I had the latest version of Ubuntu already shipped via Postal Mail (aka Snail Mail) and this time the CDs DID get through the customs. For those new to Ubuntu,…
Read More

CakePHP – link / include JavaScript files in layouts

JavaScript Libraries, OpenSource, PHP, Resources, Tips and Tricks, Tutorials
Create (or modify the) file [code lang="plain"]app/app_controller.php[/code] add this code [php] class AppController extends Controller { var $helpers = array('Html', 'Form', 'Javascript'); } [/php] CakePHP 1.2 allows you to define a reference to a Javascript file which is then added to the head section of the generated code. For this purpose the variable $scripts_for_layout has to be added to the layout: [php] <head> < ?php echo $scripts_for_layout; ?> </head> [/php] In the view you can now link to the Javascript file with: [php] $javascript->link('script.js', false); // OR you can simply use $javascript->link('script.js'); [/php]
Read More

A Bug in WordPress v 2.5.1

Flickr, OpenSource, PHP, Reviews, Thoughts
A Bug in Wordpress v 2.5.1, originally uploaded by asim.zeeshan. Excerpts from PHPCommunity I discovered a BUG in Wordpress Version 2.5.1, the forgot password sends you an email with the "key" that is supposed to generate a new email but the "key" itself contains characters like "&" which appends to the URL like query string and wordpress gives an error that the "key" is invalid.
Read More

Learning the Yahoo User Interface Library

Flickr, JavaScript Libraries, OpenSource, PHP, Resources, Reviews
The cool book that i just bought today. I was previously working with Prototype and Scriptaculous (and im very good at it) and then jQuery. Most recently i have also worked with mootools because i had to create a component for Joomla 1.5. This week, i had to do something with sliders and had to look into each one of these in more detail. Found out that YUI is far better (and advanced). If you want to sneak peak before purchasing the book, then visit the official YUI blog and read Sample Chapter from Dan Wellman’s “Learning the Yahoo! User Interface Library”. Note: Post comments and your criticism below.
Read More