title: How to run .php script on node.js
body: <p>I'm using wamp server and node.js to run my app(server.js), but when I want to execute .php script I always got an error: 
  <code>POST http://localhost:8080/login.php 404 (Not Found)</code>   </p>
  
  <p><strong>server.js</strong></p>
  
  <pre><code>var app = require('express')();
  var server = require('http').createServer(app);
  var webRTC = require('webrtc.io').listen(server);
  var exec = require("child_process").exec;
  
  var port = process.env.PORT || 8080;
  server.listen(port);
  
  app.get('/', function(req, res){
    res.sendfile(__dirname + '/index.html');
  });
  
  app.get('/login.php', function(req, res){
  exec("wget -q -O - http://localhost/login.php", function (error, stdout, stderr) {res.send(stdout);});});
  </code></pre>
  
  <p>in <strong>index.html</strong> calls to login.php:</p>
  
  <pre><code>$("#login").click(function(){
    username=$("#user_name").val();
    password=$("#password").val();
    $.ajax({
        type: "POST",
        url: "login.php",
        data: "name="+username+"&amp;pwd="+password,
        success: function(html)
                 {......
  </code></pre>
  
  <p>I want to ask,  it's neccessary to install another tool or something else ?</p>
  
  <p>thank you.</p>