Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-07-2012, 05:13 PM   PM User | #1
elite-fusion
New Coder

 
Join Date: Sep 2009
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
elite-fusion is an unknown quantity at this point
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
elite-fusion is offline   Reply With Quote
Old 06-07-2012, 08:16 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
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.
mlseim is offline   Reply With Quote
Old 06-07-2012, 08:19 PM   PM User | #3
elite-fusion
New Coder

 
Join Date: Sep 2009
Posts: 47
Thanks: 3
Thanked 0 Times in 0 Posts
elite-fusion is an unknown quantity at this point
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...
elite-fusion is offline   Reply With Quote
Old 06-07-2012, 08:57 PM   PM User | #4
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
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.
mlseim is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:45 AM.


Advertisement
Log in to turn off these ads.