Category Archives: Web Development

JSON Jumpstart

123456789101112131415161718192021222324252627282930313233343536373839404142434445/**  * In JSON, curly brackets mark a new object ({ or })  * Any variable inside the object — also known as the object’s attribute — is  * accessible using the dot syntax (object.attribute) or the bracket syntax  * … Continue reading

Posted in javascript, Web Development | Comments Off on JSON Jumpstart

Check For Loaded PHP Extensions

Sometimes you want to make sure a certain PHP extension is loaded or not. These extensions can be curl, xmlrpc, or ldap. After all, when you move your application from one server to another the configuration is not necessarily the … Continue reading

Posted in PHP, Web Development | Comments Off on Check For Loaded PHP Extensions

Extending an Existing Javascript Function

This is how you extend an existing javascript function. Assuming that you want to preserve the existing function and the “added algorithm” is somewhat only needed to be executed based on a certain environment only. 123456789101112function abc(){   alert(’abc is … Continue reading

Posted in javascript, Web Development | Comments Off on Extending an Existing Javascript Function

Super Powerful Debugging Function in Javascript

Super powerful debugging function in JavaScript. This function will output your variable in question to the Firebug console or the HTML page. With it you can debug anything from an Object, array, string, integer, etc. It is also recursive-safe. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117/** … Continue reading

Posted in javascript, Web Development | Comments Off on Super Powerful Debugging Function in Javascript