OK Perl really is my bag so I've had to read up about it but here are a couple of things to try
------------------------
Your website's path to Perl is usr/bin/perl and this is only for files with the .pl file extension.
The path to your cgi bin is either:
/home/virtual/yourdomain.com/var/www/cgi-bin
but if that does not work then try:
/var/www/cgi-bin
----------------------------------
Here is the actual code :eek:
#!/usr/bin/perl
The path in the email has no / at the beginning of it but you have a / at the beginning of the shbang.
Try the simplest script you can to test the shbang line
-
#!/usr/bin/perl
-
-
print "Content-type: text/html\n\n";
-
-
print "<html><head><title>Test</title></head><body><p>Hello World!</p></body></html>";
-
It this works great, if not get help from your host.
If this does work then I would guess you need to look to the paths in your script to see if they are correct.
Test the function htmlscope but creating a script that contains only this function and a call to it.
You have several relative paths in the scripts (when open files and creating directories, paths including .. ), try replacing them with absolute paths.
The script is long and a little complex so you need to simplify it while you find the problem, once you have found it you can then correct the original script.