GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   For fucks sake... someone write this script (https://gfy.com/showthread.php?t=92973)

Mikeee 12-10-2002 03:18 AM

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

extreme 12-10-2002 03:32 AM

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?

RedShoe 12-10-2002 03:34 AM

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. :)

Mikeee 12-10-2002 03:40 AM

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.

RedShoe 12-10-2002 03:43 AM

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?

Mark 12-10-2002 03:47 AM

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

andi_germany 12-10-2002 03:51 AM

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");


-----

Mikeee 12-10-2002 03:54 AM

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.


All times are GMT -7. The time now is 03:26 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123