• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

How can I test CGI/Perl functionality?


PerlDigger is a script that returns information about the Perl environment on the servers. An example of the code is attached to this article and can also be found here.

Upload the script to the cgi-bin directory on your site and change the permissions to 755. In your browser, go to the URL (ex. www.domain.com/cgi-bin/perldigger.cgi) and the perldigger script will be executed.



© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER

2 Comments

Anything similar for Python?

There are some simple cgi tests you can use with python. A discussion of some code is on the ActiveState site:

[The Simplest CGI Program](http://code.activestate.com/recipes/52220-the-simplest-cgi-program/)

There is also a built-in CGI test function that is even quicker to implement, though the AS script provides a little more useful information.

#!/usr/bin/python
import cgi
cgi.test()

Add new comment