If you are writing a code, it is always a good habit to leave comments within your code for later review or for other programmers to see it. In PHP you can leave comments in three different ways, have a look.
You can use FPDF library to easily create PDF file for your project. It’s a free alternative to other commercial PDF generators. It comes with many features too, which you can use to create a wonderful looking PDF files. FPDF is not an PHP extension, just include the class file in your project and you are ready to go, it works with both PHP 4 and PHP 5.
Since JSON appeared on the web, all web services are offering JSON as their primary data format for data interchanging. The reason JSON is so popular is because it is lightweight and easy for humans to read and write. Today I want to show you how we can use this JSON data in our projects using PHP.
To redirect users to new location, just drop this header() line in your PHP file. Remember that header() function must be called before any actual output is sent, otherwise you might run into error.