Current location: Hot Scripts Forums » Programming Languages » PHP » need help writing script to let user edit thier html or php files


need help writing script to let user edit thier html or php files

Reply
  #1 (permalink)  
Old 12-10-03, 11:07 PM
pinochio53 pinochio53 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Question need help writing script to let user edit thier html or php files

need help in writing a program that can let a user edit a php or html file from thier browser
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 12-11-03, 12:26 AM
zero's Avatar
zero zero is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
use reamwave.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 12-11-03, 02:05 AM
pinochio53 pinochio53 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by zero
use reamwave.
do you mean Dreamweaver, I do use dreameaver, but I want a script that will let people edit thier source online without having to download any programs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 12-11-03, 03:28 AM
gwx gwx is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by pinochio53
do you mean Dreamweaver, I do use dreameaver, but I want a script that will let people edit thier source online without having to download any programs.
You can use Dreamweaver to code scripts. Dreamweaver's point and click database / scripting server behaviors lets you do just that.

Why not check out the server behavior's panel and take a look at Dreamweaver's help?

The enduser does not need to download programs, just the php/asp/coldfusion application. ( in other words, close to nothing )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 12-11-03, 07:00 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
Originally Posted by pinochio53
do you mean Dreamweaver, I do use dreameaver, but I want a script that will let people edit thier source online without having to download any programs.
simply you need to open the file you want to write and include it in a text area like this :
PHP Code:

echo'<textarea rows="20" name="S1" cols="20">'.$file.'</textarea>'
$file contains the file after it's been opened for writing ..
and after the form is submited, write the file on it ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 12-11-03, 01:51 PM
pinochio53 pinochio53 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
do I want to make that a file by itself or put it in the file I want to edit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 12-11-03, 03:19 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
Originally Posted by pinochio53
do I want to make that a file by itself or put it in the file I want to edit.
you said :"need help writing script to let user edit thier html or php files" ?? so I think it's editing the same file not creating a new one ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 12-11-03, 08:39 PM
pinochio53 pinochio53 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
I want a standalone file that lists the files in the directory and lets the user edit the php and html pages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 12-11-03, 09:34 PM
RynO RynO is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Here's a script I made for reasons I would rather not get into. It's kind of messy and contains no comments, so... yeah. It can read, edit, delete, rename files on a server. Fairly simple stuff.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 12-11-03, 11:05 PM
pinochio53 pinochio53 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
"Notice: Undefined variable: PHP_SELF in c:\inetpub\wwwroot\edit.php on line 56"

That's the error I get when I run it. The save doesnt work either.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP in HTML Pages? ZeoFateX PHP 19 01-04-06 07:42 PM
PHP script to parse HTML Skeleton Man Script Requests 2 10-05-03 09:41 PM
writing Excel files through PHP pk_jsp PHP 4 09-28-03 06:42 AM
Ad management and optimisation using php surebetdmg PHP 0 08-28-03 07:45 PM
Script for picking the first HTML file out of a directory (with sorted HTML files) jelteveld Script Requests 0 08-16-03 02:30 PM


All times are GMT -5. The time now is 10:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.