Gossamer Forum
Home : Products : Others : Fileman :

Editing CGI Scripts?

Quote Reply
Editing CGI Scripts?
Hi,

I have setup FileMan 1.0 today, and am very happy that I can now update my web pages from
just about anywhere :-)

However, I have notice if I edit and save any of my CGI scripts with FileMan the are broken
in some way, and will not work. Is this a known problem, or is it just me ;-)

Either way, any help is greatly appreciated.

Bye For Now, Wimpy
Quote Reply
Re: Editing CGI Scripts? In reply to
ya I'm having the same problem
Quote Reply
Re: Editing CGI Scripts? In reply to
I had the same problem...what was happening was that Fileman was adding carriage returns to the end of edited files (which Perl really hates). Alex sent me the following fix and it works great now. I don't know if your problem is the same as mine was but here's what worked for me (thanks Alex!):
--------------------------------

To fix, just add:

$data =~ s/\r//g;

right after:

# Fix textarea tags.
$data =~ s,</TEXT-AREA,</TEXTAREA,ig;

around line 645.

--------------------------------
Quote Reply
Re: Editing CGI Scripts? In reply to
Hi!

How come you can edit CGI files anyway???


------------------
Alex Tutusaus
Atyc WebDesigns
http://www.webcamworld.com/