473,795 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Editing source files via textarea in the browser

eragon
431 Contributor
( This discussion was started in the JavaScript forum, i found out that PHP will do what i need, now i need to find out how to do it... )

Hey peoples! i need help... alot... if what i am trying to do is possible. i am looking for a PHP or other script of the sort that will allow mt to edit my site while still online, without having to edit it on my computer and upload it. I could make a form to edit the page, but it cant save, so, thats where i need help. does this method exist? (Yes, it does, how else are these forums created? i put stuff in this text box, it shows up in the forum...) Please share your knowledge!!!
Now i need to find out how to make the PHP page... Using notepad... Cause thats all i use... send me your scripts and/or knowledge!!!

Yours Thankfully,

Eragon Eisert
May 23 '07 #1
4 1458
phpmike
5 New Member
( This discussion was started in the JavaScript forum, i found out that PHP will do what i need, now i need to find out how to do it... )



Now i need to find out how to make the PHP page... Using notepad... Cause thats all i use... send me your scripts and/or knowledge!!!

Yours Thankfully,

Eragon Eisert

Sounds like you could just use a better editor like pspad or even cpanel where you can edit your files from the file manager without downloading them.

If your looking for a wysiwyg editor just google 'php wysiwyg editor'
May 24 '07 #2
pbmods
5,821 Recognized Expert Expert
Changed thread title to better match contents.
May 24 '07 #3
Atli
5,058 Recognized Expert Expert
( This discussion was started in the JavaScript forum, i found out that PHP will do what i need, now i need to find out how to do it... )



Now i need to find out how to make the PHP page... Using notepad... Cause thats all i use... send me your scripts and/or knowledge!!!

Yours Thankfully,

Eragon Eisert
Are you simply trying to edit the contents of a HTML page?
If so you should check out the fopen, fread and fwrite functions.

With them you could read the HTML file into a textarea, have your user (yourelf) edit the contents of the textarea and post it, and then have your PHP code override you old HTML file.

Check out php.net for a description for those (and all other) functions.

If you dont have any PHP experience, I would reccomend reading some PHP tutorials, just to get the basics.
This one looks good
May 24 '07 #4
eragon
431 Contributor
i was just looking for a simple form, for example, i have a text box for article title, another for date, another for the author, and a text area for the article contents. this form should be loaded on another page on my site and edit the news page on my index.htm (or index.php if i convert) page. i found a php script i like, but i cant preview *.php files on my computer so i cant see if it works right... is there a way to fix this?
May 24 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2406
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script here http://www.pbrown.com/research/test1.php to see the formatting issues Formatting Issues
0
1793
by: Bob Kaku | last post by:
I'm trying to create a text editing and updating capability to help someone who wants to maintain content on a web page without having to know any HTML or use a web authoring tool and FTP'ng the contents. I've already created a screen whereby the person can create new content with a PHP program that inserts into a MySQL table. But, I'm having a little trouble in creating the edit/update functionality. Can somebody help me out? Thanks. ...
10
12073
by: Mark | last post by:
Sorry, I'm a newbie to php ;) I was thinking about using php to write the script file, something like: <script type="text/javascript" src="http://insert_url_here.com/myScript.php"></script> The php file then echo'ing the source code. If that works then how can I stop the php file being loaded directly, that is the user browsing
4
4143
by: hoke | last post by:
I want to display plain text files in the browser. The files contain html and javascript and have a .txt extension. This works fine with files with just html. Unfortunately when showing files with javascript, I get an "error on page" warning and the page is not displayed. I suppose that when Internet Explorer discovers a <script> tag he starts to interpret it. This is not what I want. After all Internet Explorer is a browser and not an...
2
1680
by: Lindsey | last post by:
Hi I am wondering if anyone can help. We have a form used by a client to add news to a database, however at the moment the text edited is bog standard and the user can not bold or color the text. I have seen in email applications such as hotmail and yahoo, that when you create a new email there is a menu above which when you highlight
3
1061
by: Dennis Marks | last post by:
There are times that I am using another person's computer who has no knowledge of updating HTML and does not even know if he has the necessary programs to do the FTP. I may see a minor problem with my site and would like to change it on the fly. What I would like to know are the answers to the following questions. 1. Is there any way to display unformated HTML within a web page without using the browsers source facility?
15
3018
by: Michael Hill | last post by:
I saw a site that looked pretty good, but I could view the source. 2 questions: 1) how can I do the same for my site 2) any way to get around this? Mike
5
2236
by: Schraalhans Keukenmeester | last post by:
I want to build a very basic online text editor, to allow customers to modify their own sites' html content using a simple form with textarea element. I read the HTML file like so: <?PHP function EditText ($filepath) {
18
34847
jhardman
by: jhardman | last post by:
Have you ever wanted to upload files through a form and thought, "I'd really like to use ASP, it surely has that capability, but the tutorial I used to learn ASP didn't mention how to do this."? Have you looked around trying to find simple solutions but didn't want to wade through pages of complex code? Have you balked at paying for premade solutions that are probably overkill for your particular project? I'd like to walk you through the...
8
2180
by: ahilar12 | last post by:
Hi experts, I have a form with many textboxes,listboxes in php.I have a edit button to edit the values in the form.once i click the edit button the existing values should be displayed so that the user can edit those particular values and also that should be updated in the mysql database.kindly reply me as early as possible. Thanks
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10436
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.