If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Another Image Display Issue  XML
Forum Index » Support Forum
Author Message
Ignatius
Beginner

Joined: 25/12/2003 06:49:24
Messages: 41
Offline

When I first installed my guestbook (using auto-install from my hosting service), everything worked perfectly. Then I started tinkering with the HTML to reformat the guestbook so it looked better with my site.

Somewhere along the way, I did something and now the images don't display. I see a broken image graphic where the thumbnail should be, and when I click on it, I get this message:

Forbidden
You don't have permission to access /~pirate/guestbook/public/img-1072380733.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I've triple-checked the permissions of all the folders and .php files, and they're set correctly. I've been trying to backtrack and find the command that makes the image display in the message, but I'm not sure what I'm looking for and nothing looks right intuitively.

Here's my revised code for entry.php:


<tr bgcolor="$bgcolor">
<td width="250" valign="top">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="font2" valign="top" width="8%"></td>
<td width="92%">
$URL
$ICQ
$AIM
</td>
</tr>
<tr>
<td colspan="2" class="guestinfo"><FONT SIZE=-2>$id.</FONT> <SPAN style="font-size: 110%"><b>$row[name] — </b></SPAN><b>$row[email]</b></td>
</tr>

<tr>
<td colspan="4" class="guestinfo">$LANG[FormLoc]:<B> $row[location]</B></td>
</tr>
</table>
</td>
<td width="350" valign="top" class="message">
<div align="left" class="font3"><img src="img/post.gif" width="9" height="9">
$DATE&nbsp;$HOST
<a href="comment.php?gb_id=$row[id]"><img src="img/edit.gif" width="18" height="13" border="0" alt="$LANG[AltCom]"></a>
$EMAIL
</div>
<hr size="1"><div align="left">
<SPAN class=message>
$MESSAGE</span>
</div>

$COMMENT
<P><BR>
<CENTER><img src="img/pawding.jpg"></CENTER><BR><P>
</td>
</tr>




The guestbook itself can be found here:


http://matrix.fast-servers.net/~pirate/guestbook/index.php


Thanks for any light you can shed!
Ignatius
Beginner

Joined: 25/12/2003 06:49:24
Messages: 41
Offline

OK, an update...

When I change the permissions on individual image files, I can see them fine. But shouldn't those files be viewable if the whole folder is set for 777?

Kinda weird. I've got a ticket in with my hosting service on this one.
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

nope you only chmod'ed the folder and not the files.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Ignatius
Beginner

Joined: 25/12/2003 06:49:24
Messages: 41
Offline

OK, but... We shouldn't have to CHMOD each individual image file after it's uploaded by guests, right?

What do I have to do to make sure the image files are created with the right permissions?


Thanks for your reply, Auron.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum