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 |