Forum Moderators: coopster
The 'gallery/slideshow' would show up inside a new window.
basically, I just want links with possibility to go:
- forward
- back
- to the very beginning
- to the very end
- away (close the window)
Can I use PHP to determine the contents of the folder with the pictures and then use variables to determine which photo to show, and what URL's should be generates for the arrows? So each folder with a series of photographs would have one PHP file and the pictures themselves in them (it's not a problem to rename them).
Should be simple enough, but I'm just starting out with PHP, and I'd like to have something working as soon as possible... the website I'm working on is about to launch soon (my first 'commercial' web project :) ), and this is about the only thing left that I still have to sort out how to do...
[edited by: Darkelve at 11:18 am (utc) on Aug. 30, 2006]
It is better to load an image address rather loading the img as a blob.
The rest is pretty much navigation and pagination
Check for those terms there are tons of demo and tutorial
Also for img size, name etc look at
GD [us2.php.net]
$dir = '/path/images/';
$fp = @opendir($dir);$images = array();
while ($file = @readdir($fp))
{
if (preg_match('#(.*?)\.(jpg¦gif¦png¦bmp)#is', $file))
{
$images[] = $file;
}
}
@closedir($fp);
:D
[edited by: Psychopsia at 1:44 pm (utc) on Aug. 30, 2006]