Re: [PHP] How do I grab the contents of a web page?

2004-05-21 Thread Oliver Hankeln
Ashley M. Kirchner wrote: raditha dissanayake wrote: a cracker's dream and programmer's worst nightmare Must everything be negative? You can not assume what other people are trying to do. Either answer the question, or don't answer at all. And BTW, I don't understand it. -View -Page Source

[PHP] How do I grab the contents of a web page?

2004-05-20 Thread Brian Dunning
I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Is there something like this: $siteCode = functionI'mLookingFor('www.123.com/index.htm'); Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread raditha dissanayake
Brian Dunning wrote: I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Is there something like this: $siteCode = functionI'mLookingFor('www.123.com/index.htm'); a cracker's dream and programmer's worst nightmare

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Richard Davey
Hello Brian, Friday, May 21, 2004, 1:19:19 AM, you wrote: BD I'm sure there's a really simple way to do this: how can I grab the BD source code of a specified web page and store it in a variable? Is BD there something like this: BD $siteCode = functionI'mLookingFor('www.123.com/index.htm'); If

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Brian Dunning
On May 20, 2004, at 5:43 PM, raditha dissanayake wrote: I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Never mind, I found it: $string = get_file_contents('www.123.com'); - Brian -- PHP General Mailing List

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Ashley M. Kirchner
raditha dissanayake wrote: a cracker's dream and programmer's worst nightmare Must everything be negative? You can not assume what other people are trying to do. Either answer the question, or don't answer at all. -- W | I haven't lost my mind; it's backed up on tape somewhere.

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread René Fournier
On Thursday, May 20, 2004, at 06:42 PM, Brian Dunning wrote: On May 20, 2004, at 5:43 PM, raditha dissanayake wrote: I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Never mind, I found it: $string =

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Brian Dunning
You probably mean... $string = file_get_contents(http://www.123.com;); Whoops Well, it worked, so I must have typed it correctly in my code... :) :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php