Jump to content

Regarding pictures on my server


johnc

Recommended Posts

Hey guys,

 

I recently decided to rename all of my pictures files on my web server to text instead of just numbers. 

Example: wowphp.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:

 

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 "productsssh.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.

 

Any help regarding this matter would be greatly appriciated.

Link to comment
Share on other sites

Well you're getting an error on line 15 of a jpg file... view the source of that file in your ftp or something AFTER the name is getting changed by the script.

 

What method are you using for renaming, are you using the rename function?

Link to comment
Share on other sites

I am on php help forum because all of my scripts are based on php and second the pictures in the past were created with gd library via php and the error looks like a php error.

 

Nope i don't have any moderewrites acting here

Link to comment
Share on other sites

I found this inside the picture file:

"CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality"

 

Could gd library being outputing the error from server reading the file?

 

and if so how would i go about fixing this... rename all of my pictures?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.