sumdude Posted October 31, 2010 Share Posted October 31, 2010 The servers at my uni blocked the fwrite & fputs functions. Is there another way to write to a file using php? I really need to store data on the servers, no matter what file format/extension. Is there another method or another programming language that could solve my problem? Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/ Share on other sites More sharing options...
Pikachu2000 Posted October 31, 2010 Share Posted October 31, 2010 You can try file_put_contents(), but somehow I suspect you'll get the same result. Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128558 Share on other sites More sharing options...
sumdude Posted October 31, 2010 Author Share Posted October 31, 2010 I got this message. Â Fatal error: Call to undefined function: file_put_contents() Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128560 Share on other sites More sharing options...
Pikachu2000 Posted October 31, 2010 Share Posted October 31, 2010 They aren't running php4, are they? file_put_contents() isn't available until php5. Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128561 Share on other sites More sharing options...
PFMaBiSmAd Posted October 31, 2010 Share Posted October 31, 2010 Perhaps it would be better if you asked your server administrator what methods they do permit. Â Asking us would just be a guessing game. Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128563 Share on other sites More sharing options...
sumdude Posted October 31, 2010 Author Share Posted October 31, 2010 I can't find out, because Warning: phpinfo() has been disabled for security reasons Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128564 Share on other sites More sharing options...
sumdude Posted October 31, 2010 Author Share Posted October 31, 2010 Yea I guess you're right. Thanks for all the replies Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128566 Share on other sites More sharing options...
Pikachu2000 Posted October 31, 2010 Share Posted October 31, 2010 Then I have to agree with what PFMaBiSmAd said . . . Quote Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128567 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.