I deduce the picture from the folder in the browser
<?php $path2 = __DIR__ .'/img/1.jpg'; echo $img = '<img src="'.$path2.'"/>'; ?> I deduce the picture from the folder in the browser
<?php $path2 = __DIR__ .'/img/1.jpg'; echo $img = '<img src="'.$path2.'"/>'; ?> Source: https://ru.stackoverflow.com/questions/858639/
All Articles
__DIR__- most likely returns not what you need. - Manitikyl 8:36 pm