Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 04:10 PM
dddddd
Guest
 
Posts: n/a
Default 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
  #2  
Old July 20th, 2005, 04:10 PM
Jim Dabell
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles