![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
赤い靴 call me 202-456-1111
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
赤い靴 call me 202-456-1111
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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"); ----- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Registered User
Join Date: Jun 2002
Posts: 516
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |