imagecreatefromjpeg and PHP 4.4.1
Posted: Fri Nov 17, 2006 5:33 am
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Is there a particular problem with imagecreatefromjpeg and PHP 4.4.1?
I have some code which works fine under Apache on my computer. When I download it to the web space the call fails.
I have used phpinfo and it tells me that GD is active, that JPEGs are enabled and that allow_url_fopen is On (the code is resizing an image from a local machine).
Is there some other thing that I am missing. I have searched the internet and it does mention some problems with 4.4.1 and changes to the imagejpg call (to do with fille security) but as this is reading a file and not writing one I can not see this being the problem.Code: Select all
$im = @imagecreatefromjpeg($tempfile);
if (!$im)
{
$attachOK = FALSE; // This is being called.
}feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]