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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.