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.
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]
That's not a proper location most often for PHP however.
How is $tempfile set?
Most often, you'll want to use $_FILES['yourFileFieldName']['tmpname']. .. And because some browsers send the full path in ['name'] you need a basename() call for that.