Re: [PHP] Reading from a webpage
You get the source code itself. Also if the webpage in question examines the browser of the requestor your webserver may get different code than you would if you pulled it up in your browser yourself. -- Plutarck Should be working on something... ...but forgot what it was. "James Kneebone" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello List, I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is actually the information that we see or whether it is the underlying source code. I understand that depending on what it is will mean changes to the way I retrieve the information. If you need additional information, please contact me and let me know. Thank-you. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Reading from a webpage
Hello List, I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is actually the information that we see or whether it is the underlying source code. I understand that depending on what it is will mean changes to the way I retrieve the information. If you need additional information, please contact me and let me know. Thank-you. James Go to the website. Then, View Source in the Browser. That is what you will get when you 'read' the web page. This is because any server side information is already parsed by the time it sends the information out. You should feel happy this is true, I don't want people getting a hold of passwords or other vital information. =) Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Reading from a webpage
When I said source code, btw, I meant the "html source code", not the programming source code, lol. Unless you can access the page through FTP, that is. In which case it wouldn't be gained through apache, so it wouldn't be parsed. -- Plutarck Should be working on something... ...but forgot what it was. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Reading from a webpage
"James Kneebone" [EMAIL PROTECTED] wrote: I have a small problem reading information from a webpage. I have a list of about 40 pages that I need to read (doing it in a loop as the layout is the same on each page). What I would like to know is whether the information read from a webpage is actually the information that we see or whether it is the underlying source code. If your pulling data from a webpage served by a web server, you are reading the HTML source code for the page. If the page happens to be generated using a programming language like PHP you won't be reading the PHP source code. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]