wkhtmltopdf is an excellent opensource tool for converting html to PDF or an Image like JPEG, PNG etc.. It is available under GNU/GPL and written in C++ programming language. It can convert any HTML web page to PDF with Options to add Header and Footer. Also with Table of Content writing Option. It is available for both 32 and 64 bit Linux systems.
For dowloading 32bit tool use the below command.
For downloading 64bit tool use the below command.
Extract the Files:
Many php applications prefer to backup the mysql database from within the application and save it as an archive.
The mysqldump commandline utility can be used to perform this function of backing up a mysql database as sql file.
The command would be like this :
The above command shall dump the database named $db_name into a sql file in directory $dir. This sql file shall be next zipped using php's Ziparchive class.
In the above example backups/backup.sql is the path to the sql fil...
PHP Excel Reader - Parse and retrieve information from XLS files
PHPExcel - OpenXML - Read, Write and Create Excel documents in PHP - Spreadsheet engine
PHPDocX is a PHP library designed to generate completely dynamic, fully customizable and digitally signed Word documents.
HTML 2 PDF - Get a HTML text and generate a PDF file to make it ...
A Comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form. Often it is one record per line seperated by a comma or any other delimeter. The comma , is often used in USA/UK CSV files where Germany often uses a ; instead
This is an example of a simple CSV file that has 4 fields and 2 records (1 per line)
In PHP it is often useful to be able to read a CSV file and access it’s data. That is where the fgetcsv() funtction comes in handy, it will re...
Since PHP 5.2.2 it is now possible to capture a website or any window’s screenshot to an image with PHP as long as it is running on a Window’s machine. Most web-servers are running Linux but this could be useful for a tool on your home Dev server.
Capture Whole Screen
Capture an Application’s Window
Adding a new currencies in opencart is very simple.
1. Login to the admin panel of your store
2. Goto Admin->Configuration->Localisation->Currency
3. Click on the "Insert" icon at the top
4. Here we can enter the details of our new currency. For this example, I will use "Canadian Dollars"
Currency Title: Canadian Dollar
Currency Code: CAD
Symbol Left: $
Decimal places: 2
5. Click "Save" icon at the top.
Now you should see this currency...
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!