Can I integrate a Perl sidebar with wordpress

Discussion in 'Programming' started by rochow, Mar 19, 2008.

  1. #1
    I have a site at the moment with a perl sidebar, and I want to make a wordpress blog and keep my existing sidebar (though wp is PHP)

    Is this possible?

    Can I PHP include the sidebar or something?

    Thanks :D
     
    rochow, Mar 19, 2008 IP
  2. coldgansta

    coldgansta Guest

    Messages:
    1,614
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can convert perl to php

    You can add a perl to php sidebar that will be fine.
    Converting small perl files into php is easy but its when you get to the real big files comes the frustration.
    You should have no probs converting a small sidebar code.

    Look here
    http://antigreen.org/vadim/ProgLanguageComparison/perl2php.html
     
    coldgansta, Mar 19, 2008 IP
  3. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #3
    Me either.

    I don't know if PHP and Perl are compatible as I've never worked with Perl.

    It would be good if it was like php and html, you can just add it in.


    Hopefully someone knows!
     
    rochow, Mar 19, 2008 IP
  4. coldgansta

    coldgansta Guest

    Messages:
    1,614
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    coldgansta, Mar 19, 2008 IP
  5. coldgansta

    coldgansta Guest

    Messages:
    1,614
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Or you could just add this to your php file



    <?php
    $perl->require("yourperlfile.pl");
    ?>
     
    coldgansta, Mar 19, 2008 IP
  6. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #6
    Is the sidebar specific to a blog? If it doesn't need to access specific wordpress functionality, there is nothing to stop you from calling whatever programming language you want as long as it outputs HTML. Your limit will be in what it can do relating to Wordpress.
     
    shallowink, Mar 19, 2008 IP
  7. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #7
    Ok awesome. It's not specific to the blog and won't use any of the wordpress functions

    Thanks I'll give that a shot!
     
    rochow, Mar 19, 2008 IP