|
Posted by Andy Hassall on 09/15/06 20:16
On Fri, 15 Sep 2006 14:54:48 -0400, hoozdiss <BillG@msn.com> wrote:
>i installed apache 2.2 on winxp with php5. when i write a piece of
>html and include a php or java script in the html i have no problem.
>when i file the script and use something like
><script src="script.php"></script>
That's specifying a client-side script to run, which is probably not what you
want (unless the PHP script is itself generating Javascript, for example).
You probably want to use require() or similar in a PHP block.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|