Reply to Re: fopen() problem

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация