Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-10-2008, 01:12 PM
|
#1
|
|
Member
Registered: Nov 2007
Posts: 31
Rep:
|
php text editor
Hi all i'd like to ask you to give me a simple text editor script. I mean something like the one we use to post here or simpler cause all i need is the text manipulation. I'm using php with mysql and i store the text in a field. Do i need anymore fields for the format? Thank you.
|
|
|
|
04-10-2008, 05:07 PM
|
#2
|
|
Member
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 366
Rep:
|
Have you tried Kate? (Just asking)
|
|
|
|
04-10-2008, 05:53 PM
|
#3
|
|
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,375
Rep: 
|
There are quite a few out there, search on google for "wysiwyg rich text editor html"
One that is used a lot is TinyMCE
|
|
|
|
04-11-2008, 03:29 AM
|
#4
|
|
Member
Registered: Nov 2007
Posts: 31
Original Poster
Rep:
|
thx i'll give it a shot, but i'd really appreciate it if someone could give me the php script, cause i'm really interested in learning how this is done.
|
|
|
|
04-11-2008, 04:10 AM
|
#5
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
I don't understand what you want?
Do you want a text editor to edit PHP code?
Or do you want to create a webpage with a text input field and a button and when you click the button it writes the text in a database? If so, search for a PHP/MySql tutorial.
Some links; the original version (no longer available) of the first one is how I learned
http://dev.mysql.com/tech-resources/...dws/index.html
http://www.webmonkey.com/programming...tutorial4.html
|
|
|
|
04-11-2008, 08:32 AM
|
#6
|
|
Member
Registered: Nov 2007
Posts: 31
Original Poster
Rep:
|
i want the second one thx.
|
|
|
|
04-11-2008, 08:44 AM
|
#7
|
|
Member
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76
Rep:
|
I've made a couple of basic ones before, all following the same basic idea: Search the input string for different pre-defined things (such as \n) and replace it with what you want stored (such as <br />). If I could dredge up the code I used, I might give you an example, but basically you just need some search & replace functions. Look up ereg, and various other regular expression functions.
|
|
|
|
04-11-2008, 08:47 AM
|
#8
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 12,003
|
Quote:
Originally Posted by lamtab
thx i'll give it a shot, but i'd really appreciate it if someone could give me the php script, cause i'm really interested in learning how this is done.
|
Check out http://www.hotscripts.com. Lots of PHP examples there to get you going.
|
|
|
|
04-11-2008, 11:52 AM
|
#9
|
|
Member
Registered: Nov 2007
Posts: 31
Original Poster
Rep:
|
thank you all. i guess i have to do a lot of research. i'm a novice you see 
|
|
|
|
04-11-2008, 12:18 PM
|
#10
|
|
Member
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 366
Rep:
|
May be you should ask this on specialized PHP forums... that's what I do 
|
|
|
|
04-11-2008, 08:09 PM
|
#12
|
|
Member
Registered: Jul 2004
Distribution: Ubuntu
Posts: 385
Rep:
|
Hey there,
I've done this with http://www.wyzz.info/
It's pretty good filled with features and you can configure to remove features as well. The one I got running is not a 100% up to the task. Mainly because the html the wyzz creates messes up parts of the web page it's not supposed to. I haven't figured out a way to solve that, if you come into that problem and figure out a way to solve that issue (maybe by using div tags, or something) let me know.
Hope that helps,
vxc
|
|
|
|
04-12-2008, 02:43 AM
|
#13
|
|
Member
Registered: Nov 2007
Posts: 31
Original Poster
Rep:
|
thank you. I really appreciate your help. maybe next time i can help you too 
|
|
|
|
04-12-2008, 07:17 AM
|
#14
|
|
Member
Registered: Nov 2007
Posts: 31
Original Poster
Rep:
|
wyzz did the job nicely. ty
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:41 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|