Browsing articles in "PHP"
Feb
28
2013

Setting up Codeigniter in Subfolder

codeigniter-lg6

setting up codeigniter can be nightmare with slightest mistake in .htaccess commands. I am pasting htaccess code which works perfectly for quick reference.

Aug
31
2012

Generating a PDF in CodeIgniter using MPDF

ci_logo_flame

Many times we need to generate reports in our applications it may be in the form of charts, excel sheets, or PDF. I assume that you are at an intermediate level and able to generate the report in HTML form and now only facing problem to convert it into PDF format. Here we are going to Generate a report in PDF format. There are many libraries available for these purpose like FPDF, PDF etc. In […]

Aug
28
2012

Extract Youtube And Vimeo Video ID From Link

YouTube-vs-Vimeo

Sometimes we’re having problem to get video id from link to embed video in iframe, but however we find out temporary solutions but after few weeks we forget that function or method. There’re 2 main video sites youtube and vimeo and now we’ve functions for both youtube and vimeo. you just have to pass video link in function and it returns video id. For Youtube :

For Vimeo :

Jul
10
2012

How To : Integrate Arrowchat For Core PHP Website / Application

Integrate Arrow Chat With Core PHP

Arrowchat is one of the powerful tool for chatting between users or friends of website, There’s a easy installation options for many CMS like wordpress, joomla and drupal but they provide a file integration.php for core installation also, You can find this file in “includes” Folder. You need to change in 3 functions : get_online_list get_link get_avatar get_online_list : This function is important because it shows list of online users

Above is the original […]

Apr
17
2012

Force SSL using htaccess file

images

Many times on pages which process secure information such as login or checkout, we need to use SSL and to make sure every user uses SSL only, we can force SSL. Most of the Payment Gateway service require payment information to be processed & sent using only by SSL otherwise they can hold your funds. Worst case if by any chance credit card information is leaked because of incorrect setup, they may fine you as […]

Mar
14
2012

Constant Contact Integration on website

ConstantContact_sprite

We need 3 items to integrate Constant Contact on our Website. 1.  Username 2. Password 3. API Key Like most other APIs and third party integration, it needs API KEY to utilize integration. API Key can be generated from below URL. http://community.constantcontact.com/t5/Documentation/API-Keys/ba-p/25015 Or alternatively, if this doesn’t work. You can try finding Developer Docs & look for the link to generate API Key.

Mar
3
2011

Mod URL Rewrite

What is Mod URL Rewrite… A basic understanding? Mod URL Rewrite mean to a.) A fancy URL. b.) A URL that is Search Engine Friendly. C.) A URL that is user friendly too. So, Mod URL Rewrite means to create a fancy web URL that is User and Search Engine Friendly too. Example: Original URL

Fancy URL

Another Example: Original URL

Fancy URL

Modification from original URL to a Fancy URL is […]

Feb
28
2011

Image Resize in PHP

Today i am working on a PHP project and i needed a PHP function which dynamically resize uploaded image. I searched in Google and other PHP forum for 2 – 3 hours but didn’t find any perfect solution for my need , some of the functions can resize only jpeg images while some of the functions may resize png and gif images also but the output result is jpeg. So i decided to wrote a […]