| Prev | Next |
PHK stands for PHp pacKages. It is file format that follows Java .jar files idea - it allows to distribute multiple files in one package and load it at runtime as-it-is. You don't need to extract it like you do with .tar.gz package, but simply include like PHP file. You will find technical information about PHK format on it's homepage.
First of all - thought there is compat.php library included within POT.phk file you have to have PHP in version at least 5.1! It's just PHK requirement (you can find a note about that on PHK homepage).
In order to load POT from PHK archive you just need to include it. POT is still the same, so nothing changes in your codes. Here is an example startup script:
You can compare it to normal startup script. As you can see only one file has been changed. But it allows you to keep POT in one file, without messing with all those files around.
As you have maybe read on project's page PHK supports multiple run modes: web, cli, lib and webinfo. But POT is just a toolkit - it has no user interface to allow direct usage in cli and web modes. At all only useful way is to use this packet as library packet (including it in your PHP code). All other calls to this file will cause redirecting to our page or displaying information about it.
In order to create/modify POT.phk package you need PHK_Creator package. On it's website you will find all required info about usage. In POT Makefile location of this file is set as /usr/bin/ but you should change it to your file location.
| Prev | Up | Next |
| Additional info | Additional info | PHAR package |