帮助我修复我的网站 - 该网站用于在底层图像地图上旋转主页图像

发布于 2024-08-20 00:52:13 字数 605 浏览 8 评论 0原文

标题:旋转主页图像(用于网站)- 不再有效。 我是一名物理学家/野生动物艺术家,有一个网站(我于 2002 年创建)来展示和展示我的作品。推销我的艺术品。我已经设置了一个底层(主页)图像地图 - 链接到:“老虎”、“豹子”、“鸟类”、艺术家信息等,每次用户导航时,叠加的图像都会发生变化(交换)到/从主页。每个主页的链接具有相同的数字坐标,并且页面之间的位置不会改变,只是图像发生变化。您可以在 www.queerryart.com 上查看我的空白页网站。注意下面的链接确实有效。

直到去年,该网站都非常棒。当时我以前的网络主机倒闭了,我改用了 Jumpline.com。从那时起,调用固定子例程的命令就不起作用了。

交换图像的例程名为 pid.cgi(存储在 cgi-bin 中)。

我在每个页面末尾使用的另一个单行页面计数器 cgi 例程称为预装程序“count.cgi”,该程序对该页面的访问者进行计数,增加每页的“点击量”,并将它们存储在仅向我显示的表格中。这是我可以确定各种图像受欢迎程度的一种方法。这个 cgi 例程现在也不起作用 - 在每个页面上都会给我一条错误消息。

不管怎样,如果没有这些例程(特别是第一个交换图像的例程),我就会迷失方向。我的凯迪拉克网站变成了一辆空车,这是进步吗?希望有人能帮忙。我不是程序员。

Title: Rotate Homepage Image (for website)- No longer works.
I am a physicist/wildlife artist with a website (I created in 2002) to display & market my artwork. I have set it up with an underlying (homepage) image map - having links to: "tigers", "leopards", "birds", artist info, etc., with the overlying image changing (swapping out) every time the user navigates to/from homepage. The links for each homepage have the same numerical coordinates and do not change locations from page to page, just the image changes. You can see my blank-page site at www.querryart.com. Note links below DO work.

The website was fabulous until last year. At that time my former webhost went out of business, and I changed to Jumpline.com. Since then, the commands which call canned subroutines do not work.

The routine which swaps out the image is named pid.cgi (stored in the cgi-bin).

Another one-line page-counter cgi routine I used at the end of each page called a canned program "count.cgi" which counted visitors to that page, incremented "hits" per page, and stored them in a table displayed only to me. This was a way I could determine the popularity of various images. This cgi routine also does not now work - giving me an error message on each page.

Anyway, I am lost without these routines (particularly the first one to swap out images). Is it progress that my Cadillac website has turned into an empty wagon? Hope someone can help. I'm not a programmer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

懒的傷心 2024-08-27 00:52:13

我的第一个猜测是,您可能需要更改 CGI 文件顶部的行,以便服务器能够处理它们。例如,如果使用 Perl,#!/usr/bin/perl 是公共目录,#!/usr/local/bin/perl 也是公共目录。

哦,你把权限设置为755了吗?

My first guess is that you may need to change the line(s) at the top of your CGI file in order for the server to process them. For example, if using Perl, #!/usr/bin/perl is a common directory, and so is #!/usr/local/bin/perl.

Oh, and have you set the permissions to 755?

别把无礼当个性 2024-08-27 00:52:13

对于初学者: http://www.querryart.com/cgi-bin/pid.cgi 不存在。您可能需要确保文件上传到正确的位置。

For starters: http://www.querryart.com/cgi-bin/pid.cgi does not exist. You might want to make sure the file is uploaded to the correct place.

书间行客 2024-08-27 00:52:13
  1. 确保您的主机支持 CGI 脚本。
  2. 确保根据主机提供的有关 CGI 脚本安装的信息,将您的 CGI 脚本上传到正确的位置。
  3. 确保脚本可执行(chmod 755)
  4. 确保脚本调用正确的解释器(正如史蒂夫所指出的)。

通过快速检查您的网站,脚本似乎不在正确的位置,因为网络服务器给出了 404 - 未找到。当我尝试获取 /cgi-bin/pid.cgi

此外,该脚本采用绝对路径作为参数(cfile=/home/queerryar/httpdocs/cgi-bin/dicont.cnf)这一事实看起来像是一个明显的安全性允许访问您帐户中的任何文件时出现问题。你真的应该考虑一个不同的解决方案

  1. Make sure that your host supports CGI scripts.
  2. Make sure, your CGI scripts are uploaded at the correct location according to the info from your host regarding the installation of CGI scripts.
  3. Make sure the scripts are executable (chmod 755)
  4. Make sure, that the scripts are calling the correct interpreter (as pointed out by Steve).

From a quick check at your web site, it looks like the scripts are not in the right place because the webserver gives a 404 - not found. when I try to get /cgi-bin/pid.cgi

Furthermore, the fact that the script takes an absolute path as a parameter (cfile=/home/querryar/httpdocs/cgi-bin/dicont.cnf) looks like a glaring security problem allowing access to any files in your account. You should really consider a different solution

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文