Tortuga Software - web development (programming) with PHP / MySQL / Apache
Useful PHP-classes, scripts, manuals, articles, tutorials
E-mail: info@usefulclasses.com ICQ: 749345 GTalk: varenich@gmail.com
Let Visitors Enjoy Your Site!
   

  Save To del.icio.us Digg this Post Save To Slashdot Bookmarks Save To FURL Save To Newsvine Save to Yahoo! My Web 2.0 Save To Reddit Save To Simpy Save To Shadows

Picture of the Day PHP Script Installation


Script installation as simple as 1-2-3:
  1. Create 2 directories
  2. Unpack and copy script to one of the directories
  3. Indicate the place where your image gallery stored

Create directories

Let your site has name http://yoursite.com and stored in /usr/local/apache/htdocs at server or hosting.

Create directory for the scipt:


cd /usr/local/apache/htdocs
mkdir pictod

Create utility directory for caching:


mkdir pictod/cache

This placement is unsecured. More correct way is to place cache directory outside of web server, for example, in /usr/local/apache/pictod_cache. If you decide to go the righr way, please indicate the new directory path in show_image.php.

Make directory writable by all:


chmod a+w pictod/cache

Unpack and copy script

Copy script to the pictod directory on the server and unpack:


cd /usr/local/apache/htdocs/pictod
tar xvfz pictod_1.0.tgz

For Windows users:

Unpack script at your local PC and copy it to the pictod directory of the server by FTP or SCP.

Indicate the placement of your image gallery

Indicate the path to your image gallery by editing file show_image.php


// Configuration of image container
'pictod_ImageContainer' => array(
	'contName' => 'simple',
	'contConf' => array(
		'images' => array(
                        // Format:
                        // 'imageID' => array('dir1','dir2'),
                        //
			// If no imageID given, 'default' is used
			// For each imageID indicate the list of directories where images stored
                        //
                        // Example:
                        // 'default' => array('./default_gallery'),
                        // 'a1' => array('./gallery_a1'),
                        // 'a2' => array('./gallery_a2/dir1','./gallery_a2/dir2'),
                        //
			// INDICATE THE PATH TO YOUR IMAGE GALLERY HERE
			'default' => array('/path/to/your/gallery'),
			),
		),
),

All done!

Download the Picture of the Day Free PHP Script

Be in touch with Script Updates

Subscribe to:

Tortuga Software News and Updates | RSS
Name:
Email:
Format:

Author: Eugene Panin

 

Useful PHP scripts   Home

   Log In


Our PHP-it! Blog

Interesting PHP Articles

Interesting PHP Resources

 



 
Do You Have a Question? We'll Be Glad to Answer You
Your name: Message text:  
E-mail:
 
 
 
 
Contacts
E-mail: info@usefulclasses.com
ICQ: 749345
GTalk: varenich@gmail.com
  Creative Commons License

Text of this work is licensed under a Creative Commons Attribution-NoDerivs 2.5 License.
To use this work, please specify a hyperlink to this site: http://www.usefulclasses.com

Import Export Trade Leads Portal. Submit for Free.

Torex . Fedoskino -fmg. Title: Russian Lacquer Box Fedoskino Vishniakov Pakleh. . road marking equipment Dannebrog