IIS server

See all posts Reply

IIS server new!
by Andrew Bingham, 16 years, 6 months ago
Ive worked with this class succssfully on an Linux server, but ive transfered my site to a windows server and i get the following error when i run the class:error : Destination directory can't be made writeable. Can't carry on a process

Ive asked my admininstrator to setup full control access, but the problem persists. Any ideas how to resolve this, does the class work in windows servers?

cheers

andrew bingham
UOT lecturerReply
Re: IIS server new!
by colin, 16 years, 6 months ago
Hi Andrew,

The class should run on IIS, although I haven't tested it. Can you copy here the results of $foo->log?

Maybe it is a problem of path separator. Which version of the class do you use?Reply
Re: IIS server new!
by Andrew Bingham, 16 years, 6 months ago
Hi, thanks for your swift response - im using the latest version 0.24

Here's my log output:
- upload OK
- file name OK
- source variables
file_src_name : m_9c8dd4acb568ac9355cbf67d6a89ffce.jpg
file_src_name_body : m_9c8dd4acb568ac9355cbf67d6a89ffce
file_src_name_ext : jpg
file_src_pathname : C:\WINDOWS\TEMP\php1C.tmp
file_src_mime : image/jpeg
file_src_size : 6517 (max= 16777216)
file_src_error : 0
process file to ../propertyImages\
- file size OK
- file mime OK : image/jpeg
- new file name body : propertyThumb5
- new file name ext : jpg
- file name safe format
- destination variables
file_dst_path : ../propertyImages\
file_dst_name_body : propertyThumb5
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : propertyThumb5.jpg
file_dst_pathname : ../propertyImages\propertyThumb5.jpg
- propertyThumb5.jpg doesn't exist already
- ../propertyImages\ is not writeable. Attempting chmod: failed


Im off teaching now, but thanks so much for looking at this :)

andrewReply
Re: IIS server new!
by colin, 16 years, 6 months ago
How do you call process()?

I don't use Windows, so I can't really test it. But you seem to do this:
$foo->process('../propertyImages');

What does the class do it you instead write the following?
$foo->process('propertyImages');
or even
$foo->process('propertyImages\\');
Reply