Connecting Tech Pros Worldwide Forums | Help | Site Map

simple dinamic site (pict.gallery)?? help

dddddd
Guest
 
Posts: n/a
#1: Jul 20 '05
i need do create simple dinamic site - built mainly
of pictures(they are the only dinamic part).

pictuers differ by the -Location- and by -Time- (in which
they were taken)... so on the index page visitor
should have 2 choices (how the pictures will be arranged)
(1) by time
(2) by location

the webmaster will only copy the pictures in folder
...and the page would automaticaly add these pictures in
gallery (with no need for editing html).

I need help or advice on how to do that (PHP,ASP, CF...
or could it be done with JavaScript??)

Site would be really simple,.. and it's not for comercial
use... (means i dont have money to pay for programming.)

thnx in advance.
-Dam

Jim Dabell
Guest
 
Posts: n/a
#2: Jul 20 '05

re: simple dinamic site (pict.gallery)?? help


dddddd wrote:

[snip][color=blue]
> the webmaster will only copy the pictures in folder
> ..and the page would automaticaly add these pictures in
> gallery (with no need for editing html).
>
> I need help or advice on how to do that (PHP,ASP, CF...
> or could it be done with JavaScript??)[/color]

Javascript is client-side and also unreliable. Use PHP or ASP. Generally
speaking, the quickest way of dealing with it is to come up with a naming
scheme for the image files that will indicate the time and location of the
photo in an easily extractable format, for instance
2003-07-09-15-03-00-Down_the_road.jpeg

Then, you want to create a PHP/ASP script that will read the entries in that
directory and output an HTML file listing them. In PHP, look here:

<URL:http://www.php.net/manual/en/ref.dir.php>

In ASP, you'll want to use the filesystem object, something along the lines
of createobject("microsoft.filesystemobject") if those nasty memories
haven't scabbed over completely yet. I recommend PHP :)

You'll need some way of telling your script the order in which to display
them, so pass that in the query string. Something like
index.php?order=location. You'll use the $_REQUEST superglobal in PHP (or,
in ASP, the request object) to get this information.

Of course, server-side scripting is offtopic for this newsgroup so head over
to <URL:news:comp.lang.php> or its ASP equivelant for more information.

--
Jim Dabell

Closed Thread


Similar HTML / CSS bytes