Archivi tag: web designer

Creare file Zip in PHP

* creates a compressed zip file */
function create_zip($files = array(),$destination = '',$overwrite = false) {
	//if the zip file already exists and overwrite is false, return false
	if(file_exists($destination) && !$overwrite) { return false; }
	//vars
	$valid_files = array();
	//if files were passed in...
	if(is_array($files)) {
		//cycle through each file
		foreach($files as $file) {
			//make sure the file exists
			if(file_exists($file)) {
				$valid_files[] = $file;
			}
		}
	}
	//if we have good files...
	if(count($valid_files)) {
		//create the archive
		$zip = new ZipArchive();
		if($zip->open($destination,$overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE) !== true) {
			return false;
		}
		//add the files
		foreach($valid_files as $file) {
			$zip->addFile($file,$file);
		}
		//debug
		//echo 'The zip archive contains ',$zip->numFiles,' files with a status of ',$zip->status;

		//close the zip -- done!
		$zip->close();

		//check to make sure the file exists
		return file_exists($destination);
	}
	else
	{
		return false;
	}
}

ESEMPIO APPLICATO

 
$files_to_zip = array(
	'preload-images/1.jpg',
	'preload-images/2.jpg',
	'preload-images/5.jpg',
	'kwicks/ringo.gif',
	'rod.jpg',
	'reddit.gif'
);
//if true, good; if false, zip creation failed
$result = create_zip($files_to_zip,'my-archive.zip');
Fonte: sastgroup

Template e-Commerce

Di seguito 35 template trautiti  per i più comuni sistemi di e-Commerce come Os-Commerce, Magento, zen Cart etc..

1. WordPress Templates

Crafty WordPress Theme | Demo | Download

Screenshot

WordPress e-Commerce Plugin | Download

Screenshot

2. Prestashop

CleanBlue

Screenshot

et-black

Screenshot

PrestaThemes
A collection of free high-quality templates for PrestaShop.

3. osCommerce Templates

Footwear | Download

Screenshot

Appliance | Download

Screenshot

Cosmetics Store | Download

Screenshot

Computer Store | Download

Screenshot

4. Magento Templates

Modern Theme | Download from Magento

Screenshot

Blue Skin | Download from Magento

Screenshot

Telescope Theme | Download from Magento

Screenshot

Pet Store Theme | Download from Magento

Screenshot

Free Magento Theme from Template Monster | Download

Screenshot

Electronics Store 3 | Download from eCommerce-Themes

Screenshot

5. Zen Cart Templates

Free Zen Cart Template | Download

Screenshot

Acadame | Download from ichoze.net

Screenshot

Clothes Online | Download

Screenshot

6. CubeCart Templates

LiteFree

Screenshot

Clean Blue
A collection of free CubeCart 3 Skins. More free Cubecart skins.

Screenshot

7. CRE Loaded Templates

Electronics Store | Download

Screenshot

Clothes Store | Download

Screenshot

8. General E-Commerce Templates

The following templates were created for the purpose e-commerce but not built for a specific system. If you plan to use one of them, it would need to be adapted to and integrated in the e-commerce solution of your choice. Templates with valid HTML code are marked.

Tool Shop | Download (valid HTML)

Screenshot

Pet Shop | Download (valid HTML)

Screenshot

Auto Parts | Download (valid HTML)

Screenshot

Clothes Collection | Download

Screenshot

Gadgets Template | Download (valid HTML)

Screenshot

Online Movie Store | Download (valid HTML)

Screenshot

Books Online | Download (valid HTML)

Screenshot

Beauty Company | Download (valid HTML)

Screenshot

Clothes Store | Download

Screenshot

Hardware Store | Download

Screenshot

Online Store | Download

Screenshot

Computer Store | Download

Screenshot

Mobile Phone Shop | Download

Screenshot

Hi-Fi Technics Store | Download

Screenshot

Electronics Store | Download

Screenshot

Continua la lettura di Template e-Commerce

Web Developer Toolbar: estensione per gli sviluppatori web per Firefox

Volev segnalare a tutti gli sviluppatori web una estensione per Firefox molto utile:
Web Developer Toolbar

Io personalmente, come già scritto in un altro post, utilizzo Firebug

Non ho ancora provato la prima estensione. C’è qualcuno che lo ha fatto? Quale consigliate o ritenete che sia migliore tra i due?