The PHP file cannot be called in javascript. The help environment is the javascript code in linux $ ('# send '). click (function () {& nbsp; $. get ('send. php', {& nbsp;}) ;}); send is the ID of a button of mine. you need to click this but the php file cannot be called in javascript.
The environment is in linux
Code in javascript
$ ('# Send'). click (function (){
$. Get ('send. php ',{
});
});
Send is the ID of a button. you need to click this button to call send. php.
Code in send. php
$ Send = $ _ GET ['send'];
If (isset ($ send )){
$ R = exec ("./copy ");
Echo $ r;
}
Copy is a simple C file that has been tested by gcc-o in linux. it must be okay.
However, if I click a button, the copy operation cannot be triggered.
------ Solution --------------------
Didn't you pass the send parameter?
------ Solution --------------------
You can use firebug.
------ Solution --------------------
JScript code
// Try $ ('# send') in this way '). live ("click", function () {send = $ ('# mes '). val (); $. get ('send22. php ', {send: send}, function (data) {alert ("send OK ");});});