Nov 22, 2009

Php Text Editor

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > PHP Programming

Php Text Editor

coolcat50
Is there any possible way using XML and PHP that you could create a text editor that can save files in your documents and also make a hotlink to your site. Much like a online notepad. I would like to know how I would make on of these and whether or not MySQL or XML would be a good language to use for storing data.

My current idea deals with only PHP and iframes. It really isn't an editor though, more like a notes page. I would like a way though to be able to create a database with info stored from the PHP script which and be able to save to your hard drive.

Also, is it possible to use a combination of Javascript and PHP to create a scientfic calculator.

Thank you for reading.

Comment/Reply (w/o sign-up)

shadowx
Well i think it would be possible to create the online text editor, the problems arise when having rich text options like underlines and font colours as to do that you wuld need a lot of JS and then need to learn how to format it correctly for text-editing programs to be able to read it.

For a start you would obviously need a form with the filename and then the file content fields and then the PHP would have to check it for malicious codes and such but still allow all characters to be used. You can then save it either as a file on the web server or in a database. Then you an use JS or PHP to prompt the user to download the newly created file.

It wouldnt be too difficult but it wouldnt be able to automatically save the file to your "my documents" folder, the user would have to manually download it. Google has a very good version of this type of system, i think its called "google documents" or something, you can edit almost any file including word documents and excel files online and access them anywhere and download them. Very useful!

As for the scientific calculator it would be possible so long as you know the formulas, then you can just use JS to carry out the calculations, it wouldnt be hard so long as you know the formulas of the different calculations.

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Php Text Editor

  1. Best Php And Mysql Editor For Noobs - anyone any php or mysql editor that is good for noob (11)
    hi there guys, from my previous posting, i am a noob in php and mysql programming. I want to know
    if there are any php and mysql editors which are best for me as a noob. i appreciate your kindness
    ...
  2. I don't use notepad for my php programming anymore - I use Crimson Editor (27)
    I got it free on a MicroMart CD, but i'm sure you could find it on download.com It's a
    great alternative....
  3. Php - Fetching Random Line From A Text File - and displaying it using AJAX/iframe (0)
  4. Which Is The Best Php Ide Also With A Debugger Support - I wanted a PHP editor with syntax suggestions and debug option (1)
    I have been developing PHP websites and do the PHP editing on a text editor and i have a really bad
    time when it comes to debugging my PHP code. When i use include_once('x.php') i should also
    get syntax suggestions when i use the methods that are available in the x.php file. I also want
    debugging support. People suggest a good PHP edito rfor me....
  5. Dynamic Image / Signature Generator - a simple code to change text on an image (12)
    In search of dynamically changing quote, saying or all other types of text on an image I came across
    a code that I have modified to fit my initial usage. This procedure requires two files and short
    knowledge of PHP. If you are familiar with Trap17's sig rotation code you will understand this
    procedure very fast. Code 1: dynamic_sig.php (you can rename this to index.php and you'll see
    at the end why) Code 2: a simple text file named anything (I will call it name.txt ) Code 1
    CODE header("Content-type: image/png"); $image = imagecreatefrompng("../i...
  6. I Just Wrote A Script For A Php Text Editor! - (8)
    Yes, I just wrote out a script for a PHP text editing program. It is very basic but I would like to
    be able to actually use this and update it. First, I need version 0.7 to be proofread. It will be
    upgraded to 0.8 after closed beta, 0.9 after open beta, 1.0 when ready. I would love to have some
    people help with this project. Right now it is a simple PHP script and HTML form. Here is the
    current script. I would like it to be proofread. $fileName = "$_REQUEST "; $fHandle =
    fopen($fileName , 'w') or die("Can't write file."); $fContent = "$_REQUEST "; fwrit...
  7. [php]simple Flat File Text Manipulator - Example on how to use forms to write to files in PHP (3)
    I made a simple flat file text editor, that can show you probably how simple it is to use forms with
    php and write that data to file. This example has 2 files, submit.php, and postit.html. Submit.php
    is used to write title, and some text, and add html tags, and paragraph tags where new paragraphs
    are. Here's the file with comments. I think that HTML really doesn't need some more
    explaining. CODE Title: Text: if (@$_POST =="" || @$_POST
    ==""){      echo "Enter text to save!"; } else {      //this is path to file      $filena...
  8. Forms, Text Files, And Php For A Signature Generator. - Help a little. (1)
    Hello everyone! I am in need of some code a for a signature generator I am making. I am using
    BuffaloHELP's code for the php file, now I am trying to improve that code by making a form in a
    html file that will have the user say what is on the sig! But now, I need help getting the form data
    that is posted by the user to get into that sig! There is a file, sig.txt, where that tells the php
    file what text will go on the sig. But how can I make the form data in the html file go into the
    text file so it will go onto the sig? You might want to read BuffaloHELP's code. ...
  9. Help Php: How To Load String From Text File (solved) - Loading string from text file when you click on your link (9)
    I learned the way to load other files with the code posted on this forum. Now i wanted to try
    something for my side menu. I am calling this a string, --> $tekst , maybe it's called
    something else i'm not sure Now let's say i have a file called details.txt In that file i
    would like to have something like this $detailsaboutphp1 = ("details details details 1");
    $detailsaboutphp2 = ("details details details and even more details 2"); How to make a code that
    loads those $strings on click of a mouse. When we tried to load external file we used this:
    ...
  10. Editor For Script - Question (7)
    Hi all I want make and design a news script , i need web base editor like ( HTMLAREA v3 ) or Higher
    ! Did You work with this kind of scripts ? I tired to use htmlarea v3 for my scripts , i want
    another this kind script , for my its not important its free or not ! if you work with this kind of
    script please help me to choose best web base editor thanks all /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> ...
  11. String/text Formatting? - (4)
    right i was wondering if someone could help me with this: I notice on this site if i make a topic
    for example WAppY rOCks WaP, it will come out like Wappy Rocks Wap. I also want to do this to my
    forums, can anyone give me the code to format a string of text in this way? THANKS IN ADVANCE ...
  12. Simple Text Counters - Counters i use on wap sites ;-) (15)
    First create a dir "counters" in root add to it dailyhits.txt, hits.txt, online.txt an CHMOD 0777,
    place this on index: CODE //online counter $tim = 120+time(); $time = time(); $f =
    "counters/online.txt"; $nusk = file($f); $sk = count($nusk); $in = $HTTP_USER_AGENT.$REMOTE_ADDR;
    $fp = fopen($f, "w+"); for($i=0; $i $time) { fwrite($fp,$nusk ); }} fwrite($fp, "$in|$tim|\n");
    fclose($fp); $xfile=file('counters/online.txt'); $onlinecount=count($xfile); echo "-Online:
    $onlinecount "; //day hits counter $fn = "counters/dayhits.txt";     $fp = fopen($fn, "a+");  ...
  13. Php Editor? Do You Know Of Any? - (30)
    Hi, I'm looking for any easy way to edit a php page. I'm really new to this programming
    language, and I don't have a lot of time, so I'd prefer if I could find a WYSIWYG PHP
    editor. Do you guys know of any. Thanks....
  14. Problem With Firefox Text Alignment - (9)
    I just have a really simple annoyin prob with my site which I have only just noticed. If i view the
    site in IE the alignment is fine but when in Firefox it isnt properly aligned. The user searches the
    db and it returns a table with the results.. PHP Code: CODE echo ' '; echo
    'Artists beginning with '.$alphaletter. ' Artist '; IE reads this as the
    echo "Artists.. " bit within the table but Firefox puts the "Artists.." part outside and so then its
    tight against the left side instead of indented. I have tried CSS but it doesnt s...
  15. Good Editor - its nice and suits for Php& all (1)
    this is a very nice editor. try this for Php and all other web designing languages too. Php
    Designer 2005 /cool.gif' border='0' style='vertical-align:middle' alt='cool.gif' /> ...
  16. I Need A Php Editor - I need that for image editing (1)
    I need a php editor whichc can be used for the image editing like FrontPage for HTML. Can any body
    give a link for that...
  17. Garbage Text - when i added php includes to a page (2)
    When i added php included to a page, it produced this really really weird garbage text befor and
    after the table i have on the page. I was wondering if this has ever happened to anyone else. Not
    sure what's producing the gargabe, i mean it's only a couple of characters, and i've
    gone through everything and can't find anything. The other thing is that i can, and have gotten
    rid of it by getting rid of the text befor the php include code which isn't a solution becasue i
    want to keep the meta's and title on the page. this is what the garbage looks li...
  18. Php Editor - Which one you prefer? (11)
    Well, since I'm starting to learn some PHP programming and editing, I need some recommends about
    what program should I use, and if possible what's advantage and disadventage of the program, how
    easy to use it, the interface. etc Some of my friend, encourage me to use Dreamweaver, since I'm
    new and will not do much in it....
  19. Write Random Text To Image - PHP script help! (5)
    I'm trying to create a script that writes text to an image. CODE header("Content-type:
    image/png"); $_phrases = array( "Test 1", "Test 2", "Test 3", "Test 4", "etc." ); $_rand_phrase =
    $_phrases ; $_image = imagecreatefrompng("gmail.png"); $_user_width =
    imaagettfbbox(9,0,"tahoma.ttf",$_rand_phrase); $_x_value = (200-($user_width + 113)); $_color =
    imagecolorallocate($_image, 165, 164, 164); imagettftext($_image, 9, 0, $_x_value, 16, $_color,
    "tahoma.ttf", $_rand_phrase); imagepng($_image); imagedestroy($_image); I can't see what
    I'm doing wrong.. I...



Looking for php, text, editor

Searching Video's for php, text, editor
See Also,
advertisement


Php Text Editor

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com