When including an image file in a php page using
include "images/filename.jpg";
I get the following error
Parse error: syntax error, unexpected T_STRING in path_to_folder/images/filename.jpg on line 1
whereas this is working locally on my local wamp server. My site is hosted on hostmonster — which I guess provides php5. Could the problem be with the host ?
As the other answers say, you are trying to execute the image (binary data) as php code. This is probably what you want: