php code in seperate js file?

  • Thread starter Thread starter imported_dutchie
  • Start date Start date
I

imported_dutchie

Guest
PHP is server side, js is client side.

But you can have a PHP file read another PHP file with the include function. Just put this in your code:

include 'your file.php';
 
PHP is server side, js is client side.

But you can have a PHP file read another PHP file with the include function. Just put this in your code:

include 'your file.php';
 
Back
Top