PHP

How to resize image using php?

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

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

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

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

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

How to get image source from file using PHP

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

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

How to send enquiry or feedback mail using PHP script

Enquiry mail template with validation

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

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

How to run PHP files on localhost?

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

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

What is PHP?

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

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone