Hi Shanx,
thanks for your reply.
What I'd like to achieve with my script is the following:
I have friends who are writers, and they usually log on to amazon to see how their books rank.
So I thought "Well, one could do that more easily with PHP" - have a script which reads the amazon page for that book into a string, searches to the "ranking" part, reads the rank (number) and writes the date and time and the rank into a local file. Repeat this script a few times a day, and you get a very good overview of how the books rank - and could even load the file into Excel to have a nice chart of the rankings.
So now I am standing here - but I cannot read the file into the string.
Loading the URL into the browser works - the same URL (I used copy and paste to be sure).
Amazon, however, adds a session ID to the URL. could this be the source of the problem?
PHP Version is 4.0.4pl1, build Feb.1 2001, on Linux infong 2.2.19 #1 SMP Fri Jan 19 20:46:53 MET 2001 i686 unleashed.
(it is installed on my webspace provider's server).
Best wishes
Frank