By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

Editing source files via textarea in the browser

eragon
100+
P: 431
( 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
Share this Question
Share on Google+
4 Replies


P: 5
( 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
Expert 5K+
P: 5,821
Changed thread title to better match contents.
May 24 '07 #3

Atli
Expert 5K+
P: 5,058
( 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
100+
P: 431
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

Post your reply

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