Posted by abrtlt on 11/12/06 13:39
I have a simple PHP script that outputs a string requested by an Ajax
page. XMLHttpRequestObject.responseText as received from the PHP script
begins with 2 extra newline characters (\n\nMyString):
<?php
require_once('DB.php');
require_once('../myDir/myFile.php');
.......
echo('MyString');
?>
myFile
<?php
$var1 = 1;
$var2 = 2;
$var3 = 3;
?>
If I manually write the contents of myFile.php into the script, there
are no extra newlines in responseText.
Am I missing something?
Thanks!
Andrew
[Back to original message]
|