|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
PHP Photo Gallery Troubles
Hello... I've been trying to set up a PHP Photo Gallery and using Webmonkey to teach myself PHP. I've gone over this one several times and I can't seem to find what the glitch is. This is the page that pulls up when I try to look at my gallery online, which is at:
http://www.greyeye.com/photophp/ Here's what I get: Warning: getimagesize(../images/thumbs/csh -c "ls *jpg > list.photos"): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 46 Warning: getimagesize(csh -c "ls *jpg > list.photos"): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 47 Warning: getimagesize(TribecaDaveBlur.jpg): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 47 Warning: getimagesize(TribecaDGAkiva.jpg): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 47 Warning: getimagesize(TribecaDGTaylor.jpg): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 47 Warning: getimagesize(TribecaDGTaylorSlide.jpg): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 47 Warning: getimagesize(TribecaSoloCowboy.jpg): failed to open stream: No such file or directory in /u222/greyeye/photophp/index.php on line 47 < a href="javascript:photo_open('photo_display.php?photo= csh -c "ls *jpg > list.photos"','',' ');">list.photos"" > < a href="javascript:photo_open('photo_display.php?photo= TribecaDaveBlur.jpg','',' ');"> < a href="javascript:photo_open('photo_display.php?photo= TribecaDGAkiva.jpg','',' ');"> < a href="javascript:photo_open('photo_display.php?photo= TribecaDGTaylor.jpg','',' ');"> < a href="javascript:photo_open('photo_display.php?photo= TribecaDGTaylorSlide.jpg','',' ');"> < a href="javascript:photo_open('photo_display.php?photo= TribecaSoloCowboy.jpg','',' ');"> What am I doing wrong? Dave |
|
#2
|
|||
|
|||
|
RE: PHP Photo Gallery Troubles
I should show you lines 46 and 47, I suppose! Here they are:
$thumb_image_size = getimagesize($thumbnail); $image_size = getimagesize(trim($photos[$i])); And here's the larger section that it's part of: //initialize variables $data_file = "../images/list.photos.txt"; $thumbnail_dir = "../images/thumbs/"; $num_rows = 4; $photos_per_row = 5; $photos = file($data_file); $total_photos = sizeof($photos); $photos_per_page = $num_rows * $photos_per_row; //check to see if the start variable exists in the URL. //If not, then the user is on the first page - set start to 0 if(!isSet($start)){ $start = 0; } //init i to where it needs to start in the photos array $i = $start; $prev_start = $start - $photos_per_page; $next_start = $start + $photos_per_page; for ($row=0; $row < $num_rows; $row++){ print("<tr>n"); for ($col=0; $col < $photos_per_row; $col++){ if($i < $total_photos){ $thumbnail = $thumbnail_dir.trim($photos[$i]); $thumb_image_size = getimagesize($thumbnail); $image_size = getimagesize(trim($photos[$i])); print("<td align="center">< a href="javascript:photo_open('photo_display.php?photo= ".trim($photos[$i])."','".$image_size[0]."',' ".$image_size[1]."');"><img src="".$thumbnail. "" ".$thumb_image_size[3]."></a></td>n"); } else { print("<td></td>n"); } $i++; } print("</tr>n"); } //end table |
|
#3
|
|||
|
|||
|
RE: PHP Photo Gallery Troubles
i would guess it's either a permissions issue on the working folder, or you've specified the wrong path that it's supposed to look in.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP Photo Gallery Troubles |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|