jdock1 Posted June 19, 2009 Share Posted June 19, 2009 Im messing around with file_get_contents, and wrote this code real quick to see what id would do; <?php $query = $_GET['query']; $homepage = file_get_contents("$query"); ?> // html form... <?php //then I echo the query echo "$homepage"; ?> Link to comment https://forums.phpfreaks.com/topic/162866-solved-file_get_contents-help/ Share on other sites More sharing options...
xtopolis Posted June 19, 2009 Share Posted June 19, 2009 file_get_contents($query) assuming $query holds a filename. Link to comment https://forums.phpfreaks.com/topic/162866-solved-file_get_contents-help/#findComment-859385 Share on other sites More sharing options...
jdock1 Posted June 19, 2009 Author Share Posted June 19, 2009 file_get_contents($query) assuming $query holds a filename. Thanks BROtha! Link to comment https://forums.phpfreaks.com/topic/162866-solved-file_get_contents-help/#findComment-859388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.