Render PDF
If filename is the absolute path to pdf file:
All about PHP goes here …
If filename is the absolute path to pdf file:
Recently I had the job to convert EPS files to SVG graphics. It has been done for a product configurator that had to be implemented. The whole implementation mentioned here was done for a Magento Online Shop. But the base-paradigms described here can be used in other PHP based applications too because I’ve implemented them […]
Today a colleague of mine ask me if it is possible to call a class constant inside of another class by generating the constant name on the fly. The reason was, that he had multiple constants in one class that had patterned / generic names like that: <?php class IAM_A_CLASS{ const IAM_A_CONSTANT_1 = 1; const […]
Recently I had to build a custom Composer package that had to be installed to a custom install path inside of the target application. But the install path should have been only different for this single package. All other Composer packages had to be installed unter the vendor folder furthermore. Requirements I had the following requirements […]
To see what is going on in Memcache: More information: https://code.google.com/p/phpmemcacheadmin/
This article show to use PHP’s interactive mode to execute PHP code directly on the commandline shell without the need of a script file. This can be useful to test PHP snippets, run short commands or even test a certain PHP configuration.
It’s very easy since Ubuntu 10.04: $> sudo apt-get update $> sudo apt-get install lamp-server^ The ^ is no typing error. Its necessary! Further information:Â https://help.ubuntu.com/community/ApacheMySQLPHP
From time to time PHPStorm’s code completion stops working correctly (v 7.1.x). You’ll get no more hints and error positions will keep their marking although you fixed them. The solution in to run “File -> Invalidate Caches / Restart …“. After that, the IDE restarts and everything will work great again.