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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -