My environment is:
PHP 5.2.5
Apache 2.2.8
W2k3
IIS 6.0
I am trying to run the following code to test a connection to a DB server. There are not spaces above or below the PHP tags.
<?php
include('adodb/adodb.inc.php');
echo 'hello world';
$dbora = ADONewConnection('oci8');
echo '<br>connection created<br>';
flush();
$dbora->Connect('XXX', 'hrs', 'XXX', 'SID'); //TNS:Connect timeout
echo '<br>connection established<br>';
flush();
?>
In this code I was getting a timeout error. I put the flush calls in so the error would display on the page right away. The flush tags are causing the following errors.
[06-Jun-2008 14:28:41] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0
[06-Jun-2008 14:28:41] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0
The errors are generated only in Apache. In IIS I do not get these errors. Does anyone know why?
Thanks