My Blogs

Creative Collection

When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees.

PHP

How to enable PHP error logging via .htaccess

Tracking PHP errors is a must when troubleshooting unexpected issues, related to plugins, themes. But you don’t want to have them visible on your site, especially not your customers. Here is a tutorial how to log all PHP errors behind the scenes to a private file.

Read More →
JS

A basic introduction to jQuery

What is jQuery? jQuery is a great and cross-browser JavaScript library designed to simplify the HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. It is the most popular JavaScript library in use today. jQuery was released in January 2006 at BarCamp NYC by John Resig.

Read More →
PHP

Adding and removing javascript and css when and where you need it – in Magento

Adding and removing javascript and css is handled separately within Magento. CSS is added in the usual fashion, where you have a <link rel=”stylesheet”
 />. However, any included javascript (unless linked to “by hand” from a theme’s skin) is pulled via a php files which reads through the “js” folder in the root directory (root/js/index.php is responsible for this) That is all well and good for Magento.

Read More →
PHP

Create and customize the Magento store

Magento content management system is an open source eCommerce application, perfect for online stores. It is a powerful software characterized by great flexibility and full control over the look, content and functionality of your online shop. Magento CMS was created on March 31, 2008. It was created by Varien, building on components of the Zend Framework.

Read More →
HTML

Speed Up Your Site – Web Site Optimization

The load time of websites is one of the most important factors affecting its usability; most Internet users will just skip a site altogether if it fails to load within a couple of seconds. Slow-loading websites are one of the main reasons that visitors may leave a site. As a result, it is important to ensure that your website is fast and regularly make improvements as content changes. The content should make up the majority of your pages. But as the majority of your pages, it is what you should focus on optimizing first. Content includes both text and images.

Read More →
PHP

Create Custom Module “HelloWorld” – in Magento

Part of customizing Magento is, of course, creating custom Modules. These allow you to inject functionality anywhere, whether in a “static” block fashion that’s more than static, or a shipping/payment module, or large module to do something as large as integrating a 3rd party system (or multiple systems). There are many things custom Modules can do, from editing your Database, to handling module upgrades to overriding classes (Blocks, Controllers, Models) 
 and more!

Read More →
JavaScript

Generate Constructor, Getters and Setters in NetBeans PHP IDE

This morning I have committed a feature to the NetBeans PHP support that will be part of NetBeans IDE 6.5, which offers generating of constructor, getters and setters in a PHP class. To invoke the functionality, the caret position has to be inside a PHP class and you have to press shortcut ALT+Insert (CTLRL+I on Mac). After invoking the shortcut, all possible generators are offered. Let’s explain on a simple example.

Read More →
JavaScript

How to add ‘Facebook LIKE’ button to website content

Facebook introduced more social interactions with their new “Like” or “Recommend” Button. This Facebook button enables the user to interact with a site or page. Additionally share it with his/her friends at their own Facebook profile. Well, Facebook does made it pretty easy to Implement the “Like” button code on your site. The complexity comes when it is not a single page website.

Read More →
PHP

Setup FTP Server on Ubuntu Linux Server

Open a terminal window. A File Transfer Protocol (FTP) server allows users to upload and download files to a server using the FTP protocol. FTP is useful because it is cross platform and faster than HTTP for large files. It also allows a far wider range of transfer commands, including batch transfers and transfers optimized for either ASCII or binary files. Ubuntu is a very popular distribution of the Linux operating system.

Read More →
PHP

PHP Application Development With ADODB

ADODB is a powerful database abstraction library for PHP applications. As a developer, one of the most important things to consider when developing a Web application is portability. Given the rapid pace of change in the Web world, it doesn’t do to bind your code too tightly to a specific operating system, RDBMS or programming language; if you do, you’ll find yourself reinventing the wheel every time things change on you (and they will – take my word for it).

Read More →