Re: Help. I am losing the plot.. .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Perhaps there is an encoding issue in the file(s) that the server is not recoginizing? Could you post the code you actually use?

Bastien

From: Martin Norland <martin.norland@xxxxxxxxxx>
Reply-To: php-db@xxxxxxxxxxxxx
To: php-db@xxxxxxxxxxxxx
Subject: Re:  Help. I am losing the plot..    .
Date: Tue, 05 Jul 2005 09:41:55 -0500

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


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux