SOLVED: I used a relative path to folder.
Please help me understand why I can’t display images in Joomla in such a way:
$path= JURI::root();
$previewImgPath = $path.'images'.DS.'folder'.DS.'images'.DS.$id.'/folder';
I got:
Warning: opendir(http://www.domain.com/joomla/images/folder/images/4/folder/) [function.opendir]: failed to open dir: not implemented in ... on line 61
What way is correct to display images using PHP?
You have to use a relative path to a directory, something like
images/folder/images/4/folder/. opendir() doesn’t work with HTTP resources.Try this: