Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2008, 12:54 PM
Registered User
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default I need help with php variable passed to perl...

I have a php script that has the session id number and i want to send this variable to perl. I am having trouble sending it.

Php script:

<?php

set_time_limit(0);
session_start();
$session = session_id(); #TRYING TO SEND "$session" to Perl Script

$session . ' ' . $fileLine2;

shell_exec("second_one.pl" . " -s " . $session);

?>

Perl Script:

use Getopt::Std;

getopts("s:", \%option);
$session_num = '';

if ($option{s}){
$session_num = $option{s};
}

I don't know where i'm goin wrong.

Help please.







Similar Threads
Thread Thread Starter Forum Replies Last Post
passing php variable to perl nriv08 PHP How-To 0 March 27th, 2008 10:38 AM
Global variable passed from s/proc not accepted ssharrock SQL Server DTS 1 February 24th, 2005 12:28 AM
Can't display input variable passed on to php code mespejo Beginning PHP 2 November 25th, 2003 03:32 PM
PHP Session passed to different sub domains h8dk97 Pro PHP 3 November 6th, 2003 10:20 PM
form data not passed to php keng BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 September 4th, 2003 09:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.