Answers for "how to call php in a javascript file"

PHP
0

how to write php in script file

AddType application/x-httpd-php .js

AddHandler x-httpd-php5 .js

<FilesMatch ".(js|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
Posted by: Guest on October-17-2020
0

how to write php in script file

<?php
$phpToJsVars = [
  'value1' => 'foo1',
  'value2' => 'foo2'    
];
?>
Posted by: Guest on October-17-2020

Code answers related to "how to call php in a javascript file"

Browse Popular Code Answers by Language