SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old June 30th, 2005, 04:25 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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


Reply With Quote
  #2  
Old June 30th, 2005, 04:34 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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


Reply With Quote
  #3  
Old June 30th, 2005, 05:25 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP Photo Gallery Troubles


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway