473,414 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Editing source files via textarea in the browser

eragon
431 256MB
( 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 1441
( 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 Expert 4TB
Changed thread title to better match contents.
May 24 '07 #3
Atli
5,058 Expert 4TB
( 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 256MB
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
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...
0
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...
10
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> ...
4
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...
2
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...
3
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...
15
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
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 ...
18
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."? ...
8
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.