adding adsense to cgi

by paulgl
2 replies
I installed a cgi script, in perl I believe. Never having done that,
I am clueless. Anyway, I thought I could just find the html code
inside it and add anything, like adsense. When I do that, I
get an internal server error. Obviously, adding an outside script
must require some special notation or something. Either that, or
it's impossible without an error. Do I need to use "\" in parts?

Yes, I have googled it and keep getting pages not related to what
I want.

Any help would be appreciated.

Paul
#adding #adsense #cgi
  • Profile picture of the author GamerZag
    It is pretty easy. Put your extra stuff in a file and then do what this link says: print - perldoc.perl.org
    {{ DiscussionBoard.errors[8852936].message }}
  • Profile picture of the author ASUService
    As GamerZag mentioned you can use the print command. Combining an external file via the print command is a good way too. Here's how ...

    Perl include file dynamically - Stack Overflow

    Yes you'll need to escape some of the html to get it to place nice with perl. IE:

    See this page ... http://www.perlmonks.org/?node_id=401006

    Scroll down to "escape characters"

    There's more possible clashes but this is the only one you mention specifically.

    Have you thought about flipping to PHP ... Perl is almost dead so hate to see you put a lot of work into it. With php you can simple use "include" and have the code in a separate file. PHP will also require escaping if you wish to have it hardcoded.
    Signature

    Best Regards,
    Mike Allton
    ASU Service, Inc.
    The LAST SMS Platform You'll Ever Need! Easy Money!

    {{ DiscussionBoard.errors[8853069].message }}

Trending Topics