AriyankiNet        
 
Article

How to resize and save image

Tue 29 Sep 2015, 06:47

This is my function to resize and save image in php: function resizeImage($filename, $saveto, $max_width, $max_height) { list($orig_width, $orig_height) = getimagesize($filename); $width = $orig_width; $height = $orig_height; # taller if ($height > $max_height) { $width = ($max_height / $height) * $width; $height = $max_height; } # wider if ($width > $max_width) { $height = ($max_width / $width) * $height; $width = $max_width; } $image_p = imagecreatetruecolor($width,

read more

How to make your own Dynamic DNS Server with CPANEL API 2

Wed 16 Sep 2015, 06:59

This is my function to resize and save image in php: function resizeImage($filename, $saveto, $max_width, $max_height) { list($orig_width, $orig_height) = getimagesize($filename); $width = $orig_width; $height = $orig_height; # taller if ($height > $max_height) { $width = ($max_height / $height) * $width; $height = $max_height; } # wider if ($width > $max_width) { $height = ($max_width / $width) * $height; $width = $max_width; } $image_p = imagecreatetruecolor($width, Usually ISP (Internet Service Providers) assign you a different IP-address each time you connect to the net via modem, ISDN or xDSL.  if you want to have an internet domain name (or URL) to go with that IP-address, you have to configure that IP-address with Dynamic DNS. Read this about Dynamic DNS https://en.wikipedia.org/wiki/Dynamic_DNS How

read more