Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Newbie Questions

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Newbie Questions

Postby chaosicq » Wed Jun 26, 2013 6:35 am

I have a script which i am working on which retrieves certain information from many different urls, the information is always the same but the html elements are different a lot of the time.
Examples


<p class="bla bla">
<div id="bla bla"> this one i am using div[id=bla bla] so works ok
<span itemprop="Bla">
<p>bla bla bla</p> this is simple to call this i use p.
<span> this on ok also using span.
Then some time they can have nested elements like.
<p class="bla">
"Bla"
<span Itemprop-"bla" class-"bold-text">need this part</span>
</p>

So i guess i need to know what to use for :
<div class="bla bla bla">
<span itemprop="Bla">

and the nested one
<p class="bla">
"Bla"
<span Itemprop-"bla" class-"bold-text">need this part</span>
</p>
:help: :D
chaosicq
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Jun 26, 2013 6:10 am

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron