[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] PHP Script doesn't work



Hi,

I have a php script, that doesn't work on cobalts. I tried that script 
on 3 cobalts and others linux machines. On all 3 cobalts the script 
doesn't work, but on all others servers it works.

Maybe somebody can help me, what is wrong.

Thanx a lot :)

Bye Rene

Here is the script:

<?
function rank ($url) {
$fd = @fopen ($url, "r");
$content = @fread ($fd, 512*512);
@fclose ($fd);
$content = eregi_replace("(.*)Sales Rank: </b> ","",$content);
$content = eregi_replace(" </span><br>(.*)","",$content);
echo $content;
}
?>

<html>
<head>
</head>
<body>

<? rank("http://www.amazon.com/exec/obidos/ASIN/B00005K9TO/";); ?>

</body>
</html>