putenv() question.
| From: | Carter Comunale | Date: | Wed, 28 Feb 2001 17:37:13 +0000 |
| Subject: | putenv() question. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42038@lists.php.net to get a copy of this message | ||
Hi,
I am wondering about putenv().
I would like to set an environment variable in php and then have that
variable available to a Perl script.
I am doing something like this.
The php file:
<?
$myName = "carter";
putenv("A_NAME=$myName");
?>
Then in the Perl script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print $ENV{'A_NAME'};
exit;
I think I may be misunderstanding how environment variables work.
Any thoughts?
Carter