Answer the question
In order to leave comments, you need to log in
How to parse an image from a folder?
Hello, in general, I parse pictures like this: /<img .*?(?=src)src=\"([^\"]+)\"/si"
Displays:
www.ikea.com/ms/img/header/logo.gif
www.ikea.com/ms/ru_RU/img/ads/askanna.jpg
www.ikea.com/ms/img www.ikea.com/ms/media/seorange/20153/20151_dica04a
...
www.ikea.com/PIAimages/0322782_PE516321_S3.JPG
www.ikea.com/PIAimages/0355650_PE547817_S3.JPG
_ com/PIAimages/0292760_PE425390_S3.JPG
www.ikea.com/PIAimages/0325067_PE523174_S3.JPG
What needs to be added to take pictures only from the "PIAimages" folder?
Answer the question
In order to leave comments, you need to log in
check the occurrence of substr "/PIAimages/"
php.net/manual/en/function.substr.php
and slowly learn how to get links with simplehtmldom.sourceforge.net
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question