I have a text editor on my web page, on that text editor i put image and than i use that image in different parts of my website, but in different places the image size differs.
The image in database is stored this way: <div><img width="210" height="150" alt="" src="/portali/userfiles/image/Kategorite/Teknologji/-1.jpg" /></div>
Now in one part of my web site i want to use this same image with different size and for this reason i need some php script to grab only the path of the image, in this sample (/portali/userfiles/image/Kategorite/Teknologji/-1.jpg).
Can some body write here some basic script to do this having in mind that the whole html code of the image is in an single variable.