Chcę pobrać sobie adres url obrazka, ze strony.
Mam CURLA, no i taką funkcję:
No i wyświetla to źle.
img id="ctl00_CPHBody_LVImages_ctrl5_ImgPhoto" onmousedown="event.preventDefault ? event.preventDefault() : event.returnValue = false" src="Gallery/arni/20130531_131404/nice.jpg" /> "ctl00_CPHBody_LVImages_ctrl5_ImgPhoto" "event.preventDefault ? event.preventDefault() : event.returnValue = false" "Gallery/arni/20130531_131404/nice.jpg" />
1 kod mi wyświetla z img id, a drugi bez tego img id, no właśnie, dlaczego dwa? no i całkiem inaczej to wyświetla.
I 2 pytanie, mam tutaj id, onmousedown, ale chcę to pominąć, zostawić samo src, jak tego dokonać w tym preg.?
A funkcja wyświetlania:
foreach ($a as $ml) { }