|
Posted by pieterprovoost@gmail.com on 12/17/13 11:54
Chung Leong wrote:
> 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?
The code is a bit messy indeed, sorry for that. However, this worked
very fine before without ever changing the session name...
[Back to original message]
|