title: What does it mean if your request from postman returns HTML body?
body: <p>When I send a request in postman, it returns a html body and it says 404 not found. Does this mean my php server is not running? I am trying to run my php code in visual studio code as a php server.</p>
  
  <p>This is the php file:</p>
  
  <pre><code>    &lt;?php 
    // Headers
    header('Access-Control-Allow-Origin: *');
    header('Content-Type: application/json');
    include_once '../../config/Database.php';
    include_once '../../models/Login.php';
    // Instantiate DB &amp; connect
    $database = new Database();
    $db = $database-&gt;connect();
  
    // Instantiate blog post object
    $login = new Login($db);
  
    //$login-&gt;email=isset($_GET['username']) ? $_GET['username']:die();
      $login-&gt;password=isset($_GET['phoneNumber']) ? $_GET['phoneNumber']:die();
  
    $result = $login-&gt;read_single();
     $num = $result-&gt;rowCount();
   if($num &gt; 0) {
      // Post array
      $posts_arr = array();
      $posts_arr['data2'] = array();
      while($row = $result-&gt;fetch(PDO::FETCH_ASSOC)) {
        extract($row);
        $post_item = array(
          //'username' =&gt; $username,
          'phoneNumber' =&gt; $phoneNumber,
          'token' =&gt;$token,
          'tokencreatedat'=&gt;$tokencreatedat,
          'expTime'=&gt;$expTime
        );
        // Push to "data"
        //array_push($posts_arr, $post_item);
        array_push($posts_arr['data2'], $post_item);
      }
      // Turn to JSON &amp; output
      echo json_encode($posts_arr);
    } else {
      // No Posts
      echo json_encode(
        array('message' =&gt; 'No Posts Found')
      );
    }
    ?&gt;
  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/IdjxE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IdjxE.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/VfIV1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VfIV1.png" alt="enter image description here"></a></p>
  
  <p>Plus, how do you run php as a web server for RESTful API?</p>
  
  <p>UPDATE: when I put localhost:3000/path in the url in postman, it return 200 which mean its okay. But when I input the IP address, it returns 404.</p>