Current location: Hot Scripts Forums » General Community » Script Requests » CGI-BIN Help/Advise - editing a file - HOW ?


CGI-BIN Help/Advise - editing a file - HOW ?

Reply
  #1 (permalink)  
Old 03-15-10, 03:29 AM
newbie01.perl newbie01.perl is offline
New Member
 
Join Date: Mar 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
CGI-BIN Help/Advise - editing a file - HOW ?

Hi,

Can't find this in HotScripts, not sure if this exist already, maybe someone from the FORUM can advise.

At the moment, I have some sort of INI/config file that I edit manually via vi. These config files are "simple" delimited file that are used by some of the scripts running on the server.

I want to be able to the same thing via cgi-bin, can anyone advise where to start. Basically, I want to be able to display the contents of the INI/config file in some kind of FORM or web page and then allow the user to be able to edit and save it at the same time.

Any advise on where to start will be very much appreciated. Am not sure if I should be using PHP instead of CGI-BIN but I thought the latter would be simpler to do.

Being able to prompt for a username/password prior to editing the file would be a plus ... :-)

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-15-10, 02:36 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
For PHP - this is a good start: PHP: parse_ini_file - Manual

It will read the file in for you and then you can use that to build up the form and edit it.

As far as authentication, this is a simple approach: Authentication, Authorization and Access Control - Apache HTTP Server
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
Hello all, can you help me? K4ot1K Other Languages 2 01-23-09 05:23 AM
Calling remote file into a .php or cgi file. noy2014 PHP 1 05-31-07 08:32 PM
HTML code file update on the webserver using CGI script sujata_ghosh Perl 31 07-06-06 03:06 AM
Error message not getting displayed. sanjeet Windows .NET Programming 0 12-20-05 10:48 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM


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