NYCPHP Meetup

NYPHP.org

[nycphp-talk] Trouble with sockets

George Webb gw.nyphp at gwprogramming.com
Mon Jan 6 10:45:44 EST 2003


Hi Adam.  Two ideas:

	1/ try CRLF's instead of just LF's after the HTTP GET
	(i.e. \\r\
\\r\
)

	2/ use fopen() instead of fsockopen ... you can use
	a URL as the arg, and if you need username/password,
	you might be able to do 

	$fp = fopen ( 'http://joe:pass@example.org/path.cgi' );

	or something like that...?  


Best, George.

George Webb
gw.nyphp at gwprogramming.com



More information about the talk mailing list