Re: [PHP] Re: put result of "include" into a variable

2002-11-23 Thread Derick Rethans
Ernest E Vogelsinger wrote: One thing - be warned that some sites (esp. M$) send a redirect at the index (or default) pages... the fopen() will not honor this redirect. Using cUrl would be a better way to handle this, IMHO. fopen() in the upcoming PHP 4.3.0 will support this though. Derick --

Re: [PHP] Re: put result of "include" into a variable

2002-11-22 Thread Ernest E Vogelsinger
One thing - be warned that some sites (esp. M$) send a redirect at the index (or default) pages... the fopen() will not honor this redirect. Using cUrl would be a better way to handle this, IMHO. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -

[PHP] Re: put result of "include" into a variable

2002-11-22 Thread Kyle Gibson
For some (strange, I know) reason I would like to copy the content of a webpage into a database. I would like to have code like $whocares = include ("http://www.microsoft.nl";); $query = "insert into html values ($whocares,...)"; .. However, include can not copy the content to a variable. Does a