Re: php code in a .js file?

From: Date: Wed, 28 Apr 2004 13:40:49 +0000
Subject: Re: php code in a .js file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184875@lists.php.net to get a copy of this message
Aaron Wolski wrote:
Hey all, I'm writing in the process of writing a content management system for a client.. it's in the logic stag right now but once piece of logic I am having trouble with is the Javascript files that have code that reference pages. I want to use absolute URLS by having PHP set the domain and script path but HOW do I get PHP parsed in a .js file?
Make a php file that will output the javascript code with correct Content-Type header

« previous php.general (#184875) next »