Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 9th, 2008, 12:54 PM
Registered User
 
Join Date: Mar 2008
Location: , , .
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.


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 23rd, 2005 11:28 PM
Can't display input variable passed on to php code mespejo Beginning PHP 2 November 25th, 2003 02:32 PM
PHP Session passed to different sub domains h8dk97 Pro PHP 3 November 6th, 2003 09: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



All times are GMT -4. The time now is 07:01 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.