Hello,
I am trying to do an fopen on a remote file. the problem I am having is that the remote server attempts to deliver a cookie and if you don't accept cookies it sends you to an error message rather than the page I want to fread. How do I make my server accept cookies in the fopen mode?
<?php
$open = fopen("http://www.server.com/search.xml?id=trip", "r");
$read = fread($open, 15000);
// fread scours to the 15000th byte and captures all the encountered bytes into $read
fclose($open);
print "$read";
?>
Thanks
Chris