Forum Moderators: coopster
--
<?php list($width, $height) = GetImageSize("photos/",$name,".jpg"); ?> <----[line 3]
<img src="photos/<?php echo $name; ?>.jpg" width="<?php echo $width; ?>" height="<?php echo $height; ?>" id="photo">
--
And getting this error:
--
Warning: Wrong parameter count for getimagesize() in c:\-= web-sites =-\in progress\photography\site\photo.php on line 3
--
If I change the ("photos/",$name,".jpg") part to ("photos/THEFILENAME.jpg"), it works fine. Is there something else I should be using instead of commers to seperate the parts? Or does it need to be done another way?
Thanks,
Justin.