]
Sent: Fri 12/17/2004 11:27 AM
To: Yao, Minghua
Cc: Erwin Kerk; [EMAIL PROTECTED]
Subject: RE: [PHP] Question in posting form-data
Yao, Minghua wrote:
Yes. I did modify the original since I need to send data to a program
which takes only form-data.
content-disposition: came from RFC 2388. I
: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Thu 12/16/2004 11:46 AM
To: Yao, Minghua
Cc: Erwin Kerk; [EMAIL PROTECTED]
Subject: RE: [PHP] Question in posting form-data
You also need to URLEncode the $value, either before you pass it in, or
inside the function itself.
Where did you get this PostToHost
Thanks. I changed
fputs($fp, $value\n);
to
fputs($fp, $name=$value\n);
But I still got the same message.
-Minghua
-Original Message-
From: Erwin Kerk [mailto:[EMAIL PROTECTED]
Sent: Thu 12/16/2004 6:30 AM
To: Yao, Minghua
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Question in posting
Hi, all,
I am testing how to post form-data to a host using the following code
(test.php):
?php
function PostToHost($host, $path, $name, $value) { // Test of posting
form-data
$fp = fsockopen($host,80);
fputs($fp, POST $path HTTP/1.1\n);
Hi,
Does anybody know how to post form-data to a host using PHP? Thanks for the
answer.
-Minghua
Hi,
I used the following function to post a string variable abcdef to a PHP
program on another host:
?php
function PostToHost($host, $path, $data_to_send) {
$fp = fsockopen($host,80);
if(!$fp) {
echo Failed to open port;
Hi, everyone,
I want to pass several parameters to a CGI program run on another server. The
following source of that program shows the parameters that need to be set
manually.
--
FORM name=organism
Select
PROTECTED]
Sent: Thursday, August 07, 2003 11:31 AM
To: Yao, Minghua
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to point at a spot and get relevant information?
On Thu, 7 Aug 2003 10:59:01 -0500 , you wrote:
Thank you for your reponses. The problem is there are thousands of spots on
the plot
Dear all,
Anybody knows how to write a graphic plotting code such that when users
point
at that spot, they can get the information relevant to that spot? Thanks
in advance.
-MY
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert and skate,
Thank you for your reponses. The problem is there are thousands of spots on
the plot.
The locations are random.
-MY
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 11:00 AM
To: skate
Cc: Yao, Minghua; [EMAIL PROTECTED
Hi,
On one page, I have:
?php
...
$dbcnx0 = @mysql_connect(localhost, $name, $password);
...
session_start();
$_SESSION['my_con'] = $dbcnx0;
...
?
On another page, I have:
?php
..
session_start();
$dbcnx1 = $_SESSION['my_con'];
.
?
The
11 matches
Mail list logo