Display images stored in directory one level higher

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
anu826
User
Posts: 17

Display images stored in directory one level higher

Post by anu826 »

Hi,

I want to display an image in directory one level higher that than the current directory. That is if my script is on localhost/www/alk/backend, I want to display an image in localhost/www/alk using image view tag . How can I achieve this?

Anuradha


mobhar
User
Posts: 11792

Post by mobhar »

How about this?

<?php
$myImageFolder = $_SERVER['DOCUMENT_ROOT'] . "/alk";
echo $myImageFolder;
?>


Post Reply