Page 1 of 1

I don't retrieve full HTML page using file_get_contents

Posted: Sun Jul 06, 2008 7:58 pm
by stv
Hi People,

an absolute beginner here. I' trying to get an html page using the function:

Code: Select all

file_get_contents($requestURL)
I'm a flash programmer and I have to get Google Images by a certain query value, etc

but file_get_contents is sending my flash file only a part of the result page; almost like 20 rows...

does anybody know why?

there is another way to get an html page (as a string) in php?

thanks a lot.
stv

Re: I don't retrieve full HTML page using file_get_contents

Posted: Sun Jul 06, 2008 8:49 pm
by s.dot
I'm not sure why that wouldn't get the entire contents of the page. I'm thinking it may be a timeout issue if the page is slow loading? Or perhaps other PHP code is truncating the string somewhere. Could you post more code?

My second thoughts would be using fsockopen() along with some file functions.