BleepingComputer.com: Site Updates

Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Site Updates They want to add their own links

#1 User is offline   RADIUM-V Interactive 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 159
  • Joined: 09-December 06
  • Gender:Male
  • Location:Somewhere East of Where You Are (think about it)

Posted 12 July 2007 - 12:24 PM

In my latest website I'm building, the owners of the site want a page where they can have links to a photo album site - the links would probably be updated every few days or so, and they'd like to update them on their own without having to go through me every single time.

I know enough PHP to get by, and I'm fluent in HTML and CSS. Basically, I need help in getting file access down - opening and editing a file on the server and saving the changes. That, and making the edits on a per-line basis so they can add and remove certain links when they need to.

Would anyone like to help me?

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,522
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 14 July 2007 - 09:30 AM

Create a file that holds all of the links. Usus PHP to dynamically build a web page that displays the links. Create another page that they can use to add or remove links. File access is done on the server side using some scripting or regular programming language to take the input from the form. It's pretty easy. Oh, and I suppose you will want it behind a password protected page of some sort also.

What specifically do you need help with? There should be dozens of code samples that you can copy available on the web.
PHP-Write to File
PHP-Read a File
PHP-Reading from a web form

That should more than get you started.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users