<?php $url = 'https://www.example.com/path/to/product/filename.html'; $basePath = dirname($url) . '/'; echo $basePath, PHP_EOL;
You have javascript disabled. You will not be able to edit any code.