PHP получить имя файла из URL
Primary tabs
Чтобы получить имя файла из ссылки делаем так:
$url = "htttp://example.com/images/logo.png"; $file = basename($url); // получение имени файла print $file;
- Log in to post comments
- 10093 reads
$url = "htttp://example.com/images/logo.png"; $file = basename($url); // получение имени файла print $file;