Web Hosting Talk







View Full Version : plesk and php ISAPI vs CGI... different results


ccbobby
05-26-2005, 03:47 PM
Iv got a strange one...
iv tried using php with plesk running as the ISAPI filter for IIS6 and as the CGI....

The CGI gives the best results... but id prefer to use ISAPI security speed etc..

theres seems to be one major difference, i dont know why though
to do with the way they process locations...

if i do

from index.php say i have a dir called uploads with uploaded files in...
i do..

$fp = fopen('uploads/file.zip');

running php as CGI it works fine...
as ISAPI it complains the file doesnt exist....

it only seems to work with ISAPI if i give the full location to the file....

$fp = fopen('c:\inetput\vhosts\domain.com\httpdocs\uploads\file.zip');

then it works.... how could this be?
anyone any ideas?

Cheers
Rob