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

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

 



I think I have identified the cause of the problem.
====

If I write my scripts in notepad, then the problem does not happen.

If I write my scripts in PSPAD, my editor that for 2 years has never given me any cause for concern, then I get the problem.

Perhaps I have changed some setting in PSPAD to save end of file markers differently or something? I don't know. I certainly haven't played with any setting recently.

Here's the really scary part. Literally 15 minutes before this started happening, I sent another message to this same list asking if anyone knew of a better code editor than PSPAD. I find this timing eerie.

Um. Anyone know of a good code editor?

I'll keep you all posted in case this turns out to be wrong. And I'm sure even if it is PSPAD it will be something I have done in it and not the product itself. I really don't want to tarnish a free product that has served me very well for so long. As already said, I have NEVER had any problem with PSPAD before.

thanks list .. Ross

Bastien Koert wrote:

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