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 = […]

How to Extract or Unzip files from a .zip file using PHP

Here is the simple code which will extract a zip file. Here we are using pclzip.lib file to extract files. You no need to install any other library to your server. First download pclzip.lib file. Now use the below code to extract your zip file. 1 2 3 4 5 6 7 8 9 10 […]

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 […]

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 […]

How to send enquiry or feedback mail using PHP script

The PHP mail() function is used to send emails from inside a script. Syntax: mail(to,subject,message,headers,parameters) Here is an example of PHP feedback-form which you can directly publish on your website. The example below sends a message to a specified e-mail address. This PHP form includes Name, Email ID, Phone No, Subject, Message. Here JavaScript validation […]

How to run PHP files on localhost?

To run any php file you need to install Apache web server on your localhost. Also you need to install MySQL server for any database programming. You can install these separately or there is easy way to achieve the same by installing XAMPP. XAMPP is an easy to install Apache distribution containing MySQL, PHP and […]

What is PHP?

PHP stands for “Hypertext Preprocessor“,  is a server-side scripting language used to create dynamic Web pages. This can be embedded to HTML pages. This is very easy scripting language compare to other scripting languags. The goal of the language is to allow Web developers to write dynamically generated pages quickly. PHP supports many databases like […]