efm Posted December 12, 2007 Share Posted December 12, 2007 Can someone explain to me what fopen, fwrite, and fclose are for? Not sure if it helps, but I've attached that particular section of script as well. Why would that section be included in one version and not the next? [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
dsaba Posted December 12, 2007 Share Posted December 12, 2007 Can someone explain to me what fopen, fwrite, and fclose are for? http://php.net/fopen http://php.net/fwrite http://php.net/fclose Why would that section be included in one version and not the next? Why would we be able to read your mind on whatever it is your talking about? Quote Link to comment Share on other sites More sharing options...
efm Posted December 12, 2007 Author Share Posted December 12, 2007 Sorry, should've explained. The image shows the comparison of Beta 2 script (left) to Beta 3 script (right). The red part is what's different between the two, and the fopen.... section was removed in Beta 3. Thanks for the links, I'm reading about it now. Lots of terms I'm not familiar with... don't come from much of a programming background. Quote Link to comment Share on other sites More sharing options...
farkewie Posted December 12, 2007 Share Posted December 12, 2007 Well if 1 is BETA 2 and other is BETA 3 then thats why..... the whole idea of " new releases" is to change things Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 12, 2007 Share Posted December 12, 2007 The code in question is writing a configuration file in the admin area (that was just written to a different location by the lines immediately above the lines in question.) My guess would be that someone decided that you should only have one configuration file instead of having and maintaining two files with the same contents. Quote Link to comment Share on other sites More sharing options...
efm Posted December 12, 2007 Author Share Posted December 12, 2007 The code in question is writing a configuration file in the admin area (that was just written to a different location by the lines immediately above the lines in question.) My guess would be that someone decided that you should only have one configuration file instead of having and maintaining two files with the same contents. That makes perfect sense. So what I'm getting from the bit of reading that I'm doing is basically fopen would give the script access to a file, fwrite would write information to that file, then fclose would terminate access to the file. Am I close? Quote Link to comment 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.