This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert a text file that has furigana in parentheses into HTML <ruby> tag. | |
* | |
* Syntax | |
* ```shell | |
* php furiganaTxt2Html.php <input.txt> <output.html> | |
* ``` | |
* | |
* Example: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sample to compress image file in PHP. | |
* | |
* This will compress all files in *input* directory and store the result in *output* directory. | |
* | |
* To run this code, PHP extension *imagemagick* should be enabled. | |
* | |
* Syntax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sample to compress image file in PHP. | |
* | |
* This will compress all files in *input* directory and store the result in *output* directory. | |
* | |
* To run this code, PHP extension *gd* should be enabled. | |
* | |
* Syntax |