 | MEMBER LOGIN |
|
|
 |
|
 | SERVICES & FEATURES |
|
|
 |
|
 | THE 20 LATEST PROJECTS |
|
|
Project: need - 2 pages Site ID: 1210577509 |  |
| Status: |
Closed (Cancelled)
|
| Budget: |
Maximum $30
|
| Created: |
5/12/2008 at 3:31 EST
|
| Cancelled: |
6/5/2008 at 0:25 EST
|
| Project Creator: |
tunafish
Rating:
(48 reviews)
|
| Description: |
Im looking to do a site with an index page and a template page, with a php script that fetches the images from the specified image folder.
FOR EXAMPLE:::
$site_url = "www.mysite.com/"; // no http, no trailing /
$site_name = "mywebsite_name";
$cat = 'girls';
$urlpath = 'girls/';
$max2show = 6; //Amount you want to show per page
// END OF CONFIGURATION SECTION
// Do not edit below this line
$hook = opendir($cat) or die('cant open dir');
$total = 0;
if(!isset($_GET['page'])) $page = 1;
else $page = $_GET['page'];
$start = $max2show * $page - $max2show;
$end = $page * $max2show;
$ext = array("jpg", "png", "jpeg", "gif");
while (false!==($file = readdir($hook))) {
for($i=0;$i<sizeof($ext);$i++)
if (stristr($file, ".".$ext[$i])) //NOT case sensitive
{
$files[] = $file;
$total++;
}
}
closedir($hook);
natcasesort($files);
$files = array_values($files);
if ($end > $total) { $end = $tot
-------------------------------------------------------
well anyway
here are 2 images, the index i would like
and the template page
http://i76.photobucket.com/albums/j30/yanikeke/Storage/index.jpg
http://i76.photobucket.com/albums/j30/yanikeke/Storage/ad_pages.jpg
|
| Job Type: |
Script Installation
|
Messages Posted: 3
| |