User Profile

Collapse

Profile Sidebar

Collapse
smohan
smohan
Last Activity: Jun 22 '10, 10:19 AM
Joined: May 11 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • smohan
    started a topic Uncaught exception 'PerlException'
    in Perl

    Uncaught exception 'PerlException'

    Hi,
    I'm very new to perl. I tried to use the perl module in php script, but im getting error

    Code:
    <?php
    $perl = new Perl();
    $perl->eval("BEGIN {unshift( @INC, '/opt/otrs');}");
    $perl->eval('use Kernel::System::Email qw(new Send ConfigObject LogObject DBObject TimeObject MainObject EncodeObject _MessageIDCreate Log Get); ');
    $ar=array(From        => 'me@example.com',
    ...
    See more | Go to post

  • smohan
    started a topic PerlException: [perl] eval error
    in Perl

    PerlException: [perl] eval error

    Hi,
    I'm using perl modules in php via perl interpreter. I don't no how to include modules. I tried the following code,

    Code:
    <?php
    echo "hello";
    $perl=new Perl();
    
    $perl->eval('
    package Kernel::System::CustomerUser;
    
            use Kernel::Config;
            use Kernel::System::Encode;
            use Kernel::System::Log;
            use Kernel::System::Main;
    ...
    See more | Go to post

  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    I got The solution.

    There will be few files which will not be installed while installing the extensions. I tried this, I got the solution....

    perl -MCPAN -eshell

    and then eg
    install Net::LDAP

    It is running for me. Thank you Markus for ur concern on me.
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    Hi,

    I have searched around for the solution to this problem, but I am trying to call a perl script from php, and get a fatal error:Class perl not found

    I am using php 5.1.6 and apache 2.0 , php and apache is configured fine, as i am able to run <phpinfo()?> with out any problem. I have added php_perl.dll into my php.ini extensions ... and copied it to php/ext folder.

    The scripts are very basic (from the...
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    There's no logs in any of the perl-1.0.0 directories. The directory includes int perl-1.0.0 is empty
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    I dont have the logs in tests directory...
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    re: PHP fatal error : Class perl not found
    Does your phpinfo() output show that the Perl module is enabled?

    I checked phpinfo(). but i could not find perl module in it.

    Loaded Modules : core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_defau lt mod_authz_group file mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_mime mod_negotiation...
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    after installing the extension, i run the command make test,
    but i got this result

    Number of tests : 70 70
    Tests skipped : 0 ( 0.0%) --------
    Tests warned : 0 ( 0.0%) ( 0.0%)
    Tests failed : 70 (100.0%) (100.0%)
    Tests passed : 0 ( 0.0%) ( 0.0%)
    ---------------------------------------------------------------------
    Time taken : 4 seconds
    ...
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    how to check that?


    ya i got it.....it is intalled......


    i used

    <?php

    // Show all information, defaults to INFO_ALL
    phpinfo();

    // Show just the module information.
    // phpinfo(8) yields identical results.
    phpinfo(INFO_MO DULES);

    ?>

    save this prog in file called phptest.php and run in the browser


    and also...
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    mate......I have installed perl interpreter.... ...using the link http://pecl.php.net/package/perl.
    .....and i included the extension perl.so in the php.ini file. I compiled and run the file in the browser.

    This is the code

    test1.pl
    Code:
    print "Hello from perl! "
    test1.php
    Code:
    <?php
    
    print "Hello from PHP! ";
    $perl = new Perl();
    $perl->require("test1.pl");
    ...
    See more | Go to post
    Last edited by Dormilich; May 11 '10, 07:32 PM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    yes.....I got the extension from this link and followed the steps http://pecl.php.net/package/perl.

    and also tried with this command, but got the following error.
    root@cogitate-linux2:~# cvs -d :pserver:cvs.ph p.net:/repository co pecl/perl
    cvs checkout: authorization failed: server cvs.php.net rejected access to /repository for user root
    cvs checkout: used empty password; try "cvs login" with a real password...
    See more | Go to post

    Leave a comment:


  • smohan
    replied to PHP fatal error : Class perl not found
    in PHP
    Hi,

    Please if some one could help me out to solve this problem

    I have searched around for the solution to this problem, but I am trying to call a perl script from php, and get a fatal error:Class perl not found

    I am using php 5.1.6 and apache 2.0 , php and apache is configured fine, as i am able to run <phpinfo()?> with out any problem. I have added perl.so extension into my php.ini extensions
    ...
    See more | Go to post
    Last edited by Dormilich; May 11 '10, 07:30 PM. Reason: Please use [code] tags when posting code

    Leave a comment:

No activity results to display
Show More
Working...