[San-Diego-pm] Using a PHP script as a function
joel at fentin.com
Tue Aug 10 14:02:08 PDT 2010
LWP::Simple did the trick. Thank you so much.
Urivan Flores wrote:
> On Mon, 09 Aug 2010 21:47:03 -0700, Joel Fentin wrote
>> I have a perl program and I am trying to use a PHP script as a
>> function. That is to say that my perl program passes data to it
>> and it returns data. I have not been able to get it to run, let
>> alone return data.
>> If you take:
>> and put it in Firefox, it returns data which is displayed.
> 1. You can use wget/curl to load the url:
> wget 'http://blablabla'
> (don't forget the single quotes around the URL)
> 2. Use LWP:
> use LWP::Simple;
> my $data = get('http://blablabla/yourscript.php?yadda') or
> die 'Unable to get page';
> Urivan Flores-Saaib
> saaib at ciberlinux.net
> (858) 431-9734
Joel Fentin tel: 760-749-8863
Biz Website: http://fentin.com
Personal Website: http://fentin.com/me
More information about the San-Diego-pm