Creating PDF Files with PHP

December 15th, 2012 by

FPDF is a PHP class which allows web developers to generate PDF files with pure PHP code. The class can be downloaded for free and modified to suit one’s needs. FPDF contains several practical features including: Page header and footer management Automatic page break, line break, and text justification Image support (JPEG, PNG and GIF) […]

With the arrival of the Smartphone has come a change in the way we use the internet. Searching the web from a mobile device is now an every day activity. With these changes, websites must adapt and be usable on a variety of devices. It looks terrible for a website to just shrink way down […]

Mobile web development is very important these days. The numbers vary, but about 50 percent of mobile phone owners in the United States are estimated to have smartphones now. Responsive design comes in handy when making websites because of the website could adapt to the screen sizes of various devices. I have written two posts […]

Complex Conditional Statements

December 8th, 2012 by

“If I had won the lottery, I would have bought a boat.” In this sentence, it is impossible for the condition to be fulfilled, because it refers to an event in the past. I neither won the lottery, nor bought a boat. Like the English language, programming languages make extensive use of conditional statements. When […]

A Guide to Writing Functions

December 1st, 2012 by

If you find yourself writing the same few lines of code more than twice, convert those lines into a PHP function. In order to minimize the amount of code for websites and web applications, call functions within functions. The most effective functions are ones that are reusable. Naming Functions The names you choose for your […]