Fri, 18 Feb 2011 11:53:02 -0600 письмо от "Mike Blezien" 
<[email protected]>:

> Hello,
> 
> this is kinda of a crossover to PHP which I'm not that fimilar with.
> 
> I have a Perl script that needs to call up a specific function from a PHP
> script, Entry.php calls "Social_preformPost()" function. I simply need to pass
> 2 variables to this function, SocialpreformPost($id,$message) 
> 
> My question is do I need to use the require "./Entry.php" then call the
> function similar to the way you'd call a regular sub routine or how is this
> done?
> 

You can call the PHP script from command line and pass the arguments to it, 
like:

system("php","abc.php",$arg1,$arg2);

But you still have to modify the PHP function to make it executable from the 
command line.

So it's better rewrite the PHP with Perl and things get easy.

Regards.

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to