Hello everyone,
I'm an absolute newbee as regards to php. Can anyone tell me how to save the content of a text box in a form to a file? The content in the text boxes will be html code that will be used as a header and footer. My primary language is java and a little c++ but I have not converted to the php language yet - just skimmed the surface. I would be gratefull if someone could maybe show me a code snippet or just give me a hint on how this could be done with php.
Thanks John
You can work with files using PHP's filesystem functions, which are well documented in the manual. 🙂 The one you'll want to start with is fopen() which gives you a pointer to the file, much like an fstream object in C++.