Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
how to publish hundreds of photos easy?
Old 09-11-2006, 12:35 AM how to publish hundreds of photos easy?
Skilled Talker

Posts: 92
Trades: 0
how do i publish my photos in my pc to the web easily?

any program? script? i dont mean by uploading them using ftp because thats easy. my problem is to actually have a gallery of my pictures on my website not picture links
__________________

Please login or register to view this content. Registration is FREE
<--- CLICK It's 100% Free Advertising And It's Instant!


Please login or register to view this content. Registration is FREE
check it out
playkid is offline
Reply With Quote
View Public Profile Visit playkid's homepage!
 
 
Register now for full access!
Old 09-11-2006, 07:20 AM Re: how to publish hundreds of photos easy?
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
ftp them is your best bet.

If you have rsync and your ISP does too this would be a better option but ftp is fine and does the job.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 09-11-2006, 02:11 PM Re: how to publish hundreds of photos easy?
Skilled Talker

Posts: 92
Trades: 0
Quote:
Originally Posted by ibbo View Post
ftp them is your best bet.

If you have rsync and your ISP does too this would be a better option but ftp is fine and does the job.

Ibbo

that would give me links after. now how do i actually show pictures? not links without typing <img src="picture"...... manually over and over
__________________

Please login or register to view this content. Registration is FREE
<--- CLICK It's 100% Free Advertising And It's Instant!


Please login or register to view this content. Registration is FREE
check it out
playkid is offline
Reply With Quote
View Public Profile Visit playkid's homepage!
 
Old 09-11-2006, 07:04 PM Re: how to publish hundreds of photos easy?
Extreme Talker

Posts: 246
Trades: 3
You could write a little something in PHP, or some other scripting language, to read the directory's contents, and build an HTML string for each image it finds.

If you want to use PHP, you could read this: PHP: readdir - Manual

You could then put these in whatever layout you wanted, and put the "height" and/or "width" attributes in the <img> tag, and get as fancy as you wanted. It wouldn't take a whole lot to get your own dynamic homemade gallery up. It would be "dynamic" in that it would automatically show what pictures you have in your directory without having to update the code if you added or removed pictures.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
CouponGuy is offline
Reply With Quote
View Public Profile
 
Old 09-12-2006, 01:53 AM Re: how to publish hundreds of photos easy?
Skilled Talker

Posts: 92
Trades: 0
headache
__________________

Please login or register to view this content. Registration is FREE
<--- CLICK It's 100% Free Advertising And It's Instant!


Please login or register to view this content. Registration is FREE
check it out
playkid is offline
Reply With Quote
View Public Profile Visit playkid's homepage!
 
Old 09-12-2006, 06:14 AM Re: how to publish hundreds of photos easy?
Extreme Talker

Posts: 246
Trades: 3
It is the coding forum, after all, and not the pre-packaged software forum. How good are your programming skills? Here's a start to something I was talking about:

PHP Code:
<?php
if ($handle opendir('/home/account/images')) {
   while (
false !== ($file readdir($handle))) {
      if (
$file != "." && $file != "..") {
         if (
substr($file, -4) == ".jpg") { //or your accepted extension
            
echo "<img src=\"images/$file\" height=\"150\" width=\"150\">";
         }
      }
   }
   
closedir($handle);
}
?>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
CouponGuy is offline
Reply With Quote
View Public Profile
 
Old 09-12-2006, 08:42 AM Re: how to publish hundreds of photos easy?
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
See its no headache at all.

ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to how to publish hundreds of photos easy?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.41653 seconds with 12 queries