Ho letto l'altra discussione e non vedo in cosa php c'entra. Ovviamente per catturare l'src dell'immagine devi avere settato l'evento onclick.
Puoi provare quello che segue :
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
var srcIm = "";
function popup(anImage) {
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
var h = anImage.height;
var w = anImage.width;
srcIm = anImage.src;
window.open("test2264b.html","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
} // function popup(imgSrc)
//-->
</script>
</head>
<body>
[img]image1.jpg[/img]
[img]image6.jpg[/img]
</body>
</html>
file test2264b.html
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body onload="document.getElementById('myImg').src=window.opener.srcIm">
[img][/img]
</body>
</html>