Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

PERL/PHP not passing correctly


(!)

hambone's Avatar
hambone hambone is offline
Member with 35 posts.
THREAD STARTER
 
Join Date: Aug 2004
Experience: Beginner
24-Jun-2005, 02:56 PM #1
PERL/PHP not passing correctly
I am trying to call PERL script via PHP (system) and system is failing to pass variables correctly. Here's kind of what I've done:

<?PHP
$data=$_POST;
$cmd="/usr/bin/perl /local/get.pl \"$data[url]\" \"$data[subject]\" > /dev/null @";
system("$cmd");
?>

PERL file is in right directory and PHP is called by form post method.

Please offer suggestions - THANKS!
inferno456's Avatar
inferno456 inferno456 is offline
Junior Member with 15 posts.
 
Join Date: Jun 2005
01-Jul-2005, 01:32 AM #2
Quote:
Originally Posted by hambone
I am trying to call PERL script via PHP (system) and system is failing to pass variables correctly. Here's kind of what I've done:

<?PHP
$data=$_POST;
$cmd="/usr/bin/perl /local/get.pl \"$data[url]\" \"$data[subject]\" > /dev/null @";
system("$cmd");
?>

PERL file is in right directory and PHP is called by form post method.

Please offer suggestions - THANKS!

which part the variable didn't pass thru? the PHP to shell, or the Perl part?
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2