Posted by Chung Leong on 12/17/40 11:54
pieterprovoost@gmail.com wrote:
> Hi,
>
> Can anyone tell me why going to
> http://www.algaebase.org/DistributionResponse.lasso?currentMethod=distro&sk=20&-session=abv3:D5C1E5F111d2e05040XVy1A0A54A
> yields results, while the same page retrieved with fopen() says 'no
> results'?
>
> <?php
> $pageurl='http://www.algaebase.org/DistributionResponse.lasso?currentMethod=distro&sk=20&-session=abv3:D5C1E5F111d2e05040XVy1A0A54A';
> $exthandle = fopen($pageurl, "r");
> $content = file($pageurl);
> fclose($exthandle);
> echo(implode("",$content));
> ?>
>
> Thanks
> Piet
This works when the session is fresh:
<?php
$pageurl='http://www.algaebase.org/DistributionResponse.lasso?currentMethod=distro&sk=0&-session=abv3:8008664A11d922E7E0QsT317D415';
echo file_get_contents($pageurl);
?>
Why are you using fopen() and file() and the same time?
[Back to original message]
|