Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 8th Jan 2014, 12:08 PM   #1
Plundering the Web
War Room Member
 
paulgl's Avatar
 
Join Date: 2007
Location: , , .
Posts: 9,121
Thanks: 1,507
Thanked 2,622 Times in 1,932 Posts
Default
adding adsense to cgi
Share on: 
fb share twitter share gplus share more share

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

If you were disappointed in your results today, lower your standards tomorrow.
paulgl is offline  
Unread 9th Jan 2014, 01:03 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2013
Posts: 145
Thanks: 26
Thanked 39 Times in 25 Posts
Default
Re: adding adsense to cgi
Share on: 
fb share twitter share gplus share more share

It is pretty easy. Put your extra stuff in a file and then do what this link says: print - perldoc.perl.org
GamerZag is offline  
Unread 9th Jan 2014, 01:47 PM   #3
Advanced Warrior
War Room Member
 
ASUService's Avatar
 
Join Date: 2002
Location: USA.
Posts: 612
Thanks: 440
Thanked 125 Times in 101 Posts
Default
Re: adding adsense to cgi
Share on: 
fb share twitter share gplus share more share

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.

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


Bookmarks

Tags
adding, adsense, cgi


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:58 AM.