Loading ...
Sorry, an error occurred while loading the content.

help with counter.cgi problems

Expand Messages
  • raezorblaedz
    HTML code to call counter.cgi: CGI script states: $countfile = http://www.my.com/cgicount ; $giffile =
    Message 1 of 1 , Jan 3, 2002
      HTML code to call counter.cgi:
      <img src="http://www.my.com/cgi-bin/counter.cgi">

      CGI script states:
      $countfile = "http://www.my.com/cgicount";
      $giffile = "http://www.my.com/images/blank.gif";

      $count = `cat $countfile`;
      $count = $count + 1;
      print INF "$count\n";

      print "Content-type:image/gif\n\n";
      @gifdata = `cat $giffile`;
      print @gifdata;

      Linux states:
      (2)No such file or directory: exec of /home/httpd/cgi-bin/counter.cgi
      Premature end of script headers: /home/httpd/cgi-bin/counter.cgi

      I have addressed the link to a fully qualified path. I changed the
      permissions to 755. What next? Is there a method to this maddness?
    Your message has been successfully submitted and would be delivered to recipients shortly.