+ 19
How can i insert PHP script to JS?
PHP no need external link right?, but is it possible to insert PHP to JS?, 'cause I think PHP is much easier than JS, and have a little different.
3 ответов
+ 7
No, JavaScript is run on client browsers, it cannot call PHP script directly which is run from a web server.
+ 2
javascript run on client browser and it call PHP script which run from a web server.
+ 2
the easiest way to access PHP from JavaScript is to use the ajax method. which stands for asynchronies JavaScript and xml. it is useful for transferring data and executing other programming files.