You are here: How to return data using POST « PHP Programming Language « IT news, forums, messages
How to return data using POST

Posted by Gary Quiring on 05/12/05 17:20

I have a vendor sending me a text file using POST. I have a PHP program
receiving the data that works. I need to in the same stream return an answer
via POST. How do I send that POST in the same stream?

A snip from the code for the output portion:

$LINKOUT = implode('', file($LINKFILE . '.out'));

$LOUT = array(
'http'=>array(
'method'=>"POST",
'header'=>"Content-type: application/x-www-form-urlencoded\r\n" .
"Content-length: " . strlen("$LINKOUT"),
'content'=>"$LINKOUT"
)
);
$context = stream_context_create($LOUT);

Thanks
Gary Quiring

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация