Current location: Hot Scripts Forums » Programming Languages » PHP » Apache/PHP not displaying images


Apache/PHP not displaying images

Reply
  #1 (permalink)  
Old 06-12-04, 07:57 AM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
Apache/PHP not displaying images

Have no idea what happened, but out of the blue, I cant get most images to display under either Apache/PHP on my WinXP PC. Smaller gif's will display, but not bigger ones, and absolutely no jpg's will open up.

If I run an HTML page from, say, my puters desktop, and it has a standard img src tag, images display fine. But if I open a php program under Apache, the images are replaced by the dreaded "Red X". Attributes like "border" and "alt" work...just no damn picture shows up.

I've tried variations of the img src tag, nothing works, whether its using the actual file name or pulling the name from a db. I havent made any changes to Apache, PHP, or anything else. This is happening in both my IE and Mozilla browsers, as well as Mozilla Firefox. I've cleared the caches on these, and havent made any changes in them.

Could one of those "Windows Updates" for XP have done something? I've ran my antivirus (AVG) and found nothing. My ZoneAlarm often alerts me that Apache is trying to access the internet when I'm online...although it doesn't give any details why. Guess I'm grasping at straws here, but I'm totally lost as to what is going on.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-28-06, 02:24 AM
FirmbIT FirmbIT is offline
New Member
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I am having this exact same issue on a RedHat 9 server running Apache/2.2.0. Small images such as 16x16 will display but almost nothing else will display. Examples:

http://www.xiweb.net/off.gif

doesnt work


http://www.xiweb.net/a.gif

works for whatever reason. Any idea why?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-28-06, 03:31 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Are the folder permissions set correctly or do you have any kind of .htaccess file up there?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-28-06, 11:28 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
Here is a link to some dated info that implies that a firewall could cause this type of problem -
http://forums.devside.net/viewtopic.php?p=1604
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 01-28-06, 02:01 PM
FirmbIT FirmbIT is offline
New Member
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Permissions are set correctly and there is no .htaccess file at all. I'll read into the firewal thing. Does anyone else have any suggestions though?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying default images galesjam PHP 4 01-16-04 05:23 PM
images hosting uae2k Script Requests 3 11-03-03 11:29 AM
List images and zip before download jaimexyz Script Requests 0 09-01-03 04:01 PM
Displaying images from MYSQL Soulidified PHP 1 07-22-03 07:01 PM
Displaying images! boskyvora PHP 4 06-30-03 08:53 AM


All times are GMT -5. The time now is 07:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.