Anyway, the code I came up with was as follows:
however this prints the latter of the two messages meaning that it has not worked. I'm not overly sure why though, if anyone can help, then let me know :)#!/usr/bin/perl
use LWP::Simple;
my $Filename = "/home/gw10/public_html/cam.jpg";
my $Remotefile = "http://camportal.co.uk/cam.jpg";
my $Response = getstore($Remotefile, $Filename);
if (is_success($Response))
{
print "File Successfully Retreived";
exit(0);
}
print "hump";
Updat: Never mind, was actually a case of an incorrectly persmission'd file on the camportal server, quick chmod and everything works fine. w00t, my first ever perl script :P
RSS
Fairy washing up liquid seems over rated in my mind... but maybes thats just me.
I never actually though of doing something like that on my site... but.. then again.. I can't say I much care :-)