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? 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. 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() 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. 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. 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 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 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 . . . Link to comment https://forums.phpfreaks.com/topic/217335-workaround-to-fwrite/#findComment-1128567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.