Re: calling a cgi script from php

From: Date: Wed, 17 Jul 2002 02:22:18 +0000
Subject: Re: calling a cgi script from php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108009@lists.php.net to get a copy of this message
On Wednesday 17 July 2002 07:57, rdkurth@starband.net wrote: > Hello , > > I am trying to call a cgi script from a PHP script and get it to return > some data. > I am using the script below but it does not seam to work. > The cgi script (or I should say function) I am trying to call is in a > perl pm file. I have include a copy of the function I am trying to > call. Does anybody know what I am doing wrong. > > $username= "sdfsfs"; > $cmd="/usr/lib/perl5/site_perl/5.005/Email.pm::mail_virtuser_get_byuser > $username"; $returndata=exec($cmd); > echo $returndata; What _should_ your perl script return? Also RTFM for exec(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Prediction is very difficult, especially of the future. -- Niels Bohr */

« previous php.general (#108009) next »