Tag Archives: php

mPDF: HTML to PDF introduction

mPDF is a simple and popular tool for shared hosting users to create and convert UTF-8 encoded HTML pages to PDF files. In other words mPDF is a PHP classes based on FPDF and HTML2PDF tools which purpose is the same – to create and manage PDF documents using simple PHP. It’s worth mentioning that on some basis mPDF is slower and can produce bigger PDF files than its predecessors, however it has many capabilities and simpler to use for daily basis.

By using mPDF you have to create an HTML file structure which will be converted to PDF format file. You can also use some CSS coding and improve your files. You can find all the supported CSS attributes in this classes documentation, but I can say that you can securely use most popular and common CSS attributes for your elements. However, there are some restrictions using HTML tables and styling text inside cells.
Read More…

Symfony2 based free and open source chess game – Lichess

Lichess is another free game for chess players. You can not only play with people connected at the moment, but to also generate a unique link and invite your friend for a match.

However, the game is not the main purpose. I suggest you to view the source code kept in GitHub and see a live example of Symfony 2 and PHP5.3 usage. I think that this kind of example beats all the simple and sometimes written with mistakes articles and tutorials on the Internet. It’s worth looking and you might try Symfony2 for yourself if your hosting provider supports PHP 5.3.

Scripterous – editing PHP on the fly

There is no secret that on some tutorial sites you can put JavaScript, CSS or HTML code into a dialog box and immediately see the result. As I am surfing the Internet for a long time I have not imagined that there is similar PHP simulator.

Scripterous is a great way to try some examples in real life without having a web server or creating it locally on your computer. I think this service is very useful to people who are making their first steps into PHP. So if you have problems with buying some hosting plan or creating a local server on your computer and if you want just to try some simple PHP code, you should consider Scripterous as your primary simulator on the Internet.

Just write your code and run it! That’s about it.

Visit Scripterous.