hey guys i am using curl to get source code from a site but i need to know how to use preg_replace to remove this code
and this last one im also lost with
thanks in advance
zain
Code:
<script type="text/javascript"> (function() { var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true; em.src = ('https:' == document.location.protocol ? 'https://za-ssl' [^] : 'http://za-cdn' [^]) + '.effectivemeasure.net/em.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s); })(); </script>
Code:
<a href="http://ad.mo.doubleclick.net/dartproxy/click.handler?destination=http%3A%2F%2Fm.sabc.co.za%2Fsabc%2Fmobile%2Fjsp%2Ftv.jsp&click=http%3A%2F%2Fad-emea.doubleclick.net%2Fclick%3Bh%3Dv8%2F3c6e%2F3%2F0%2F*%2Fr%3B222803474%3B0-0%3B0%3B45967855%3B1-468%2F60%3B35745356%2F35763197%2F1%3B%3B%7Eokv%3D%3Bdcopt%3Dmd%3Bkey1%3Dtop%3Bkey2%3Dbottom%3Bmv1%3D438%3Bmv2%3D203%3Bmv3%3D61%3Bmmanuf%3Dgeneric%3Bmmodel%3Diris+browser%3Bmvideost%3Dfalse%3Bmanigif%3Dtrue%3B%3B%7Esscs%3D%3Fhttp%3A%2F%2F"><img alt="TV Schedules" src="http://s0.2mdn.net/2661318/MID_1258915_L-TS.jpg"></a>
zain
Comment