Click to See Complete Forum and Search --> : Apache crashes after calling getImagesiz


Anon
12-19-2001, 06:44 AM
We've got the following problem when starting with resizing an uploaded file on WIN NT 4, running Apache 1.3.22 with php 4.0.6 and GD configured.

Apache crashes and gives the following error 'access denied for reading' when we call the gd function getImagesize.

PHP returns to the browser, after the max.execution time exceeded and after apache has crashed, that it 'failed to open 'c:\winnt\temp\tempfilename for reading'

We've tried to change the NTFS properties and set it to full options for everyone. (yes that's unsafe, but this is a local intranet server only used for development)

Does someone know what we misconfigured or need to configure to solve this error??

mithril
12-19-2001, 01:02 PM
Have you verified that the image path you're passing into GetImageSize() is a full and valid path? GetImageSize() often returns that error when a non-existant path is provided. It also gives that error if it's passed a non-image (ie. not JPEG, PNG, GIF, or WBMP) file, so you'll want to check that out as well. All the server needs is read permissions on the directory and/or file you're passing to GetImageSize().

-geoff

Anon
12-19-2001, 01:35 PM
Yes, we where passing the right path. But we managed to find the problem.

The distribution of PHP 4.0.6 we're using included a GD library version 2.0 or higher.

in PHP 4.1.0 the included version of GD 1.6.2 (I wonder why the guys of php lost their faith in the newest release of GD)

We have also downgraded our GD Library from 2.X to 1.6.2 and now everything works fine and fast.

we're still using php 4.0.6


Thanks for your help anyway.