note 16418 deleted from function.phpversion by jimw

From: Date: Mon, 29 Oct 2001 20:07:18 +0000
Subject: note 16418 deleted from function.phpversion by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19582@lists.php.net to get a copy of this message
Interested in retrieving the latest PHP CVS version? Try this function: function phpversion_cvs() { $s = @fsockopen("cvs.php.net", 2401); if(!$s) { return; } fwrite ($s, "BEGIN AUTH REQUEST\n"); fwrite ($s, "/repository\ncvsread\nA:c:E?\n"); fwrite ($s, "END AUTH REQUEST\n"); fwrite ($s, "Root /repository\n"); fwrite ($s, "Argument php4/configure.in\n"); fwrite ($s, "co\n"); while (!feof($s)) { $v = fgets($s, 4096); $v = chop($v); if (eregi('^AM_INIT_AUTOMAKE\(.*, (.*), .*\)$', $v, $a)) { fclose($s); return($a[1]); } } fclose($s); }

« previous php.notes (#19582) next »