Dynamic PDF creation with PHP – Very Easy

November 22, 2007

FPDF is a PHP class which allows to create PDF files with PHP. The advantage is that PDFlib requires a fee for a commercial usage. F from FPDF stands for Free: So yu can use this class to generate PDFs for free and modify source code for your needs.

You must use this class if you want create PDF content directly from PHP to implement for example download of your site content in PDF dinamically. You can download it and see how it works in the sample code below.


PHP – Simple authentication script with PHP_AUTH_USER and PHP_AUTH_PW

November 18, 2007

In this howto, we can create a little PHP authentication system with only few rows of PHP code. We can use header() function to submit the “Authentication Required” Message to the client browser, so on client browser we can see a dialog popup that require Username and Password. When we fill the fields, we can receive variables through arrays: “$_SERVER: PHP_AUTH_USER” and “$_SERVER: PHP_AUTH_PW”. We can use this simple authentication system only if PHP runtime is installed as Apache module.

Now we can see how it works through the source code:


Fast installing a Apache Webserver + MySQL Database Server + PHP on Debian

November 7, 2007

Install needed packages

First of all install all the needing packages:

apt-get install mysql-server apache2 php5 libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

Create a password for the MySQL User root.

mysqladmin -u root password OWNPW


Install WordPress locally with NanoWeb Server – Ubuntu Gutsy 7.10

October 25, 2007

nano web and wordpress logos

A Windows user can install EasyPHP to use WordPress locally and develop new themes for it. A WordPress theme designer often, don’t want use many resources for Apache installation under linux, because he would only install CMS to make a Theme Design for it.
In this post, we will see how to do this job under Ubuntu Gutsy 7.10.

Brief introduction to NanoWeb Server

NanoWeb server is a light web server for linux written entirely in php. NanoWeb Server is specially design for little website that don’t need Apache as webserver. So, with NanoWeb Server we have a locally installation of our preferred CMS to test it without expensive consume of resources.