RE: [PHP-WIN] Why am I getting a CGI error?

From: Date: Thu, 30 Aug 2001 16:16:37 +0000
Subject: RE: [PHP-WIN] Why am I getting a CGI error?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9138@lists.php.net to get a copy of this message
Hi all! Sorry I'm coming into this one a little late. It's been a busy few days. :) <BIG snip!> > > > It looks like it only occurs on pages with MS SQL (not MySQL) db > > connections > > > (so I'm going to check with Frank to see if has any ideas) AND only if > the > > > Header (Location: xx/xxx.html) function is used in > combination. Gathered > > > from others, it doesn't seem to happen in Apache, so it might just be > IIS, > > > but the MS KB doesn't have anything at all. I recently had a problem with IIS4 (and later Xitami) on NT4. Essentially, the header() function was just not working. Scratched head, triple checked the docs, looked at the code, scratched head some more... What it came down to was the for whatever reason, the webservers in question did not like having a partial (or local) path in the header. So: header("location: /file_path/some_file.php"); ...would fail. However, once I out in the full path, with http:// it worked. Like: header("location: http://www.domain.com/file_path/some_file.php"); I don't know if this is specifically your issue. You might want to give it a try just for the heck of it. :) Hope that helped somehow, - Erik

« previous php.windows (#9138) next »