Jump to content

Very confused.


efm

Recommended Posts

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.