Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Document creation via online

    Hey Guys, I am more of a noob when it comes to PHP and stuff. I do have a question tho.

    I need to create about 40-45 documents and I have a template which has Header and Footer, but I want to do this type of thing online rather than in Microsoft Word because I cant get it just perfect in there, but I know with HTML and stuff, I would be able to.

    I figured this would be more along the lines of simple/basic PHP and maybe there is a script online that I can purchase or whatever...

    So I want to be able to come to the webpage, type my document with a qwerty editor online and when i get Print, it opens up a page with my Header and Footer and the body of the document will be what I typed.

    Any ideas guys ? Please help me out. Thanks

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,387
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    This is easy to do ... I should add, if it's just plain text.
    If you are looking for a rich text editor (colors, fonts, sizes, etc) within the
    text editor, that makes it a bit harder to do.

    With PHP, you display the header then "include" the text file, and finish with the footer.
    Whatever text file you include is inserted into the web page. How it renders depends
    on whether it's plain text, or needs to be converted from RTF to CSS/HTML tags.

    In addition, with FPDF, you could actually generate a real PDF file from your text files.
    It happens on-the-fly, online using PHP.

  • #3
    New Coder
    Join Date
    Sep 2009
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mlseim View Post
    This is easy to do ... I should add, if it's just plain text.
    If you are looking for a rich text editor (colors, fonts, sizes, etc) within the
    text editor, that makes it a bit harder to do.

    With PHP, you display the header then "include" the text file, and finish with the footer.
    Whatever text file you include is inserted into the web page. How it renders depends
    on whether it's plain text, or needs to be converted from RTF to CSS/HTML tags.
    Well yes I would want it to be a text editor WYSIWYG type of editor. Is there anything like this online or do you know anyone who would be willing to help create something like this by any chance? As I said im a bit of a n00b when it comes to PHP...in return, I can provide some free webhosting...

  • #4
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,387
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    This is a stand-alone WYSIWYG text editor:
    http://www.tinymce.com/

    It's designed to be installed on a website and integrated into custom or handmade CMS sites.

    You could try installing that into your site and create a simple test page.
    For now, don't worry about where the text gets stored, just get the interface
    working. They have some scripting examples as well.

    It's two parts, because you may want to handle images also. A part for the
    text editor, and a part to upload images that get used in your text files.


  •  

    Posting Permissions

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