Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Books
Sample Chapters
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
Bookmark :
Links :
domain namesgolfing products
low cost magazines
Downloads :
dzphp editorEasyPHP
mysql_phpgenerator
php-studio-trial
phpdesigner_7_2_5
phpMyAdmin-3.4.3.2
/phptriad2-2-1
phpxedit_321
rapidphp 2011
WampServer2.1d-x64
WampServer2.1e-x32
xampp-win32-1.7.4-VC6-installer
xampplite-win32-1.7.3
Misc :
Webmaster ResourcesOnly PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming
Image resizer
A resizing example that keeps the aspect ratio of the image intact. the ratio is passed to the script and then the length and width are divided by that.
<?php
header("Content-type: image/jpeg");
//get the scale setting
$scale = $HTTP_GET_VARS['scale'];
//our test image
$img = "test.jpg";
$input_image = ImageCreateFromJPEG("$img");
//scale the image
$image_width = ImageSX($input_image) / $scale;
$image_height = ImageSY($input_image) / $scale;
//create new image
$output_image = ImageCreate($image_width, $image_height);
//resize new image
ImageCopyResized($output_image, $input_image, 0, 0, 0, 0, $image_width, $image_height, ImageSX($input_image), ImageSY($input_image));
//output image
ImageJPEG($output_image);
//clean up
ImageDestroy($input_image);
ImageDestroy($output_image);
?>
Books :
Sponsors :
Random Code :
gethostbyaddr function(functions)extract a zip file to a folder(file system)
Random URLs(randomizing)
Random Article :
Create a Simple Effective PHP Form for Your Web SiteClickbank Security Using PHP
Network:
Programming resourcesTutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials
Get PHP
Programmers help
Del.icio.us
Digg
Furl
Newsvine
Netscape
Reddit
StumbleUpon
Technorati
Squidoo
Windows Live
Yahoo MyWeb
Ask
Google

