Ross Honniball wrote:
script1.php:
echo 'script 1 before';
require_once('script2.php');
echo 'script 1 after';
script2.php:
echo 'hello from script 2';
which in IE visually produces:
script 1 beforehello from script 2script 1 after
However if I view the source in IE, I get:
script 1 before?hello from script 2script 1 after
^
^
^
NOTICE THE QUESTION MARK.
I can't say I've ever run into it, but I would guess it relates to <?
?>'s. Perhaps your Apache server configuration changed and it no longer
recognizes <? start tags and only <?php - but then it shouldn't be
echo()ing, rather just emitting the whole of the file or some such.
I'd suggest using telnet and issuing your get statement right there
telnet yourserver 80
GET /
this should give you exactly what your server returns on such a request,
minus any customizations it has for the useragent. View source can lie
sometimes, unfortunately.
cheers,
--
- Martin Norland, Sys Admin / Database / Web Developer, International
Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php