Re: php code in a .js file?
| From: | John Nichel | Date: | Wed, 28 Apr 2004 13:19:49 +0000 |
| Subject: | Re: php code in a .js file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184872@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?You _could_ configure Apache to parse .js as php, but I think you'd be better off having a php script output the .js file. -- *********************************************************************** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \ / /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com john@KegWorks.com * 14203 - 1321 * ***********************************************************************