Re: Retrieve output from HTML or PHP file

From: Date: Mon, 30 Jan 2006 04:48:57 +0000
Subject: Re: Retrieve output from HTML or PHP file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229439@lists.php.net to get a copy of this message
Hi Peter, Close :) file('file.html'); see http://www.php.net/file or file_get_contents('file.html'); see http://www.php.net/file_get_contents the 'file' function returns an array, 'file_get_contents' returns it as a string. Peter Lauri wrote:
Best group member, I have a php script running and need to save the output from an HTML-file or PHP-file. What I want to do: $the_output = thenicefunction('file.html'); Any suggestions? /Peter


« previous php.general (#229439) next »