Get Email address from Javascript with Simple HTML Dom
I was trying to figure this out for more than one day with no success... I am using simple html dom and this is what my code looks like.
<?php include('simple_html_dom.php'); $html = file_get_html('http:// zameen. com/Profile/Islamabad-Patiala_Associates-28879-1.html'); $emailid = $html->find('.s:22', 0); echo $emailid; ?>
<script language="javascript">var stats_data_obj_agent = 'a:1:{s:16:"agent_phone_view";a:1:{i:137839;a:18:{s:4:"ph_v";i:1;s:11:"with_a_logo";i:1;s:8:"featured";i:1;s:5:"loc_2";s:4:"1562";s:5:"loc_3";s:1:"3";s:6:"cat_id";s:1:"3";s:12:"agent_userid";s:6:"137839";s:12:"company_name";s:16:"Test Estate";s:13:"company_phone";s:14:"+1-2345678";s:12:"company_cell";s:14:"+1-2345678";s:13:"company_email";s:22:"abcd1234@gmail.com";s:9:"is_active";i:1;s:9:"curr_code";s:3:"USD";s:5:"actid";N;s:7:"actname";N;s:8:"actphone";N;s:7:"actcell";N;s:8:"actemail";N; } '; </script>
Ralph Smith
Mercenary development and deployment.