Re[2]: [PHP-WIN] quick ref

From: Date: Wed, 18 Oct 2000 22:06:03 +0000
Subject: Re[2]: [PHP-WIN] quick ref
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-3358@lists.php.net to get a copy of this message
>> does anybody know if the quick ref function on the www.php.net site >> or another similiar pacakage is available for download anywhere? the >> quick ref is an awesome help when you're a newbie, but it costs to >> much money to be hooked up to the net the entire time... > Try this. Place this script (manualsearch.php) in the same directory > as your downloaded php manual. It's very simple, but works ok. Oops! Seems that underscored functions are changed to dashed filenames, so an "is_array" search will produce nothing, since it appears as "is-array". Use this instead, it fixes that "bug": <?php // Define your user manual path (not needed if you place this script in the manual's dir) $basedir="./"; $handle=opendir($basedir); echo " <HTML> <HEAD> <TITLE>PHP Manual Search</TITLE> </HEAD> <BODY> <A HREF='manual.html'>Manual Index</A> <FORM ACTION='manualsearch.php' METHOD='GET'> <INPUT TYPE='TEXT' NAME='keyword'> <INPUT TYPE='Submit'> </FORM> "; if ($keyword) { $count=1; while (false!==($file[$count] = readdir($handle))) { if (ereg(str_replace("_","-",$keyword),$file[$count])) { echo "<A HREF='$file[$count]'>".substr(str_replace(".","-",$file[$count]),0,-5)."<A><BR>"; } $count++; } closedir($handle); } ?>

« previous php.windows (#3358) next »