Hello,
I’m trying to create a web gallery which would be very easy to create new galleries.
I want to do something like that:
I create a catalog – “sample”
I copy a text file there – title.txt that cantains a name of gallery – “My pictures”
I copy pictures there (via FTP client) – 1.jpg 2.jpg 3.jpg (3 pict or even 300, whatever)
Now I load some page with a PHP script that creates such page (creates index.php in a “sample” catalog):
[code=html]<html>
<head>
<meta http-equiv=’Content-Type’ content=’text/html; charset=UTF-8′>
<title>My pictures</title>
<link rel=’stylesheet’ href=’../style.css’ type=’text/css’>
</head>
<body bgcolor=’#FFFFFF’ text=’#000000′>
<span class=’textbg’>My pictures</span><br>
<p class=’desc’><p><span class=’textreg’>Click on a picture to enlarge.</span><br>
<hr size=’1′>
<a href=’content/pictures/<?php echo $picture; ?>/1.jpg’ width=’154′ height=’106′ class=’highslide’ onclick=’return hs.expand(this)’><img src=’content/pictures/<?php echo $picture; ?>/thumbnails/1.jpg’ border=’0′ class=’immg_in’ alt=’Highslide JS’ title=’Click to enlarge’ /></a>
<a href=’content/pictures/<?php echo $picture; ?>/2.jpg’ width=’154′ height=’106′ class=’highslide’ onclick=’return hs.expand(this)’><img src=’content/pictures/<?php echo $picture; ?>/thumbnails/2.jpg’ border=’0′ class=’immg_in’ alt=’Highslide JS’ title=’Click to enlarge’ /></a>
<a href=’content/pictures/<?php echo $picture; ?>/3.jpg’ width=’154′ height=’106′ class=’highslide’ onclick=’return hs.expand(this)’><img src=’content/pictures/<?php echo $picture; ?>/thumbnails/3.jpg’ border=’0′ class=’immg_in’ alt=’Highslide JS’ title=’Click to enlarge’ /></a>
</body>
</html>
[I]I don’t speak english well.. so if something’s not clear just ask ;D