File path error
In the pindex.php page I have a link that send a value to the mainphoto.php page.
The values that I send is the name of a picture that I want to open in the mainphoto.php page
I am not getting an error but the picture is not appearing
Mainphoto.php
Line 22 -------- echo '<img src="$_SERVER["DOCUMENT_ROOT"]./photos/'.$full.'" width="500" height="600">';
Please help me
Thank you
pindex.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<script language="JavaScript">
function launchwin3()
{
newwin = window.open("mainphoto.php?tvalue=001","WindowName3","scrollbars=0,toolbar=0,height=380,width=270,screenX=400,screenY=400,top=200,left=400")
}
</script>
<body>
<?php
echo '<a href="javascript:launchwin3()">Log in</a>. <br>';
?>
</body>
</html>
mainphoto.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php
$ph = $_GET["tvalue"];
$file = '.jpg';
$full = $ph . $file;
echo $full;
echo "<BR>";
echo $_GET["tvalue"];
echo "<BR>";
echo '<img src="$_SERVER["DOCUMENT_ROOT"]./photos/'.$full.'" width="500" height="600">';
?>
</body>
</html>