php-windows Digest 14 Feb 2003 21:48:56 -0000 Issue 1588

Topics (messages 18537 through 18542):

Re: basic variable question
        18537 by: Svensson, B.A.T. (HKG)

Error In CGI Application
        18538 by: Jey
        18539 by: Henrik Hornemann

geek fishing stuff
        18540 by: Anthony Ritter

Interesting problem - PHP 4.3, IIS5, ISAPI
        18541 by: Matt Babineau

Pipe from SMTP to php script
        18542 by: Kato

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Obviously you are on to *somthing* with your first
comment, because one way to evaluate to 1.1 each
time is if for instance:

 $taxrate = 0.10; // local sales tax is %10
 $totalamount = $totalamount * (1 + $taxrate);

Is evaluated like:

  $totalamount * (1 + $taxrate)
  ==> 1 * (1 + 0.1)
  ==> 1 * 1.1 ==> 1.1


> -----Original Message-----
> From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 8:34 PM
> To: 'paradiddles'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] basic variable question
> 
> 
> Oh wait. Yes you are. Heck if I know. :)
> 
> |-----Original Message-----
> |From: paradiddles [mailto:[EMAIL PROTECTED]] 
> |Sent: Thursday, February 13, 2003 1:00 PM
> |To: [EMAIL PROTECTED]
> |Subject: [PHP-WIN] basic variable question
> |
> |
> |
> |  Hi everyone. Why does my code work when I enter just 1 for 
> |the quantity, but only returns $1.10 when I enter a quantity 
> |of 2 or more? 
--- End Message ---
--- Begin Message ---
I have installed PHP 4.3.0 on Windows 2000 Server. And then I edited the
php.ini file accordingly. And added the extension .php in IIS 5. And when I
try to run a php script I get the following error:

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

What is the problem here?
The script is perfectly fine. Also, I installed the PHP exe, not the PHP
zip.

~Jey


--- End Message ---
--- Begin Message ---
You probably dont generate any html output.

regards Henrik Hornemann

> -----Oprindelig meddelelse-----
> Fra: Jey [mailto:[EMAIL PROTECTED]]
> Sendt: 14. februar 2003 13:59
> Til: [EMAIL PROTECTED]
> Emne: [PHP-WIN] Error In CGI Application
> 
> 
> I have installed PHP 4.3.0 on Windows 2000 Server. And then I 
> edited the
> php.ini file accordingly. And added the extension .php in IIS 
> 5. And when I
> try to run a php script I get the following error:
> 
> CGI Error
> The specified CGI application misbehaved by not returning a 
> complete set of
> HTTP headers. The headers it did return are:
> 
> What is the problem here?
> The script is perfectly fine. Also, I installed the PHP exe, 
> not the PHP
> zip.
> 
> ~Jey
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
My guiding season begins in April.

Anybody out there know where I can purchase a nice mysql dolphin t-shirt?

Thank you.
TR





--- End Message ---
--- Begin Message ---
I am trying to output the page runtime to omake a comparison between php
and Coldfusion. I have 2 functions one to start a timer, one to end a
timer.

The php code block in the middle between reads a 140mb file and does
some other stuff. This is fairly unimportant at this point. With the
code block in between the timer functions present, the timer functions
don't output the processing time. When I remove the code block, the
timer functions work great...I don't get it!!

Help!

CODE:
--------------------------
<?
function startTiming() {
  global $startTime;
  $microtime = microtime();
  $microsecs = substr($microtime, 2, 8);
  $secs = substr($microtime, 11);
  $startTime = "$secs.$microsecs";
}
startTiming();
?>


<HTML>
<HEAD>
<TITLE>Stats Server</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>

<BODY>
<?

$fp = fopen("d:\www\ex030124.log", "r");
$i = 0;

while (!feof($fp)) {
        $rowData = fgets($fd);
        /*
        if(substr($rowData, 1, 1) == "#") {
                $iisTitle = preg_split(":", $rowData, "1");
                echo $iisTitle . "<BR>";
        }
        */
        $i++;
        //echo $i . "<BR>";
}

?>
</BODY>
</HTML>
<?
function stopTiming() {
  global $startTime;
  $microtime = microtime();
  $microsecs = substr($microtime, 2, 8);
  $secs = substr($microtime, 11);
  $endTime = "$secs.$microsecs";
  echo "<HR>Execution time " . ($endTime - $startTime) . " seconds."; 
        }

stopTiming();
?>

--- End Message ---
--- Begin Message --- Hello

I am trying to port a unix application to windows, and I need to learn about some common windows SMTP solutions, and how they can port the output of a particular address to a php script.... similar to what would be done with sendmail in a .forward file:

"| phpscript.php"

If anyone can recommend any free smtp products that I can install on my win2K box to test this, that would also be highly useful.

I would like to hear about any ideas about how one could accomplish a similar process from a remote mail server to a local script as well.

The objective is, quite simply, to get raw email output from the smtp server to STDIN of the script.

Best wishes, and thanks in advance.

Kato

--- End Message ---

Reply via email to