Sajjad’s Blog

Archive for the ‘PHP’ Category

SSL (HTTPS) URLs and CodeIgniter

Posted by: msh134 on: October 28, 2008

I am a fan of CodeIgniter for its ease of use. I have developed several ecommerce projects using this “beautiful” framework. While working on my first ecommerce project with CodeIgniter, I faced a problem with URLs. The site was suppose to use both “http” and “https”. But with CodeIgnitor we can define one base URL, [...]

CodeIgniter – Plugin for DOMPDF

Posted by: msh134 on: June 21, 2008

I have modified the plugin for DOMPDF which is found in CodeIgniter forum. I have added the paper size and orientation parameters. Here is the code to share with you.
More >>

DOMPDF without PDFLib as back-end PDF support

Posted by: msh134 on: June 21, 2008

I was implementing PDF generation in one of projects which is built with CodeIgniter. I searched for PDF support for CodeIgniter and found issue. I was happy, but the problem was with the PDFLib. Its not free and our client would not buy it. I thought that DOMPDF will not work without the help of PDFLib. [...]

Tags: , , ,

DOMPDF Attachment issue in IE (Internet Explorer)

Posted by: msh134 on: June 21, 2008

I have used DOMPDF in my project. But I was facing problem with Attachment. In FireFox it was working fine. But in Internet Explorer (I used IE 6) it ended with an error. In IE it was showing the download dialogue box offering the script page I used to generate the PDF file. When I [...]

Paging Class using PHP and MySQL

Posted by: msh134 on: June 21, 2008

Based on my last post on paging using PHP and MySQL, I have coded this class. It is very easy to implement and it will save your time. Here is a code snippet to show how simple to use it.
More >>

Tags: , ,

XAMPP – Sending test mails with MercuryMail

Posted by: msh134 on: June 21, 2008

XAMPP comes with MercuryMail. To use it for sending test mails, you can do the followings:
1. Start Mercury Mail from XAMPP control panel.
2. Navigate to Mercury Mail folder in XAMPP installation (Most probably C:\Program Files\xampp\MercuryMail)
3. Double click on mercury.exe and Mercury window will be opened.
4. Go to Configuration -> Local Users
5. Add a user with [...]

XAMPP – My favorite PHP environment

Posted by: msh134 on: June 21, 2008

When I started coding in PHP, the main hassle was preparing the development environment. Installing Apache, PHP, MySQL was not so easy. Then I came across PHPTried and after that WAMPP. But finally I got what I wanted – XAMPP. To me XAMPP is a total PHP development environment.
XAMPP is an easy to install Apache [...]