Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 30th, 2003, 12:46 PM
Beckababe Beckababe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 Beckababe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Building dynamic webpages - XML?

I have a little time to kill, so I thought I'd try something new! I have a ton of photos I'd like to put on a web page and I started by making a page of thumbnails that link to the bigger versions. It seems kind of silly to me to go thru and cut and paste the name of each picture to create a new html page. I named the pictures with numbers, so it seems like there should be a way to just increment until I reach the number of pictures I have, but I'm not sure how... I've started reading about PHP (my server doesn't support), Java Scripting (I'm not sure how to pass variables), and XML (I can't even get a Hello World to work! All I see is code!). So, anyone have some suggestions?

Reply With Quote
  #2  
Old July 30th, 2003, 01:17 PM
substring substring is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 31 substring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
One way to do it is to store your pictures in a relational database and have the pictures indexed, or even categorized. Then you can sort it in whatever way you so desired.

Hope this helps.

Reply With Quote
  #3  
Old July 30th, 2003, 01:18 PM
wannabe wannabe is offline
=) wannabe?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2002
Location: florida
Posts: 2,153 wannabe User rank is Lance Corporal (50 - 100 Reputation Level)wannabe User rank is Lance Corporal (50 - 100 Reputation Level)wannabe User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 21 h 58 m 25 sec
Reputation Power: 9
Send a message via AIM to wannabe Send a message via Yahoo to wannabe
well with php is very easy. you just read the dir and output what's in there. with the rest i dont know.

if you find ahost that has php here's the code you can use

PHP Code:
<?


$dir 
opendir('/path/to/the/dir');

while (
false !== ($file readdir($dir)))
{
    if (
$file != '..' && $file != '.'  && $file != "_vti_cnf")
    {

        echo 
'<img src="'.$file.'" /><br>';
    }

}

?>


make sure you get the dir path right.

goodluck =)

Reply With Quote
  #4  
Old July 31st, 2003, 03:24 AM
ishnid's Avatar
ishnid ishnid is offline
kill 9, $$;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 5,565 ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level)ishnid User rank is General 6th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 4 Days 15 m 46 sec
Reputation Power: 1395
Or in Perl:
Code:

opendir(DIR, '/path/to/the/dir');
print "<img src=\"$_\" /><br/>" foreach grep !/^\.\.?$/, readdir(DIR);
closedir(DIR);

Reply With Quote
  #5  
Old August 6th, 2003, 01:47 PM
cygnus cygnus is offline
#!/usr/beer/hurl
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Toronto
Posts: 46 cygnus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Why not try the photo gallery automation script in photoshop?

Reply With Quote
  #6  
Old August 12th, 2003, 11:44 AM
nixoid nixoid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 nixoid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm with the automate command in Photoshop. It will take minetes to generate a gallery of thumbnails with larger images. Basic information can be added at time of automation then a find and replace command can update the pages to mimic the look of your site.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Building dynamic webpages - XML?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway