Re: Frontpage, CGI, perl and uploading
From: Andrew Murray (SPAMadBUSTERmurray_at_iinet.net.au)
Date: 10/17/04
- Next message: Andrew Murray: "Re: front page missing after upgrading to office 2003"
- Previous message: Andrew Murray: "Re: Frontpage, CGI, perl and uploading"
- In reply to: Richard Bell: "Frontpage, CGI, perl and uploading"
- Next in thread: Ronx: "Re: Frontpage, CGI, perl and uploading"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 17 Oct 2004 11:50:36 +0800
You need to set the file permissions (are you on a Unix server or Windows?)
i on Windows, I expect you need to have the perl interpreter running on Windows,
if it is unix, you need to set the file permissions, the common one is chmod 755.
Remember open perl scripts in Notepad only (or other pure ascii text editor - FP
editor is not suitable for this) not in Wordpad, else you'll screw up the
text-only format.
Publishing cgi files by FTP is probably the best way, but you risk messing up the
FP extensions if so.
"Richard Bell" <rbell01824@earthlink.net> wrote in message
news:8943n01uiroj5rsgmq8cnrmpl7t6rfitnc@4ax.com...
> I'm new to FrontPage and have encountered a rather strange problem I
> don't understand. Here are the symptoms:
>
> I've created a simple page (has a form with a submit button whose
> action points to /cgi/test.cgi).
>
> /cgi/test.cgi is a perl script that simply writes a trivial web page (
> "hi dude").
>
> I publish the page and cgi
>
> When I click on the submit button I get a server 500 error
>
> Now here is where it gets strange ... if I open the published
> /cgi/test.cgi file on the server and then save it (no edits made) and
> try the submit button again all is well!
>
> I recall from some years back that there is a difference in Windows
> and Unix flavors about the last character in the file (a 0x00 if I
> recall). I'm just guessing that by opening and then closing the the
> /cgi/test.cgi file I'm 'Unixifing' the /cgi/test.cgi file so now
> things work. The question is what do I do on the FrontPage side to
> tell it that it's publishing to a Unix system so that it publishes
> Unix compatible files?
>
> Thanks.
- Next message: Andrew Murray: "Re: front page missing after upgrading to office 2003"
- Previous message: Andrew Murray: "Re: Frontpage, CGI, perl and uploading"
- In reply to: Richard Bell: "Frontpage, CGI, perl and uploading"
- Next in thread: Ronx: "Re: Frontpage, CGI, perl and uploading"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|