teongkia Posted November 29, 2006 Share Posted November 29, 2006 Plz help...thanks.. Link to comment https://forums.phpfreaks.com/topic/28828-can-php-code-put-inside-js-file/ Share on other sites More sharing options...
btherl Posted November 29, 2006 Share Posted November 29, 2006 No (well, not unless you reconfigure your web server to allow it), but you can generate javascript using a php script. Then you will have a .php file which outputs javascript instead of html. Or you can output javascript inline into the html using PHP. Link to comment https://forums.phpfreaks.com/topic/28828-can-php-code-put-inside-js-file/#findComment-131975 Share on other sites More sharing options...
teongkia Posted November 29, 2006 Author Share Posted November 29, 2006 oh thanks...i think i get it:) Link to comment https://forums.phpfreaks.com/topic/28828-can-php-code-put-inside-js-file/#findComment-131999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.