[PHP] Using the fsockopen ()-function

2002-01-24 Thread Björne
Hi! I'm having trouble with the fsockopen ()-funcion. When I'm using the code below, the page that is returned is all white. What to do? Am I doing anything wrong? - $sp = fsockopen ( "www.php.net", 80, &$errno, &$errstr, 25 ); if ( !$sp ) { die ( $errno . ": " . $errstr ); } else

[PHP] Sending a POST-message

2002-01-24 Thread Björne
Hi! I wonder how I can send a POST-command to a server, via a PHP-script instead of a form. Imagen that I have this form: Name: E-mail: Now I want to send a command to the /request.php, and formate the returned data - via a PHP-script. Should I use sockets or fopen? Or something else? T