Joined December 2012
·

Josh Ledford

Red Clay Interactive
·
Buford, GA
·
·

Posted to Fix WordPress PCLZIP_ERR_MISSING_FILE over 1 year ago

I had an issue moving a site from IIS to an apache server so I added a test if the server was IIS then define the temp directory constants

<?php if( stripos( $SERVER['SERVERSOFTWARE'] , 'IIS' ) ){ define('WPTEMPDIR', iniget('uploadtmpdir')); putenv('TMPDIR=' . iniget('uploadtmpdir')); } ?> </code>

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills