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 code in the ASP is embedded <

The snippet of my helper.js - & lt; Script language = javascript runat = server & gt;
// Here are the functions & lt; / Script & gt;

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.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -