Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: editting a webpage

  1. #1
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default editting a webpage

    Is the a way of letting some one edit a live webpage from the internet.
    I only want the body to get editted. I dont want to have to have a DB

  2. #2
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    You mean, allowing someone, with the appropriate rights of course, to edit the website without using a database? Of course, you can use PHP to edit flat HTML files...
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  3. #3
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes I want some one to beable to edit a page how do I make that happen and what is a flat file?

  4. #4
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    First of all, you'll have to learn an in-depth amount of PHP (Or ASP, but personally, I prefer PHP). It's a server-side language that allows dynamic functions to be added to normally, unless aided with client-side scripting like JavaScript, undynamic websites. I suggest going to the library and getting out some books on it, googling, and then starting with some simple scripts before you tackle a project like a CMS (content management system), which, depending on the intensity, may take a lot of experience and/or knowledge.

    If you have any questions in regards to PHP, ask them in the PHP section of this forum.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  5. #5
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I seen a post you made CMS Questions - Just Brainstorming Why cant I use that. I would still need a bit of help understanding but seem like what I want to do "I think" Im not looking for full proof security just a way to edit a webpage

  6. #6
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Ok, well, here are some main points you'll want to learn in PHP, then:

    1. Login/logout: you may not need top-level security, but a simple login using sessions would be good.

    2. Opening html or text files with php and then rewriting them with new information.

    3. Simple PHP statements: if, else if, else; while; and for. Also, commonly used PHP built-in functions.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  7. #7
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Why cant I use that.
    Because you said in the first post:

    I dont want to have to have a DB
    There a re a few ways to do this, but a lt depends on what you are exactly trying to do. I understand "edit a web page" but what is being edited? A calendar of events? News and information? a newsletter? What exactly, and how often? Is this only on one page or on multiple pages? THese answers will help us help you get just what you need.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  8. #8
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What being edited is just a plain webpage with text, possably pic and links. no navication type bar, or menus. below is basicly my wish.

    Something like this post to thread box would be cool

    When things drip hes here to help. you can find someone else over at this link when you just have to have things done right.
    See how its got the text, image, and link thats how I would like it to work. I realize the thread reply box is DB driven, but something simular as far as how the edited page might work or look. I can add a way to upload images to a folder so the images would be on the net for those links. If text effects ie bold, unline and such isnt posable so be it.
    Plain text is fine. I could do a style for page maybe

    The main reason I need it NOT use a DB is because the hosting doesnt provide that I need it to be pretty self contained with in the site itself some how
    Last edited by big-dog1965; 02-18-2008 at 06:10 PM.

  9. #9
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So is there no way to do this or what?

  10. #10
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Do you have php or some other server side language available on the server? If so, let us know what language is available and we could probably write up something to take the contents of a form and write it to a file. I have done this in the past for a few of my friend's websites where they didn't have a database on there server, but had PHP installed.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •