Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I upload CGI scripts through Front Page 2000? It won't let me!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Please could someone help.
I have front page extensions and upload my site through Front Page 2000.

I have tried to write a cgi script on the HTML backdrop, but it wont let me save it as .cgi without first itself adding the HTML headers (<HTML> <HEAD> etc...)so I can't start with #! line.

Alternatively, if I simply write a notebook version and save it in the cgi bin on my site, the test.cgi gets converted to test.cgi.txt. Trying to rename the file doesnt work either because it only shows as test.cgi. It only shows up as.cgi.txt, when I upload it and try to use it.

Is there a simple way, using Front Page, or will I have to do a separate upload using FTP for all the CGI scripts?

Thanks for your help.

Ian
 
FP has been created for windows platforms ... therefore it will work correctly with ASP pages only, as far as I know. If you want to use CGIs leave FP and use a FTP program to upload files.
 
You can configure FrontPage to use different editors for different file types.

GO to Tools->Options and click on the configure editors tab.
Now you can add cgi and pl as file types to use with Notepad.

Just click on Add and enter the fields as follows:
File Type: cgi
Editor Name: text editor
Command: notepad.exe

You will not be able to create the initial file with notepad, but you can create a blank file with Frontpage with the correct name, and then double click the file in Frontpage and it will open it in Notepad. Now when you add your code, and save it, it will save it back to the web via the Frontpage interface without adding any extra goodies to it.
However, if the file is on a *nix platform, it will not set the correct permissions and you will either need to connect with FTP or Telnet to set the correct permissions.

Regards,
Gerald
 
[ol]
[li]kill frontpage
[li]kill windows
[li]install linux
[li]install apache
[li]ftp your files
[li]now, you are much better off
[/ol]
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
I Agree with Tanderso!

I have tried every possible way to get FP and CGI to coexist - they just will not. FP will not upload in ascii only binary which kills cgi script dead. Even if you get the script uploaded OK then you will not be able to set permissions (chmod). FTP kills FP servers so don't think about that either! The only way you can do it is if you have physical access to yur server (upload the CGI by disk!) and have superuser access to chmod, if you are on a virtual hosting just forget about it.

I had the same problem - what my ISP did for me was to set up a seperate domain ( on a non-FP extended server to run my scripts on. Great - if you like having all your files scattered over two servers. i am now moving over to a plain apache server - FTP is a lot better in the long run (unless you never want an interactive site!).

Do'nt make the mistake I made - making a large website over two servers only to discover that I should have gone down the FTP road all along. FP does nothing that CGI's can not do 1000 times better.

BTW, I am just finnishing reading the Linux documentation - I'll be dumping windows very soon.

Best luck
 
FP can work with CGI. I use FP 2000 to do most of my website edits. But If I need to upload CGI scripts I switch to CuteFTP. I will sometimes do small edits using Arachnophilia 4.0 where I can view them as I edit, then when I'm ready I can either use FP or CuteFTP to upload. With uploads through CuteFTP it is possible to force the files to upload in ASCII or Binary.

Using all three programs together I have been able to create an online shopping cart using PerlShop. CuteFTP was needed to set the CGI scripts in place and to set permissions. It was not that hard to do. The only problem I ran into was the upload type. Pics must be uploaded as Binary and the CGI scripts in ASCII mode.

 
Yes, FP can work with CGI. I do it myself when I have to. FP just requires that you screw around with the &quot;external editor&quot; settings. Some companies insist on using FrontPage. But, if you don't have to, don't. Using Linux/Apache as your webserver, WordPad or Emacs as your editor, and FTP as your file transport method is the way to go. If you can, do that.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top