I have a program that opens a remote url and reads teh content of the url adn then sends it in an email. I used fopen and fread and it works, but now I moved it to a new server and it doesnt work. The program hangs in the browser.
Is there another way to do this? Can anyone help?
Here is the code.
$urlFile = $_POST['message2'];
$openUrl = fopen($urlFile, "r");
$message = "";
while (!feof($openUrl)) {
$message .= fread($openUrl, 8192);
}
fclose($openUrl);
Greg