Include server-side javascript in PHP -
I have an old ASP project in PHP5 which was using a lot of server-side JavaScript.
Is there a way to use that code or should I have to rewrite everything in PHP?
Edit The snippet of my helper.js - Then it appears in ASP that the function is called normal, that is BTW, if I have to type the code again, then I will do it on my own, will not use any software < Div class = "post-text" itemprop = "text"> The answer is "You have to rewrite everything in PHP" PHP is not like it is javascript reusable on the server side In addition, auto code changes are very few: cleanliness takes more time than everything from start to finish . However, you can run server-side javascript code with tools like nodes.js and backbone .js. There is no mixing with PHP code, although these projects can provide themselves, non-php-compatible, web-server.
The code in the ASP is embedded <
& lt; Script language = javascript runat = server & gt;
// Here are the functions & lt; / Script & gt;
Comments
Post a Comment