cgi

解决“您试图从目录中执行CGI、ISAPI 或其他可执行程序...”的问题

一世执手 提交于 2019-12-26 09:37:57
解决“您试图从目录中执行CGI、ISAPI 或其他可执行程序...”的问题 本人今日在实验室调试一网页,使用WIN2003 INTERNET信息服务(IIS)管理器,在建立一个网站虚拟目录,结果浏览网页时出现错误,错误提示信息如下: --------------------------------------------------------- 该页无法显示 您试图从目录中执行 CGI、ISAPI 或其他可执行程序,但该目录不允许执行程序。 -------------------------------------------------------------------------------- 请尝试以下操作: •如果您认为该目录应该允许执行访问权限,请与网站管理员联系。 HTTP 错误 403.1 - 禁止访问:执行访问被拒绝。 Internet 信息服务 (IIS) -------------------------------------------------------------------------------- 技术信息(为技术支持人员提供) •转到 Microsoft 产品支持服务并搜索包括“HTTP”和“403”的标题。 •打开“IIS 帮助”(可在 IIS 管理器 (inetmgr) 中访问),然后搜索标题为“配置 ISAPI 扩展”、“配置 CGI

What is the issue with this CGI/HTML/Perl program? [closed]

我的梦境 提交于 2019-12-25 18:28:02
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I am using XAMMP Apache Server. There is a text file named 'animal.txt' containing the name of an animal on each line, with a basic description. I am trying to write a Perl program, using HTML and CGI. The aim of the program is to have the user search an animal name, using a HTML form. This will

Include JavaScript in Perl-CGI generated page

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 16:54:09
问题 I was trying to add a java-script to a page which is generated on the fly. I tried this, but it seems like it is not working. <SCRIPT SRC=\"sorttable.js\"></SCRIPT> I always have to inline javacode along with the html for it to work. Any clues ? 回答1: qq() is the equivalent of "" , but with matching delimiters. It is going to be your friend if you are outputing HTML or JavaScript. print qq(<script type="text/javascript">alert("The world is my oyster");</script>); Note that you don't have to

MySQL authentication using script without supplying password in plain text

℡╲_俬逩灬. 提交于 2019-12-25 16:08:58
问题 I have written a CGI script using bash which executes a MySQL query . Since my purpose is to automate a task , I had to put MySQL credentials in the script only with the password being in plain text . The issue for me is the server in question which will execute the script is a production server with outside access . I am looking for a solution where the automation remains but without supplying the password in plain text . PS: One solution for me is to enforce strict permissions by removing

rpy2 works in console, but cannot be imported by website ( with error “R_isMethodsDispatchOn”)

…衆ロ難τιáo~ 提交于 2019-12-25 14:22:50
问题 I developed a web tool using CGI, python and apache. The CGI file was written by python, and it calls R functions through rpy2. The web tool works well on my personal computer. Then we are trying to set it up on the server (System: CentOS release 5.7). Since the version of python and R were old on the server, we installed latest Python and R and also rpy2 on the server(Python version: 2.7.8, R version 3.1.1 (2014-07-10), rpy2 version: 2.4.3). But the web tool meet problems when it tries to

Strange behaviour with CGI file

﹥>﹥吖頭↗ 提交于 2019-12-25 09:36:16
问题 I've a small project allmost finished. In it, I use some .cgi files in which I make communication between a microcontroler and a webserver. The problem is the following: If I use this code the project works fine: #!/bin/bash ./moveRight echo "Status: 204 No Content" echo "Content-type: text/html" echo "" but when I use tjis code, nothing happens: #!/bin/bash mkdir /tmp/stream raspistill --nopreview -w 640 -h 480 -q 5 -o /tmp/stream/pic.jpg -tl 100 -t 9999999 -th 0:0:0 & chmod 777 /dev/ttyAMA0

How to handle massive computation on websites? Web workers or CGI?

懵懂的女人 提交于 2019-12-25 08:47:42
问题 I've written a JavaScript-based Website that is able to enter, edit and solve Nonograms. As you may know, solving a nonogram is an NP-complete problem. My first attempt was pure (single threaded) JavaScript. But on larger nonograms, Chrome showed its BSOD and killed the JS script after a few minutes. Next attempt was to use Web Workers. I split the solving algorithm so that each worker gets one row/column to solve and returns the result. This was an improvement and it was able to solve medium

How to put a picture in HTML using CGI Perl?

心已入冬 提交于 2019-12-25 08:01:30
问题 I am creating a very simple HTML form. I have included the form in the CGI file. I am using perl scripting. I have tried to include a picture in my form using the following CGI script: print "<img src=picture1.jpg style=width:600px;height:300px;>"; The problem with this is that the picture in the form does not show, but I don't get any errors and everything else works fine when I access the form from a browser. Screenshot of the problem 回答1: From looking at your screenshot, I would guess that

Turning HTML Results Page into PDF and Downloading in CGI file

只谈情不闲聊 提交于 2019-12-25 07:24:16
问题 I am working in PERL and I have an html results page that displays perfectly. I want to add a button that makes this html page a pdf that downloads onto your machine. Below is the code that generates the html page. fileFH is generated in the CGI code. sub searchResults { my $data = shift; my $file = "$OUTFILES/$data.html"; open(my $fileFH, '<', $file) or return "Can not find file\n"; print $cgi->header(); while (<$fileFH>) { print qq($_); } close($fileFH); } 回答1: If you are open to an

Why doesn't CGI::Sessions work?

我是研究僧i 提交于 2019-12-25 07:13:01
问题 I have two files, one is the login from which I get user credentials and I want to forward the user to another page if he passes authentication using CGI::Sessions. The problem is that I am missing something in the hello.pl file. I looked online for code examples but couldn't find any with two or more files. What should I put in my code in hello.pl in order to redirect using sessions so the variable username can be pulled out from hello.pl login.pl: 1 #!/usr/bin/perl -wT 2 use strict; 3 4 use