<?php ob_start(); passthru("curl -s www.google.com"); $var = ob_get_contents(); ob_end_clean(); echo "-- START --\n\n$var\n\n-- END --\n"; ?>