Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

GPrint2004



My Page

Okay, here is the semi-new version. Rick-Click Here and select "Save File As" to download the zip. It is basically the same thing. It has some cool new stuff though. First off, some of the old problems, most of which actually, have not been resolved. BUT they will be, I promise. Next version will be MUCH different. This was just a quick write up. Alright, installation is a tad different.

1. Change Path of Perl (First line of the script)
2. Change $path variable to reflect path to Document Root. If you don't fill this in, your server's specified Document Root is assumed.
3. Change optional things in printer.pl
3. Upload to CGI-bin, and change permission to 755
4. Upload header.html and footer.html in the same directory as printer.pl (You make these.) 5. Add begincontent and endcontent tags to a webpage, and link to to the GPrint file with ?file=reletive/path/to/file.html where reletive/path is the path reletive from the path you put in the $path variable. For example, if your $path variable was /usr/local/usrs/me/www (no trailing / notice) and the file you want to have a print friendly page is index.html in that www folder, than you would link to printer.pl?file=index.html

The new feature is you can edit your own tags or words or whatever. You may need to look at a quick regex tutorial to figure this out, but here is how you do it:

Right after the path add a line like this:
push @blocks, qr//i;
In between // put what you want to get rid of. The i thing at the end means non-case sensitive. If you want to say, block the word sandwitch:
push @blocks, qr/sandwitch/i;

If you want to block more advance things with 'wildcards' search regex or regular expressions and perl on google and read up on it.

That's it. Have fun with it. Email WilliamGunther@aol.com for questions/comments.