Q: Save iframe content as text file How do you save the content of an iframe as a text file? Currently i only know ways to save the content of the webpage itself, but not any child iframes. I'm thinking some javascript, PHP and/or HTML5.

A: Using PHP and Javascript you can do this easily
Javascript (JQuery)
var data = document.getelementbyid("idofiframe").html();
var url = 'write.php';
$.ajax({url: url,type:"POST",data: data});

PHP
//Log all Proxy Requests
$file = 'file.txt';
// Open the file to get existing content
$current = file_get_contents($file);
// Append a new person to the file
date_default_timezone_set('GMT');
$current .= date('Y-m-d H:i:s'). ",".file_get_contents('php://input')."\n";
// Write the contents back to the file
file_put_contents($file, $current);

