You are here: Re: script help « PHP Programming Language « IT news, forums, messages
Re: script help

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация