468,471 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,471 developers. It's quick & easy.

simple dinamic site (pict.gallery)?? help

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
Jul 20 '05 #1
1 2862
dddddd wrote:

[snip]
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??)


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

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jose Garcia | last post: by
6 posts views Thread by gp | last post: by
1 post views Thread by www.web20developers.com | last post: by
11 posts views Thread by shror | last post: by
25 posts views Thread by Gilles Ganault | last post: by
4 posts views Thread by Paul Furman | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.