Home » Archive

Articles Archive for July 2008

Zen-cart »

[27 Jul 2008 | 3 Comments]

Almost one year back, I had problem with the product display in Zen-cart. I searched for help in zen-cart forum. I started a topic over there. But at last, I myself had to post the solution on that thread.. coz, I found the solution. ;) I just wanted to include that problem and solution in this post.
My problem was:-

PEAR, Smarty »

[21 Jul 2008 | 2 Comments]

For uploading files, you need to install a package of PEAR called ‘HTTP_Upload’ along with the installation of PEAR and Smarty.
HTTP_Upload is used for easy and secure managment of files submitted via HTML forms. This package provides an advanced system for managing uploads of files via HTML input type “file” fields.

PEAR, Smarty »

[20 Jul 2008 | 5 Comments]

First of all, you need to install PEAR in your web server. Then you need to install Smarty.
After that, you need to install a package in PEAR. It’s called ‘Pager’.

PEAR, Smarty »

[18 Jul 2008 | One Comment]

For using database, you need to install a package of PEAR called ‘MDB2’ along with the installation of PEAR and Smarty.
MDB2 provides a common API for all support RDBMS.

Smarty »

[16 Jul 2008 | One Comment]

In this article, I will be explaining about foreach and section loop used in Smarty. I will be using these loops for creating a selection list.
We can create selection list from a custom Smarty function html_options.

Smarty »

[14 Jul 2008 | 2 Comments]

In previous article, I had written about installing and using Smarty. In this article, I will be showing how you can include header and footer in Smarty.
index.php assigns contents and calls the template file index.tpl

Smarty »

[11 Jul 2008 | 4 Comments]

In this article, I will be introducing how to use Smarty Template engine. This is a beginner tutorial.
First of all, you need to download Smarty from http://www.smarty.net/download. You can follow a quickstart guide from here as well: http://www.smarty.net/quick_install. My approach of coding is a bit different than the quickstart guide present on smarty website.

PHP »

[2 Jul 2008 | 4 Comments]

Here is the PHP code to fetch the html source code of any website specified. fopen function is used to open the website URL. stream_get_contents is used to read the opened URL. The fetched code is displayed inside a textarea.