Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show my output file?

Status
Not open for further replies.

E3p0

Technical User
May 31, 2001
65
US
I am trying to make a page which will display .txt file I create on a Unix server. So let's say I want a script to run the command: df -k > stat.txt . I want the contents of stat.txt displaed in IE. How / what can I do in PHP to get this done? My results will show up in anyones IE who types in the URL.

Never be afraid to ask for help!
 
Code:
$filename = "stat.txt";
echo file_get_contents($filename);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top