title: How to read IP addresses from a .txt file using preg_match in php
body: <p>I have a ip.txt file which contains</p>
  
  <p>127.0.0.1</p>
  
  <p>I need to get the text file from a form and to display the ping details in the new window using php. how to read ip from a text file so as to ping it from the read information.</p>