I tried searching for this in the PHP forums, but didn't not find anything.
I'm looking to see if there is a PHP equivalent to the LWP::simple Perl module. Below is a Perl snip of code that I've been using. It just grabs a file from another server and temporarily stores it on the originating server for processing. PHP can do something like this? Thanks!
my $f1 = "https://www.moo.cow/$file".".html";
my $f2 = "https://www.moo.cow/html/$file"."_sidemenu.html";
my $f3 = "https://www.moo.cow/html/titles.html";
my $tmpfile = "tmp/".$file."$active_userid";
my $tfile = "tmp/titles.html";
my $line = "";
my @item = ();
$content = get($f1);
getstore($f2,$tmpfile);
getstore($f3,$tfile);
open (FILEHANDLE,$tmpfile) or die "$f1";
while(<FILEHANDLE>)
{
$line = $_; chomp($line);
$line =~ s/^\s+//; $line =~ s/\s+$//;
@item = split(/,/,$line); push(@links,[@item]);
}
close(FILEHANDLE);
unlink($tmpfile);





Bookmarks