Connecting Tech Pros Worldwide Help | Site Map

error ouput opening a picture file

Newbie
 
Join Date: Aug 2008
Posts: 7
#1: Aug 17 '08
Hey guys,

I have created many picture files using gd_library, I recently decided to rename all of my pictures files on my web server to text instead of just numbers.
Example: productsssh.jpg

I am recently receiving a wierd error when I open up some of the picture files. Here is the name of the picture: productsssh.jpg.

I get the following error only when i open up that picture via the web:


Quote:
Warning: Unexpected character in input: '' (ASCII=24) state=1 in /home/virtual/site1/fst/var/www/html/pics/productsssh.jpg on line 15

Warning: Unexpected character in input: ' in /home/virtual/site1/fst/var/www/html/pics/productsssh.jpg on line 15

Parse error: syntax error, unexpected T_STRING in /home/virtual/site1/fst/var/www/html/pics/productsssh.jpg on line 15

When i rename the file to "producsssh.jpg" it opens up perfectly fine.

I don't know why i am getting an apache or php error when attempting to open the file. Second, I don't know why i am getting the error only when i try to view the file over the web via my server. If I actually download the file I can perfectly open it via my computer.

My webserver is a linux box redhat.

All I am doing is opening up a picture file via the web... why am i receinving a php or apache error.... where is the error coming from?

Any help regarding this matter would be greatly appriciated.
Reply


Similar Apache Web Server bytes