Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-10-2002, 03:18 AM   #1
Mikeee
Registered User
 
Join Date: Jun 2002
Posts: 516
For fucks sake... someone write this script

Let's say I have an image http://mysite.com/image.jpg

I want a script that will scan the image and make a copy of it somewhere else, like... http://MyOtherSite.com/scanned.jpg

The script needs to scan the image twice daily, and replace the image it makes on the other site... since the original image will be changed twice daily.

Lemme know if you can so I can give you contact info.

Thanks
Mikeee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:32 AM   #2
extreme
Confirmed User
 
Industry Role:
Join Date: Oct 2002
Location: lalaland
Posts: 2,120
Uhm, maybe I dont get what you're asking after but how about just crontabing a
"cd /www/myotherhost.com; rm -f image.jpg; wget http://mysite.com/image.jpg" on the box that hosts myothersite.com?
extreme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:34 AM   #3
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
traffictrader perhaps? It's all template run. So basically you can set it up like this, (I think)

http://mysite.com/image.jpg runs template a
http://MyOtherSite.com/image.jpg runs template b

They both run through traffic trader, and can be updated every 15 minutes if you wish, or everyday, every other day, once a week... It's up to you.

Not so sure if it would scan. But you can set your file structure up to display "numbered images" and just have the templates run those numbers with each update. Traffic trader will automatically run those templates for you.

You could basically set up a years worth of updates, turn on traffic trader, and walk away.
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:40 AM   #4
Mikeee
Registered User
 
Join Date: Jun 2002
Posts: 516
Hmm, well see... sometimes the site that has the original image is down, and I want to display that image on a different site... so the whole purpose of the script is to NOT have a broken image on my site.
Mikeee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:43 AM   #5
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
Quote:
Originally posted by Mikeee
Hmm, well see... sometimes the site that has the original image is down
?? Who's your host?

Why would you think it's easier to run two seperate domains and copy image from server to another (automatically) than to get a more reliabe host is out of the question?
__________________

SPECIALTY COSTUMES • PROPS • FX
Superheroes • Monsters • Robots
PM for details


For any manufacturing needs. Adult or otherwise.

aka BonsHigh on Insta
Bonsai weed plants


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:47 AM   #6
Mark
Confirmed User
 
Join Date: Jul 2001
Posts: 600
to just grab the image from somewhere else and write it to your server this should do it with a cronjob..

lynx -dump http://yourdomain.com/image.jpg > image.jpg
Mark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:51 AM   #7
andi_germany
Confirmed User
 
Join Date: Oct 2002
Location: Germany
Posts: 768
You can use symlinks to link to the picture. You can always do that and link the picture from anywhere on the server.

or use this script:

----

use File::Copy;

$sour == "path/to/orig/image";
$dest == "path/to/copy/image/to";

copy("$sour", "$dest");


-----
andi_germany is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2002, 03:54 AM   #8
Mikeee
Registered User
 
Join Date: Jun 2002
Posts: 516
Quote:
Originally posted by RedShoe


?? Who's your host?

Why would you think it's easier to run two seperate domains and copy image from server to another (automatically) than to get a more reliabe host is out of the question?
It was a sample link... the original image is not on my site, but its the image I have to use to link to that site. So the script has to read from external.

Reliable host? Im good on hosting and I have yet to find anyone to handle my traffic at my cost, but we wont get into that.

Last edited by Mikeee; 12-10-2002 at 03:56 AM..
Mikeee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.