Home  |  Linux  | Mysql  | PHP  | XML
From:Shlomi Fish Date:Mon Mar 15 08:10:58 2010
Subject:Re: CGI-BIN Help/Advise - editing a file - HOW ?
Hi newbie01!

On Monday 15 Mar 2010 09:39:41 newbie01 perl wrote:
> Hi,
>
> 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.

That is doable.

>
> 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.

PHP is not recommended because one can easily write dangerous code in it:

http://www.shlomifish.org/open-source/anti/php/

Regarding writing CGI scripts, read the following:

* http://www.htmldog.com/ - to learn HTML.

* http://jdporter.perlmonk.org/cgi_course/ - to learn CGI .

* You may also wish to look at http://perl-begin.org/ for more Perl-learning
resources.

Then you may wish to take a look at http://search.cpan.org/dist/Mojolicious/
(which is self-contained) or a different web-development framework to ease the
writing.

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

That is doable.

Regards,

Shlomi Fish

> Thanks in advance.

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Interview with Ben Collins-Sussman - http://shlom.in/sussman

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next


Your recent visits
AW: CGI-BIN Help/Advise - editing a file - HOW ?
Re: Global scope
Global scope
Re: Global scope
Re: how to add support of Msql and CGI in Apache



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants