ok.. this is how it is.....
i made a script... that allows me to open a dir...list images......creates an x for every image that available...then...supposedly when you click on the x...its supposedly... suppose to open a popup window...and display the image.... but it seems as if the info from ... test.php....is getting sent to blank2.php..... or we can say..... info in gallery.php isnt getting sent to viewimg.php. just comes up with a non-existant image....
ok heres the link:
http://3uphoric.net/test.php
heres the code... AND DONT LAUGH! 😕 :
test.php:
<script language="javascript" type="text/javascript">
<!--
function photoOpen(link, width, height)
{
if(!width){width = 640;}
if(!height){height = 480;}
var photoWindow = window.open(link,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
}
//-->
</script>
<?php
$page = 'blank2.php';
$imgWWWFULL = '/images/full';
if ($handle = opendir('./images/full')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$imageSrc = @imagecreatefromjpeg ("http://www.3uphoric.net/images/full/$file");
if ($imageSrc) $width = imagesx($imageSrc);
if ($imageSrc) $height = imagesy($imageSrc);
echo "<a href=\"javascript:photoOpen('$page?photo=".trim($file)."','".$width."','".$height."');\"><img src=\"images/x.gif\" border=\"0\"></a>";
}
}
closedir($handle);
}
?>
blank2.php:
<title><? echo($file);?></title>
<body bgcolor="DCEBF7" leftmargin="0" topmargin="0">
<?
echo "<img src=\"$imgWWWFULL/$file\">";
?>
heh that is.... its probably all bassackwards....it works to the point where it gets the files...loads the exs.... its just loading the image in the popup....i posted the link above... u'll see
all i have to say is HELP!!!!! 🙂 THX!!