On 13 February 2006 14:38, zedleon wrote:
> I am using php as a cgi. The data from my html is piped through stdin
> using this code:
> $fp=popen("cat","r");
> $str=fgets($fp);
> print $str;
> >
>
> The result I am getting looks like this: (which is correct)
> sender_name=zedleon&[EMAIL PROTECTE
;]; ?>
That routine should create variables with the names of the arguments as well
as an associative array of the string
HTH
Dan
-Original Message-
From: zedleon [mailto:[EMAIL PROTECTED]
Sent: 13 February 2006 14:38
To: php-general@lists.php.net
Subject: [PHP] Converting piped data
38
To: php-general@lists.php.net
Subject: [PHP] Converting piped data to values from html to phpcgi
I am using php as a cgi. The data from my html is piped through stdin using
this code:
The result I am getting looks like this: (which is correct)
sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=Thi
I am using php as a cgi. The data from my html is piped through stdin using
this code:
The result I am getting looks like this: (which is correct)
sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=This+is+a
+test&Submit=Submit
What I need to do now is to convert the piped string into the individu
4 matches
Mail list logo