Skip to main content

Posts

Showing posts from March, 2016

Creating Vertical slider jQuery

Create Simple  jQuery  Vertical slider HTML Part Creating vertical scroll using <ul> and <li> <div id="scrollContent">     <ul id="scrollList">         <li>AAAAAAAAAAA</li>         <li>BBBBBBBBBBB</li>         <li>CCCCCCCCCCC</li>         <li>DDDDDDDDDDD</li>         <li>EEEEEEEEEEE</li>         <li>FFFFFFFFFFF</li>         <li>GGGGGGGGGGG</li>         <li>HHHHHHHHHHH</li>         <li>IIIIIIIIIII</li>         <li>JJJJJJJJJJJ</li>         <li>KKKKKKKKKKK</li>         <li>LLLLLLLLLLL</li>         <li>MMMMMMMMMMM</li>            </ul> </div> <div> <a class="next" href="javascript:void(0)">next</a> <a class="prev" href="javascript:void(0)">prev</a> </div> jQuery Part <sc

Create and download Zip folder in php

Create and download Zip folder in php ini_set("memory_limit","1280000M"); ini_set('max_execution_time', 60000); // Zip destination path $zipDestination =  __DIR__.'/images/zipfile.zip'; // Use php zip library $zip = new ZipArchive(); touch($zipDestination); // create zip files if($zip->open($zipDestination, ZipArchive::CREATE)!==TRUE) {     exit("cannot open <$zipDestination>\n"); } // If you want to add all files from folder  $pattern = __DIR__.'/bagImages'; // It will read all files of bagImages folder $files = glob($pattern.'/*.*'); foreach($files as $file) { $fileinfo = pathinfo($file); $zip->addFile($file,$img_fol.'/'.$fileinfo['basename']); } // if you want add sub folder files also use. $rootPath = realpath('images'); $files = new RecursiveIteratorIterator(     new RecursiveDirectoryIterator($rootPath),     RecursiveIteratorIterator::LEAVES_ONLY ); fo