Page 1 of 1

Image name from URL

Posted: Tue Oct 27, 2009 1:38 pm
by psaha
I have $url=http://myname.com/files/image_1.jpg;
I want $image=string function ($url, 'last /');
becomes $image=image_1.jpg

The file name from the URL.
Thanks...

Re: Image name from URL

Posted: Tue Oct 27, 2009 1:41 pm
by requinix

Re: Image name from URL

Posted: Tue Oct 27, 2009 1:44 pm
by psaha
thanks for basename. I forgot the function.