You need to define the type of file you are creating.
Like when you create wml pages with php.

Header("Content-Type: text/javascript");
or summing to that effect.

have a look at www.weberdev.com


"Mp" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, php-general,
>
>  I make this kind of PHP script(script.php):
>  script.php
>  <?
>    $variable = "Some some long long Text Blah blah";
>    echo "document.write(\"".$variable."\")";
>  ?>
>
>  And in HTML (other.html) file I write:
>  <script language="JavaScript" src="script.php"></script>
>
>  But there is some mistake. Does anybody can help me?
>  Thanks...
>



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

Reply via email to