Welcome Guest, Not a member yet? Register   Sign In
Identifying images referenced in HTML
#7

[eluser]Myles Wakeham[/eluser]
[quote author="SitesByJoe" date="1234249784"]It'd be much easier to get that info with javascript being that PHP doesn't know the DOM. Is that out of the question?

If not, you're gonna have some beefy regex-type work ahead of you.[/quote]

Thanks for the input, but unfortunately this isn't a matter of live web page scraping. I'm doing this based on a user pasting raw HTML code into a form var, then saving that var and processing it on the back-end with PHP. Although, and I agree with you, that it would be easier to do this in JS, the problem is that the HTML isn't part of the DOM that I can work with. Its just raw text, so regex is a likely candidate for this.

Myles


Messages In This Thread
Identifying images referenced in HTML - by El Forum - 02-09-2009, 03:16 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 03:26 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 03:28 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 03:50 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 04:53 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 07:09 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 07:12 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 08:01 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 08:03 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 08:07 PM
Identifying images referenced in HTML - by El Forum - 02-09-2009, 09:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB