PERL CGI Code Frequently Asked Questions

General Notes About Code

The code is designed for dynamic websites, i.e. websites that are able to use server-side code. This may include ASP, ASP, ASP.NET, PERL, Java Server Pages, Server Side Includes etc. Due to the functionality of our system, our code cannot work on static pages and we are unable to accept publishers who do not have dynamic pages.

The PERL Code is designed to work as is on any site and should not need to be modified. A publisher should be able to insert the code into the site, and it should work.
We have noticed a few PERL specific issues which we will address below in a Question and Answer format. If you have any problems getting the code to work on your site, please don't hesitate to ask us; we would like to make the code as robust as possible and to have this FAQ as complete as we can manage.

PERL Specific Questions



Q: How can I see if there is an Error with the code?

A: In order to prevent any disruptions for your site, our PERL code doesn't show any errors.
If you think there is a problem with your code and you would like to test it,
just remove the # sign from the printing error message function at the bottom
and it will display the errors if there are any.


Q: Then I'm trying to execute your sample PERL script I get an Internal Server Error message. What can I do?

A: Please check did you grant execute permissions for the sample script.
You should set at least 555 file permissions for correct script work.


Q: Can I set the Timeout for the Connection to your server?

A: Provided sample uses 3 seconds timeout which should be more than enough
for most socket connections and definitely enough for our server connection.
But you can change the timeout by changing this line in the code file:
my $sock = IO::Socket::INET->new(PeerAddr => $host,
    PeerPort => $port, Proto => 'tcp', Timeout => 3) || return undef;