Filed under:
Is there a way to test my cgi-bin / perl is working ?
If you are experiencing problems with your cgi-bin / perl scripts try this test ...
- Enter this into *NOTEPAD* do not use word or anything that will add additional definitions, characters, text, html etc
#!/usr/bin/perl print "Content-type: text/plain\n\nworks!\n";Save the file as test-cgi.pl Upload the test-cgi.pl script to your cgi-bin as TEXT Change the script mode to 755 (executable) Execute the script in your browser at http://(yourdomain)/cgi-bin/test-cgi.pl If that works, then the error is in your cgi-bin / perl script and you shoudl contact the authors or add additional debug code.
Add to Favourites Print this Article
Also Read