Re: php code in a .js file?

From: Date: Wed, 28 Apr 2004 12:54:34 +0000
Subject: Re: php code in a .js file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184865@lists.php.net to get a copy of this message
"Aaron Wolski" <aaronjw@martekbiz.com> wrote in message news:014201c42d1e$8162a150$6501a8c0@AJW2... > 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? Not at all. But you could write a PHP script that builds your desired JS code as a string and saves it into a .js file. Regards, Torsten > > Any thoughts? > > Thanks! > > Aaron

« previous php.general (#184865) next »