December 2007

There always arises a need for us to convert content from one file format to another one.

To convert or to create PDF files in PHP , we can use the converter HTML2PDF .

HTML2FPDF is a PHP Class library that uses the FPDF class library to convert HTML files to PDF files. This library consist of three classes namely PDF, HTML2FPDF and FPDF (modified FPDF class). The class PDF extends the class HTML2FPDF that extends the class FPDF.

The following example illustrates the conversion of HTML page to PDF file using HTML2FPDF library.

$pdf=new HTML2FPDF();
$fp = fopen(“sample.html”,”r”);
$strContent = fread($fp, filesize(“sample.html”));
echo “PDF file is generated successfully!”;

First, we need to include the html2fpdf.php file that contains the HTML2FPDF class and an object is created using the constructor HTML2FPDF(). Then a new page is added to the pdf document using the function AddPage(). The html contents are read from the sample.html file using file functions. Then the html contents are written in to the pdf format using WriteHTML() function.

For more information about the HTML2PDF converter , refer to this url



A guy lost his girlfriend in a train accident..

But the gal’s name nowhere appeared in the dead list. This guy

grew up and became an IT technical architect in his late 20’s, achievement in itself!!.

He hired developers from the whole globe and plan to make a

software where he could search for his girlfriend through the web..

Things went as planned…

Atlast he found her, after losing millions of dollars and 3 long years!!

It was time to shut down the search operation, when the CEO of Google had a

word with this guy and took over this application,

This Software made a whopping 1 billion dollars profit in its first year,

which we today know as ORKUT .

The guy’s name is ORKUT BUYUKKOTEN . Yes its named after him only. Today he

is paid a hefty sum by Google for the things we do like scrapping.

He is expected to be the richest person by 2009.

ORKUT BUYUKKOTEN today has 13 assistants to monitor his scrapbook & 8 to

monitor his friends-list. He gets around 20,000 friend-requests a day &

about 85,000 scraps!!!

Some other Cool Facts about this guy:

* He gets $12 from Google when every person registers to this website.

* He also gets $10 when you add somebody as a friend.

* He gets $8 when your friend’s friend adds you as a friend & gets $6 if

anybody adds you as friend in the resulting chain.

* He gets $5 when you scrap somebody & $4 when somebody scraps you.

* He also gets $200 for each photograph you upload on Orkut.

* He gets $2.5 when you add your friend in the crush-list or in the hot-list.

* He gets $2 when you become somebody’s fan.

* He gets $1.5 when somebody else becomes your fan.

* He even gets $1 every time you logout of Orkut.

* He gets $0.5 every time you just change your profile-photograph.

* He also gets $0.5 every time you read your friend’s scrap-book & $0.5 every time you view your friend’s friend-list.