how to run php file using javascript in server -
i have tried line location.href = 'c:\services\witsapp.mobi\sms.php' , other ways find on line of them breaking
app.get('/sms', function(req,res){ location.href = 'c:\services\witsapp.mobi\sms.php' //console.warn(req); console.warn(res); res.end("successfully purcahsed gold moon!"); });
your code requests browser load php source file. there's nothing within browser can run code contains - web server does, not browser.
Comments
Post a Comment