jamesxg1 Posted November 7, 2009 Share Posted November 7, 2009 Hiya peeps, i need to put a $_GET into a file_get_contents function but it wont work, how do i do it ? $file = file_get_contents($_GET['app'], false, $context); Many thanks, James. Link to comment https://forums.phpfreaks.com/topic/180666-solved-file_get_contents-help/ Share on other sites More sharing options...
Alex Posted November 7, 2009 Share Posted November 7, 2009 Assuming that $_GET['app'] contains the name of the file you're trying to get the content of, that should work fine. But it is a security risk, you should at least perform some kind of check on the input. Link to comment https://forums.phpfreaks.com/topic/180666-solved-file_get_contents-help/#findComment-953182 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.