Reply to Re: fopen() problem

Your name:

Reply:


Posted by Miguel Cruz on 12/11/71 11:54

"pieterprovoost@gmail.com" <pieterprovoost@gmail.com> wrote:
> 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'?

That URL doesn't contain your search terms.

It contains a reference ("abv3:D5C1E5F111d2e05040XVy1A0A54A") to a
session stored on the server's hard drive which in turn holds your
search terms.

That session has a finite lifespan, and after that (maybe half an hour
or so) the server throws it away, and the URL becomes invalid.

If you want this to work and you do not control the algaebase server,
you are going to have to use curl to build a form submission and collect
the results. You cannot, to my knowledge do this with fopen(). You could
do your own HTTP transaction with fsockopen() et al but that would be
overkill.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu

[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

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