tar -zcvf archive.tar.gz directory/ => compressing folder
tar -zxvf archive.tar.gz => extracting the compressed file
tar -zxvf archive.tar.gz => extracting the compressed file
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
<?php function png2jpg($originalFile, $outputFile, $quality) { $image = imagecreatefrompng($originalFile); imagejpeg($image, $outputFile, $quality); imagedestroy($image); } png2jpg("img/test.png", "img/".time().".jpg", 100); if ($handle = opendir('img/')) { $i=0; while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { echo "<img src='img/$entry' width=150 height=100> "; if($i%10==0 && $i!=0){ echo "<br>"; } $i++; } } closedir($handle); } ?>