"; print "for windows
"; system('dir'); print "for linux
"; system('ls -l'); /** system('cat d1.txt | grep Boston'); print "
before1
"; system('type all.txt | grep "Back Bay Steps"'); print "
after1
"; $cmd1="'cat d1.txt | grep Boston'"; system($cmd1); print "
after2
"; $myfile = fopen("d2.txt", "r") or die("Unable to open file!"); /* Output one line until end-of-file */ print "before while
"; while(!feof($myfile)) { print "before ------------
"; echo fgets($myfile) . "
"; print "after ------------
"; } print "after while
"; fclose($myfile); **/ echo ""; ?>