here is a little script that should do the thing:
$save = "yourfolder";
$modwidth = 100;
header('Content-type: image/jpeg') ;
list($width, $height) = getimagesize($file) ;
$modper = $modwidth/$width;
$modheight = $height * $modper;
$tn = imagecreatetruecolor($modwidth, $modheight) ;
$image = imagecreatefromjpeg($file) ;
imagecopyresampled($tn, $image, 0, 0, 0, 0, $modwidth, $modheight, $width, $height) ;
imagejpeg($tn, $save, 100);
it is called GD script (used to make images via PHP)
how to create report in php
PHP code blocks start with <?php and end with ?>.
To create a PHP script all you have to do is create a new file, then save the file as "filename.php". It must have a .php file extension.After that open the file and put in the PHP tags like shown.Then you write your PHP script within those tags and upload to your web space and check it out.
PHP is an Open Source Scripting Language. We can create Web Pages and Web Applications using PHP.
PHP can create images of different sizes. It depends on a particular image.
Well it got nothing to do with PHP, you going to need JavaScript to do that :)
PHP is a recursive acronym for "PHP: Hypertext Preprocessor" created by The PHP Group. PHP is a widely used server-side scripting language and the general purpose of PHP is to create dynamic Web Pages. For more information, visit the PHP website.
You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.
function function_name() { .................... }
You can use Cascading Style Sheets (CSS) to create website themes for your PHP website.
To create a template or plugin, you will need knowledge of PHP, CSS and HTML. To use WordPress as a blogging platform, you do not need to know PHP. WordPress is a WYSIWYG so you can style the text in the box and create your posts.
PHP is web based programming language and there in no main() function defined. Considering, PHP as HTML embedded language and server side scripting language,It get interpreted by web server .Example: Hello - End of PHP block