Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Can i call a handmade perl module within a php file?

by mwah (Hermit)
on May 26, 2008 at 13:13 UTC ( [id://688520]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     use MyCounter; # declare the usage of MyCounter
     
    ...
     $counter = counter( $0, $db, $host ); #i call my module
     print $counter;
    
  2. or download this
    <?php
     $file = $_SERVER['SCRIPT_FILENAME'];
    ...
     $output = shell_exec("perl /local/www/nik/mywrapper.pl $file $host");
     echo "<pre>$output</pre>";
    ?>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://688520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-18 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found