Re: Re: JAVASCRIPT INCLUDES
| From: | David Rice | Date: | Sun, 22 Sep 2002 23:36:59 +0000 |
| Subject: | Re: Re: JAVASCRIPT INCLUDES | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117211@lists.php.net to get a copy of this message | ||
Georgie:
So just for clarity, this "PHP" script ("http://localhost/top_stuff.php?affiliate=1") was actually a file containing javascript? and no PHP?
And out of curiosity, if that is so, why append the file name with ".php"
-David
On Sunday, September 22, 2002, at 07:20 PM, Georgie Casey wrote:
Solved the problem. In case anyones wondering, I had the PHP script starting with a <script> and ending with </script> when I already had that done in the HTML page. Simple "Georgie Casey" <webmaster@filmfind.tv> wrote in message news:20020922225913.18092.qmail@pb1.pair.com...In HTML, you can do this: <script language="JavaScript" src="http://localhost/top_stuff.php?affiliate=1"></script> But the script isn't executed before being used by the browser, it's returned with PHP tags and all, which obviously gives JS errors. Is there any setting you can change in Apache that let's you do this.-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php