[PHP-DB] Help. I am losing the plot.

2005-07-05 Thread Ross Honniball

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.

As of about 2 hours ago, this is suddenly appearing in ALL my scripts 
where ever an include, include_once, require or require_once occurs but 
ONLY IN IE.


It doesn't seem to be happening in Firefox.

I have no idea what is going on. I am rapidly becoming a gibbering mess. 
I have never seen anything like this before. Has anyone ever had a 
similar problem? Does anyone know a good shrink?


Ross

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



Re: [PHP-DB] Help. I am losing the plot.. .

2005-07-05 Thread Martin Norland

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



Re: [PHP-DB] Help. I am losing the plot.. .

2005-07-05 Thread Bastien Koert
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 [EMAIL PROTECTED]
Reply-To: php-db@lists.php.net
To: php-db@lists.php.net
Subject: Re: [PHP-DB] 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



Re: [PHP-DB] Help. I am losing the plot.. .

2005-07-05 Thread Ross Honniball

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 [EMAIL PROTECTED]
Reply-To: php-db@lists.php.net
To: php-db@lists.php.net
Subject: Re: [PHP-DB] 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



Re: [PHP-DB] Help. I am losing the plot.. (NOW good code editor)

2005-07-05 Thread Philip Hallstrom

Um. Anyone know of a good code editor?


I normally use vim, but on my windows box sometimes use 
http://www.pnotepad.org/ when looking at log files and what not... (yes, I 
know there's a windows version of vim)


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



Re: [PHP-DB] Help. I am losing the plot.. .

2005-07-05 Thread Bastien Koert
zend is excellent, i use editpad at work, have engisite for php (also good) 
phpedit, context


all depends on how much you want to spend and what features you want

bastien


From: Ross Honniball [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Help. I am losing the plot.. .
Date: Wed, 06 Jul 2005 08:48:58 +1000

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 [EMAIL PROTECTED]
Reply-To: php-db@lists.php.net
To: php-db@lists.php.net
Subject: Re: [PHP-DB] 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



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