[prev in list] [next in list] [prev in thread] [next in thread]
List: php-windows
Subject: [PHP-WIN] Building JavaScript source via PHP
From: Jan Walter <john () lerach ! cz>
Date: 2001-01-31 20:26:11
[Download RAW message or body]
Dear PHP devoteees,
I have the following, very strange problem:
I use PHP to generate JavaScript source for
<script language="JavaScript" src="http://host/script.php"
type="text/javascript"></script>
but anytime an error in Netscape Navigator occurs (IE works properly):
--------------------
illegal character.
9
.^
--------------------
Even if script contains only:
document.write('Some text');
If I rename script.php to script.js, everything is OK. And the last
strange thing: this happens only on my web host's server, when I write
the code at home, everything is ok. Do you thing, apache+php send some
weird characters at the beginning of the page Netscape does not
recognize?
Thanx for any hint
--
__________________________________________________________________________________________
==========================================================================================
Jan Walter, called John
LERACH, s.r.o.
phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61
on emergency call cell phone: +420-602-385 760
work e-mail mailto:Jan.Walter@lerach.cz
private e-mail mailto:john@lerach.cz
ICQ#: 28353428
__________________________________________________________________________________________
==========================================================================================
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic