RE: [PHP-WIN] PHP Error on IIS 5.0, Wink2k Server

From: Date: Thu, 14 Sep 2000 18:07:24 +0000
Subject: RE: [PHP-WIN] PHP Error on IIS 5.0, Wink2k Server
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-2658@lists.php.net to get a copy of this message
here is the code that is not working anymore. <--start--> <? if ($message) { /* uncomment the next two lines to strip out html from input */ /* $name = strip_tags($name); */ /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", "\n<P>", $message); $date = date("D, M j Y, h:i a T"); $message = "<B>$name </B> -- <font size=1>$date</font><P> $message <BR><HR>"; // first read the file into a buffer, if it exists $textfile = basename($PHP_SELF) . ".comment"; if ($fp = @fopen ($textfile, "r")) // open without complaining $oldmessages = @fread($fp,filesize($textfile)); @fclose(fp); } // now reopen the file in write mode, with the // pointer at the head of the file $fp = fopen ($textfile, "w"); fwrite ($fp, $message); fwrite ($fp, $oldmessages); // adding back the old messages fclose ($fp); } @readfile(basename(($PHP_SELF . ".comment"))); ?> <--end--> It is surounded by some html for the input boxes etc. you can see it here at http://darkness.dynip.com/test-php/forum.php after trying just the php.exe it seems that works because http://darkness.dynip.com/test-php/test.php works. but for some reason the forum will just sit there. if i change to use the php4iaspi.dll it goes right away and comes up with the error. Clay -----Original Message----- From: Andy Hoffman [mailto:andy.hoffman@bms.com] Sent: September 14, 2000 8:33 AM To: php-windows@lists.php.net Subject: Re: [PHP-WIN] PHP Error on IIS 5.0, Wink2k Server Dark wrote: > Sorry for not including more information. I am using PHP 4.0.2 also tried > 4.0 and the same thing it will work a few times then stop. This is with the > dll and when I try the php.exe all I get back after a minute or two is a CGI > request timed out error. I have the php.exe setup as follows d:\PHP\php.exe > %s %s and for the dll it is just d:\php\php4isapi.dll What code is specifically not working? Or is any php script not generating output? -- Andy Hoffman Web Developer Bristol-Myers Squibb email: andy.hoffman@bms.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#2658) next »