Re: [PHP] How do I grab the contents of a web page?
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 is the programmer's worst nightmare? Mhmm. Then I doubt you'll find a lot of sleep. What do you think is it, that your browser gets? RIGHT! Source code. Plain HTML. So what? Of course a cracker wants that - like everybody else surfing the site. Oliver -- ___ walter interactive - Agentur für Neue Medien DRESDEN.BERLIN.MÜNCHEN Oliver Hankeln -Softwareentwicklung- Telefon +49 (0) 3 51 / 4 75 52-30 Mobil+49 (0) 1 77 / 3 14 89 45 Telefax +49 (0) 3 51 / 4 75 52-35 ISDN +49 (0) 3 51 / 4 75 52-35 Werdauer Straße 1-3 Internet www.walter-interactive.de D-01069 Dresden email[EMAIL PROTECTED] ___ ** http://www.infoscale.de - Content Management für den Mittelstand! ** The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee and access to the e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you have received this e-mail in error please forward to [EMAIL PROTECTED] Die in dieser E-Mail enthaltenen Informationen sind vertraulich und können von rechtlicher Bedeutung sein. Diese Mail ist ausschließlich für den Adressaten bestimmt und jeglicher Zugriff durch andere Personen ist nicht zulässig. Falls Sie nicht der beabsichtigte Empfänger sind, ist jegliche Veröffentlichung, Vervielfältigung, Verteilung oder sonstige in diesem Zusammenhang stehende Handlung untersagt und unter Umständen ungesetzlich. Falls Sie diese E-Mail irrtümlich erhalten haben, leiten Sie sie bitte weiter an: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I grab the contents of a web page?
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 unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I grab the contents of a web page?
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 Thanks, - Brian -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I grab the contents of a web page?
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 you're talking about the resulting HTML code then there are a variety of ways - look in the manual at the fopen() examples. -- Best regards, Richard Davey http://www.launchcode.co.uk / PHP Development Services http://www.phpcommunity.org/wiki/296.html / PHP Community -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I grab the contents of a web page?
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I grab the contents of a web page?
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. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I grab the contents of a web page?
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 = get_file_contents('www.123.com'); - Brian You probably mean... $string = file_get_contents(http://www.123.com;); (The protocol bit is important too.) ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I grab the contents of a web page?
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