Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: How can I get the name of the image from url? #9930
    blankhett
    Participant

    If you wanna to get file name from url ignoring uri params, you can try this:

    $url = 'http://host/filename.ext?params';
    $parsedUrl = parse_url($url);
    $pathInfo = pathinfo($parsedUrl['path']);
    print_r($pathInfo);
    Array
    (
        [dirname] => /
        [basename] => filename.ext
        [extension] => ext
        [filename] => filename
    )
    
    
Viewing 1 post (of 1 total)