CGI 程式常見問題 !!!

伺 服 器 端 程 式︰

  • Can I write my own CGI program? 
  • What is the extension name for the CGI program?
  • What is the path of the PERL?
  • How to set the permission of the CGI?
  • Why is there no CGI-BIN in my directory ?
  • Why can't my CGI program run?
  • What is the absolute path of my directory?
  • What is the path of the Sendmail program?

  • Question︰Can I write my own CGI program? 
    Answer︰If you choose88B Plan150 Plan, we will support your own CGI programs. It can be written in Perl or C. When you are using CGI, you should take care of the system resources and the security associated with it.

    Question︰What is the extension name for the CGI program?
    Answer︰.cgi or .pl

    Question︰What is the path of the PERL?
    Answer︰/usr/bin/perl ,You should have the header  #!/usr/bin/perl

    Question︰How to set the permission of the CGI?
    Answer︰You can set the permission of the  CGI to 755 or above. For the sake of security,we suggest that you set it to  755.

    Question︰Why is there no CGI-BIN in my directory ?
    Answer︰Because the CGI can be run in any directory, you only need to upload the CGI to any directory.

    Question︰Why can't my CGI program run?
    Answer︰The most popular cause is︰

                1. Perl's path is not correct.

                2. When uploading the CGI, ascii mode is not used.

                3. The permission has not been set to 755.

    Question︰What is the absolute path of my directory?
    Answer︰Your absolute path is /home/username/public_html or /home/hosting/username/public_html

    Question︰What is the path of the Sendmail program?
    Answer︰Sendmail is at /usr/sbin/sendmail