Jump to content

writing to file on server, beginner help


Jen

Recommended Posts

Hi all,
I am trying to teach myself a little PHP so I can put a news box on a website I'm designing.  The news will be just a simple paragraph, not a blog, and it needs to be updated periodically by the site's owner.  I plan to store the news content in a separate news.txt file on the server, and just use an include() to put the content onto the web page.  What I need to know is how to use a form to input the news content and then write it to news.txt.
Thanks!
Link to comment
Share on other sites

Jen, perhaps you'd be interested in a script I wrote not too long ago.

It's very simple, and was originally used for a 'website notepad.' However, it'd be perfect for you.

If you're interested, I'll send you the zip file with the files and instructions.
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.