php script

1 Comment

How to resize image using php?

Here is a simple script to resize the given image. This requires PHP5, GD library. First download the file and include to your code. Usage example: 1 2 3 4 5 6 7 8 9 10 11 12 <?php // *** Include the class include("resize-class.php");   // *** 1) Initialise / load image $resizeObj = […]

12 Comments

How to convert Digits or numbers to word using PHP?

Here is the code to convert digits to word using PHP Example: 564 : five hundred sixty four 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 […]

1 Comment

How to get image source from file using PHP

Use preg_match_all to get the image source from your file. PHP code: 1 2 3 4 5 6 7 8 <?php $content=’Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type […]