imagecreatefromjpeg() not working for me.
Please reference page 599 of Beginning PHP 5. I'm having a problem
getting this code snippet to work. The server that I'm working from is Linux..PHP 4.4.7. I have read about the need for the GD libraries and I'm not sure if they are loaded on my host providers system.
Here is the snippet:
$myImage = imagecreatefromjpeg('moegie.jpg');
I made sure that I substituted filename with one that exists in the same directory as my php code. Instead of displaying the jpeg in my browser (IE 7), I am getting a request to download a file and view it. When I accept the download option, I do NOT see the jpeg in my browser. I'm sure I'm doing something wrong..any help for this novice yet eager student would be appreciated.