PERL Coding - Page Rank Checker

Discussion in 'Programming' started by painthappy, May 20, 2007.

  1. #1
    I'm a PERL script coder, and I always feel left out, so I'm just going to start going wild and bring PERL code to the forefront... at least for me... and start releasing code to those that want it.


    Couple things I've whipped up:

    Page Rank Checker:

    http://www.seomonks.com/pagerank/pagerank.cgi

    There's even a way to put the image onto your webpage, etc.

    Next... Deleted domains updater, pr check, and sort....

    http://www.seomonks.com/pagerank/index.html


    It's updated every day with a new list, sorts them, and checks their page rank.

    I'm going to clean up the code and release it so someone can put it on their webpage or whatever. Just trying to share.

    I'll put a new thing up here every week with regards to PERL coding, programs, etc.


    Maybe someone here will at least enjoy it.
     
    painthappy, May 20, 2007 IP
  2. Gatorade

    Gatorade Peon

    Messages:
    2,130
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm looking forward to the release of the code for the "Deleted domains updater, pr check, and sort". This is a great tool that is very useful to me. Great work!:D
     
    Gatorade, May 21, 2007 IP
  3. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #3
    very nice scripts :)
    one thing though, ou have to be careful, as some of those have fake pr :)
     
    carolynheath, May 21, 2007 IP
  4. painthappy

    painthappy Peon

    Messages:
    93
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Gatorade... I PM'ed you the zip file. Enjoy.
     
    painthappy, May 21, 2007 IP
  5. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #5
    your work is awesome BTW, perl just doesn't get enough love these days :D
     
    carolynheath, May 21, 2007 IP
  6. painthappy

    painthappy Peon

    Messages:
    93
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah, it is sort of sad. I'm going to be releasing free perl code that should be relevant to the folks around here, to make get some love back into it... Doubt it, but worth a try right?

    Next will be a vbulletin / perl custom module I wrote to bridge the two programming languages so my perl code can interact with the vb database, etc.
     
    painthappy, May 21, 2007 IP
  7. cav609

    cav609 Active Member

    Messages:
    316
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Hi painthappy - you may be able to help (I hope!). I posted a question on another thread:

    http://forums.digitalpoint.com/showthread.php?t=337510

    I've been told I may be able to do this with perl? Basically I need to do a 301 redirect from one .htm page to another .htmpage ie

    301 redirect from oldpage.htmto newpage.htm

    Is this possible with perl? If so how do I call the perl script from old.htm and whats the correct script to use?

    Thanks in advance for any pointers.
     
    cav609, May 22, 2007 IP
  8. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #8
    this SHOULD do you, but not really sure

    $q = new CGI;
    print $q->redirect("http://www.new-url.com/");
     
    carolynheath, May 22, 2007 IP
  9. cav609

    cav609 Active Member

    Messages:
    316
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Thanks Carolynheath - ok, confession time (though it should be no surprise from my question) - if I understand perl correctly its a script that sits in the cgi directory that gets called from a normal web page? How do I call the script from say oldpage.htm?
     
    cav609, May 23, 2007 IP
  10. painthappy

    painthappy Peon

    Messages:
    93
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #10
    To call from an html page you need to use SSI or Server Side Include.

    But honestly.. just use .htaccess files for it, very simple that way. No coding or whatever involved.

    create a file called htaccess

    .htaccess

    and put in that file:

    Redirect 301 /oldpage.html http://www.example.com/newpage.html
     
    painthappy, May 23, 2007 IP
  11. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #11
    in the other thread, he/she said they coulnd't use .htacess :(
     
    carolynheath, May 23, 2007 IP
  12. SupaSharp

    SupaSharp Well-Known Member

    Messages:
    1,865
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    100
    #12
    Great tools, good to see more perl users here on DP, any change of getting those files zip'd as well
     
    SupaSharp, May 23, 2007 IP
  13. cav609

    cav609 Active Member

    Messages:
    316
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #13
    Thanks for the reply painthappy - carolynheath is correct - unfortunately I dont have .htaaccess as my hosting company doesnt supply that in their windows environment which is what I'm currently using.

    My options seem to be a perl script under windows if thats do-able, or alternatively migrating to my hosts linux environment which does provide .htaccess.

    Currently debating the pros & cons of windows vs linux from a site development & maintenance point of view. So far the advantage of linux seems to be .htaccess which will allow me to do the 301 redirect I need.
     
    cav609, May 23, 2007 IP
  14. cav609

    cav609 Active Member

    Messages:
    316
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #14
    Report back - have taken the linux route and all's working well!
     
    cav609, Jun 13, 2007 IP
  15. macau2009

    macau2009 Well-Known Member

    Messages:
    294
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    125
    #15
    do you do customized coding
    if you do,, read my ad here
    http://forums.digitalpoint.com/showthread.php?t=1171283
     
    macau2009, Jan 1, 2009 IP