cvs: phpweb / mirrors.php quickref.php search.php source.php support.php tips.php

From: Date: Sun, 08 Jul 2001 12:13:52 +0000
Subject: cvs: phpweb / mirrors.php quickref.php search.php source.php support.php tips.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5358@lists.php.net to get a copy of this message
goba Sun Jul 8 08:13:52 2001 EDT Modified files: /phpweb mirrors.php quickref.php search.php source.php support.php tips.php Log: Some more cosmetics...

Index: phpweb/mirrors.php diff -u phpweb/mirrors.php:1.10 phpweb/mirrors.php:1.11 --- phpweb/mirrors.php:1.10 Sun Jul 8 07:33:38 2001 +++ phpweb/mirrors.php Sun Jul 8 08:13:48 2001 @@ -6,8 +6,9 @@ exit; } -commonHeader("Mirrors Page"); +commonHeader("Mirror Sites"); ?> + <h1>Mirror Sites</h1> <p> Index: phpweb/quickref.php diff -u phpweb/quickref.php:1.14 phpweb/quickref.php:1.15 --- phpweb/quickref.php:1.14 Fri Jul 6 21:17:34 2001 +++ phpweb/quickref.php Sun Jul 8 08:13:48 2001 @@ -1,8 +1,8 @@ <?php require_once 'prepend.inc'; -$NUMACROSS=2; -$SHOW_CLOSE=10; +$NUMACROSS = 2; +$SHOW_CLOSE = 10; if (!isset($lang)) $lang = default_language(); if (!file_exists("$DOCUMENT_ROOT/manual/$lang")) $lang = "en"; @@ -10,28 +10,26 @@ function makeTable($lang,$array) { global $NUMACROSS; - echo '<TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="580">'; - echo '<TR VALIGN="top"><TD WIDTH="50%">'; - $i=0; + echo '<table border="0" cellpadding="5" cellspacing="0" width="580">'; + echo '<tr valign="top"><td width="50%">'; + $i = 0; $limit = ceil(count($array)/$NUMACROSS); asort($array); while (list($file,$name)=each($array)) { if ($i>0 && $i%$limit==0) { - echo "</TD><TD WIDTH=\"50%\">\n"; + echo "</td><td width=\"50%\">\n"; } - echo "<A HREF=\"/manual/".$lang."/".$file."\">".$name."</A><BR>\n"; + echo "<a href=\"/manual/".$lang."/".$file."\">".$name."</a><br>\n"; $i++; } - echo '</TD></TR></TABLE>'; + echo '</td></tr></table>'; } - - $d = dir("$DOCUMENT_ROOT/manual/en"); $functions = $maybe = $temp = array(); $p = 0; -while($entry=$d->read()) { +while ( $entry=$d->read() ) { if (substr($entry, 0, 1) == ".") { continue; } @@ -69,38 +67,41 @@ <?php if ($notfound) { ?> -<P> -Sorry, but the function <B><?php echo $notfound; ?></B> is not in the online manual. -Perhaps you misspelled it, or it is a relatively new function that hasn't made it -into the online documentation yet. The following are the <?php echo $SHOW_CLOSE;?> -functions which seem to be closest in spelling to <B><?php echo $notfound;?></B> (really -good matches are in bold). Perhaps you were looking for one of these: -</P> +<p> +Sorry, but the function <b><?php echo $notfound; ?></b> is not in the online manual. +Perhaps you misspelled it, or it is a relatively new function that hasn't made it +into the online documentation yet. The following are the <?php echo $SHOW_CLOSE; ?> +functions which seem to be closest in spelling to <b><?php echo $notfound; ?></b> +(really good matches are in bold). Perhaps you were looking for one of these: +</p> <?php makeTable($lang,$maybe); ?> -<P> -If you want to search the entire PHP website for the string &quot;<B><?php echo $notfound; ?></B>&quot;, -then <?php print_link('search.php?show=nosource&pattern='.urlencode($notfound), 'click here'); ?>. -</P> +<p> +If you want to search the entire PHP website for the string +&quot;<b><?php echo $notfound; ?></b>&quot;, then +<?php print_link('search.php?show=nosource&pattern='.urlencode($notfound), 'click here'); ?>. +</p> <p> For a quick overview over all PHP functions, <?php print_link('quickref.php', 'click here') ?>. </p> + <?php commonFooter(); exit; } ?> -<P> -Here is a list of all the PHP functions. Click on any one of them to jump to that page in the manual. -</P> +<p> +Here is a list of all the PHP functions. Click on any one of them to +jump to that page in the manual. +</p> <?php makeTable($lang,$functions); ?> -</TD></TR> -</TABLE> +</td></tr> +</table> <?php commonFooter(); ?> Index: phpweb/search.php diff -u phpweb/search.php:1.16 phpweb/search.php:1.17 --- phpweb/search.php:1.16 Sat Jul 7 08:25:42 2001 +++ phpweb/search.php Sun Jul 8 08:13:48 2001 @@ -8,7 +8,7 @@ */ if (isset($pattern) && ($pattern)) { - SetCookie("prevsearch",$pattern,0,"",".php.net"); + setcookie("prevsearch",$pattern,0,"",".php.net"); } if (isset($pattern) && ($pattern)) { @@ -19,40 +19,40 @@ $location = "http://www.progressive-comp.com/Lists/"; if ($show=="maillist") { $query = "l=php3-general&r=1&w=2&q=b&s=".urlencode($pattern); - Header("Location: ".$location."?".$query); + header("Location: ".$location."?".$query); exit; } else if ($show=="devlist") { $query = "l=php-dev&r=1&w=2&q=b&s=".urlencode($pattern); - Header("Location: ".$location."?".$query); + header("Location: ".$location."?".$query); exit; } else if ($show=="phpdoc") { $query = "l=phpdoc&r=1&w=2&q=b&s=".urlencode($pattern); - Header("Location: ".$location."?".$query); + header("Location: ".$location."?".$query); exit; } else if ($show=="phplib") { $query = "l=phplib&w=2&r=1&q=b&s=".urlencode($pattern); - Header("Location: ".$location."?".$query); + header("Location: ".$location."?".$query); exit; } else if ($show=="phplib-dev") { $query = "l=phplib-dev&w=2&r=1&q=b&s=".urlencode($pattern); - Header("Location: ".$location."?".$query); + header("Location: ".$location."?".$query); exit; } else if ($show=="php-kb") { $location = "http://www.faqts.com/knowledge-base/search/index.phtml"; $query = "fid=51&search=".urlencode($pattern); - Header("Location: $location?$query"); + header("Location: $location?$query"); exit; } else if ($show=="bugdb") { $location = "http://www.php.net/bugs.php"; $query = "cmd=Display+Bugs&status=All&bug_type=Any&search_for=".urlencode($pattern); - Header("Location: $location?$query"); + header("Location: $location?$query"); exit; } if (!have_search()) { $location="http://www.php.net/search.php"; $query = "show=".$show."&pattern=".urlencode($pattern)."&sourceurl=".urlencode($MYSITE); - Header("Location: ".$location."?".$query); + header("Location: ".$location."?".$query); exit; } } @@ -72,13 +72,13 @@ $next=make_link($baseurl.'&page='.$i, 'next page'.make_image('caret-r.gif', 'next') ); } - $middle="<B>Displaying results $firstdisplayed to $lastdisplayed</B>"; + $middle="<b>Displaying results $firstdisplayed to $lastdisplayed</b>"; echo '<table border="0" width="620" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4">'; - echo '<tr>'; + echo '<tr>'; echo '<td align="middle" colspan="2">' . $middle . '<br></td>'; - echo '</tr>'; + echo '</tr>'; echo '<tr bgcolor="#cccccc"><td colspan="2">'; spacer(1,1); @@ -88,52 +88,44 @@ echo '<td align="left">' . $last . '<br></td>'; echo '<td align="right">' . $next . '<br></td>'; echo '</tr>'; - echo '</table><BR>' . "\n"; + echo '</table><br>' . "\n"; } if(!isset($pattern)) { - $DISABLE_KICKOUTS = true; commonHeader("Site Search"); - $form=$PHP_SELF; + $form = $PHP_SELF; ?> <h1>Search</h1> -<FORM ACTION="<?php echo $form;?>" METHOD="POST"> -<CENTER> -<TABLE CELLSPACING="0" CELLPADDING="2"> -<TR VALIGN="top"> -<TD ALIGN="right"> -Search for: <BR> -</TD> -<TD> -<INPUT TYPE="text" NAME="pattern" VALUE="<?php echo $prevsearch;?>" SIZE="30"> -<INPUT TYPE="submit" VALUE=" Search "><BR> -</FONT></TD> -</TR> -<TR VALIGN="top"> -<TD ALIGN="right"> -Restrict the search to: <BR> -</TD> -<TD> -<SELECT NAME="show"> -<OPTION VALUE="quickref" SELECTED>function list -<OPTION VALUE="nosource">whole site -<OPTION VALUE="manual">online documentation -<OPTION VALUE="bugdb">bug database -<OPTION VALUE="maillist">general mailing list -<OPTION VALUE="devlist">developer mailing list -<OPTION VALUE="phpdoc">documentation mailing list -<OPTION VALUE="source">website source code -</SELECT><BR> -</FONT></TD> -</TR> -</TABLE> -</CENTER> -</FORM> +<form action="<?php echo $form;?>" method="post"> +<table cellspacing="0" cellpadding="2" border="0" align="center"> +<tr valign="top"> +<td align="right"> +Search for:<br></td> +<td> +<input type="text" name="pattern" value="<?php echo $prevsearch;?>" size="30"> +<input type="submit" value=" Search "><br> +</td></tr> +<tr valign="top"> +<td align="right"> +Restrict the search to:<br></td> +<td> +<select name="show"> +<option value="quickref" selected>function list +<option value="nosource">whole site +<option value="manual">online documentation +<option value="bugdb">bug database +<option value="maillist">general mailing list +<option value="devlist">developer mailing list +<option value="phpdoc">documentation mailing list +<option value="source">website source code +</select><br> +</td></tr></table> +</form> <?php } else { commonHeader("Search Results"); echo "<h1>Search Results</h1>\n"; if (have_search() && isset($htsearch_prog)) { - $form=$PHP_SELF; + $form = $PHP_SELF; } else { $form="http://www.php.net/search.php"; } @@ -141,69 +133,69 @@ if (ereg("^(.+//[^/]+)/",$HTTP_REFERER,$reg)) { $base=$reg[1]; } - if ($base==$MYSITE) { - $base="-"; + if ($base == $MYSITE) { + $base = "-"; } } - if ($base=="-") { - $sourceurl=$PHP_SELF; + if ($base == "-") { + $sourceurl = $PHP_SELF; } else { - $sourceurl=$base.$PHP_SELF; + $sourceurl = $base.$PHP_SELF; } - if ($pattern=="") { - echo "<b>Error:</B> No search words specified.<BR><BR>"; - echo "Click here for a <A HREF=\"$sourceurl\">New Search</A><BR><BR>\n"; + if ($pattern == "") { + echo "<b>Error:</b> No search words specified.<br><br>"; + echo "Click here for a <a href=\"$sourceurl\">New Search</a><br><br>\n"; CommonFooter(); exit(); } - $words=EscapeShellCmd(UrlEncode($pattern)); - $config="php"; - if ($show=="source") { - $exclude="/manual"; - $restrict=$MYSITE."source"; - $where="Site source code"; - } elseif ($show=="manual") { - $restrict=$MYSITE."manual/en"; - $exclude="/source"; - $where="PHP documentation"; + $words = escapeshellcmd (urlencode($pattern)); + $config = "php"; + if ($show == "source") { + $exclude = "/manual"; + $restrict = $MYSITE."source"; + $where = "Site source code"; + } elseif ($show == "manual") { + $restrict = $MYSITE."manual/en"; + $exclude = "/source"; + $where = "PHP documentation"; } else { - $exclude="/source"; - $restrict=$MYSITE; - $where="PHP Web site"; - } - if (isset($page)) {$off="&page=$page";} else {$off="";} - $query="words=$words&config=$config&exclude=$exclude&restrict=$restrict$off"; - exec("$htsearch_prog \"$query\"",$result); - $rc=count($result); + $exclude = "/source"; + $restrict = $MYSITE; + $where = "PHP Web site"; + } + if (isset($page)) { $off = "&page=$page"; } else { $off = ""; } + $query = "words=$words&config=$config&exclude=$exclude&restrict=$restrict$off"; + exec("$htsearch_prog \"$query\"", $result); + $rc = count($result); if ($rc<2) { - echo "<B>There was an error executing this query.</B><BR><BR>Please try later<BR><BR>"; + echo "<b>There was an error executing this query.</b><br><br>Please try later.<br><br>"; commonFooter(); exit; } - if ($result[2]=="NOMATCH") { - echo "Sorry, no documents matched your search for<B>&quot;".$pattern."&quot;</B>.<BR><BR>"; - echo "Click here for a <A HREF=\"$sourceurl\">New Search</A><BR><BR>\n"; + if ($result[2] == "NOMATCH") { + echo "Sorry, no documents matched your search for<b>&quot;".$pattern."&quot;</b>.<br><br>"; + echo "Click here for a <a href=\"$sourceurl\">New Search</a><br><br>\n"; commonFooter(); exit; } - $matches=$result[2]; - $firstdisplayed=$result[3]; - $lastdisplayed=$result[4]; - $page=$result[5]; - $pages=$result[6]; - $baseurl=$PHP_SELF."?pattern=$words&show=$show&base=$base"; + $matches = $result[2]; + $firstdisplayed = $result[3]; + $lastdisplayed = $result[4]; + $page = $result[5]; + $pages = $result[6]; + $baseurl = $PHP_SELF."?pattern=$words&show=$show&base=$base"; - echo "$matches documents match your search for '<B>$pattern</B>' in the $where:<BR><BR>\n"; - echo "Click here for a <A HREF=\"$sourceurl\">New Search</A><BR><BR>\n"; + echo "$matches documents match your search for '<b>$pattern</b>' in the $where:<br><br>\n"; + echo "Click here for a <a href=\"$sourceurl\">New Search</a><br><br>\n"; makeBar($page,$pages,$baseurl,$firstdisplayed,$lastdisplayed); $i=7; #skip response header - while($i<$rc) { - if ($base=="-") { + while ($i < $rc) { + if ($base == "-") { echo $result[$i]; } else { echo eregi_replace("http://[^.]+\.php\.net/","$base/",$result[$i]); @@ -216,12 +208,12 @@ } echo "<BR>\n"; - makeBar($page,$pages,$baseurl,$firstdisplayed,$lastdisplayed); - echo "<p>Search powered by<BR>\n"; + echo "<p>Search powered by<br>\n"; print_link("http://htdig.sdsu.edu/", make_image("htdig.gif", "ht:dig") ); echo "</p>\n"; } + commonFooter(); ?> Index: phpweb/source.php diff -u phpweb/source.php:1.5 phpweb/source.php:1.6 --- phpweb/source.php:1.5 Sun Jul 1 05:55:12 2001 +++ phpweb/source.php Sun Jul 8 08:13:48 2001 @@ -35,7 +35,7 @@ if (file_exists($page_name) && !is_dir($page_name)) { show_source($page_name); } else if (is_dir($page_name)) { - echo "<P>No file specified. Can't show source for a directory.</P>\n"; + echo "<p>No file specified. Can't show source for a directory.</p>\n"; } if (!strstr($page_name,"include/shared.inc")) { @@ -43,15 +43,16 @@ echo hdelim(); ?> -<P> -The syntax highlighted source is automatically generated by PHP from the plaintext script.<br> -If you're interested in what's behind the <B>commonHeader()</B> and <B>commonFooter()</B> functions, +<p> +The syntax highlighted source is automatically generated by PHP from +the plaintext script.<br> If you're interested in what's behind +the <B>commonHeader()</B> and <B>commonFooter()</B> functions, you can always take a look at the source of the <?php print_link("/source.php?url=/include/shared.inc", "shared.inc"); ?> and <?php print_link("/source.php?url=/include/layout.inc", "layout.inc"); ?> files. And, of course, if you want to see the source of this page, have a look <?php print_link("/source.php?url=/source.php", "here"); ?>. -</P> +</p> <?php } Index: phpweb/support.php diff -u phpweb/support.php:1.44 phpweb/support.php:1.45 --- phpweb/support.php:1.44 Sun Jul 8 04:44:50 2001 +++ phpweb/support.php Sun Jul 8 08:13:48 2001 @@ -5,7 +5,7 @@ <h3>Documentation</h3> <p> A good place to start is by skimming through the ever-growing <a -href="/FAQ.php">FAQ</a>. Then have a look at the online manual and +href="/FAQ.php">FAQ</a>. Then have a look at the online manual and other resources in the <a href="/docs.php">documentation</a> section. </p> @@ -18,7 +18,7 @@ <h3>User Groups</h3> <p> -PHP user groups have started popping up. Christopher +PHP user groups have started popping up. Christopher R. Moewes-Bystrom is running a PHP user group registry at <a href="http://www.phpusergroups.org/">http://www.phpusergroups.org/</a>.<br> As Germanys PHP-community is quite busy, they have their own user groups. @@ -28,7 +28,7 @@ <h3>Sample Code</h3> <p> -Looking for some more sample PHP scripts? Our <A +Looking for some more sample PHP scripts? Our <A HREF="/links.php">links page</A> page lists some archives of sample PHP code - great places to find many example scripts and useful functions, organized for your searching pleasure! @@ -60,7 +60,7 @@ if (isset($maillist)) { # should really grab some email validating routine and use it here. if (empty($email) || $email == 'user@example.com') { - echo "You forgot to specify an email address to be added to the list. "; + echo "You forgot to specify an email address to be added to the list. "; echo "Go back and try again."; } else { $request = strtolower($action); @@ -198,9 +198,9 @@ ?> -<form method="POST" action="http://www.php.net/support.php"> +<form method="post" action="http://www.php.net/support.php"> <p> -<table cellpadding="5" cellspacing="1"> +<table cellpadding="5" cellspacing="1" border="0"> <?php while ( list(, $listinfo) = each($mailing_lists)) { @@ -235,9 +235,9 @@ <p align="center"> <b>Email:</b> -<input type=text name="email" width=40 value="user@example.com"> -<input type=submit name="action" value="Subscribe"> -<input type=submit name="action" value="Unsubscribe"> +<input type="text" name="email" width="40" value="user@example.com"> +<input type="submit" name="action" value="Subscribe"> +<input type="submit" name="action" value="Unsubscribe"> </p> </form> @@ -278,6 +278,7 @@ <?php echo hdelim(); ?> <h1>Local Mailing Lists</h1> + <p> There are also some mailing lists and newsgroups for PHP users that have been set up by others in the community to host local @@ -285,19 +286,20 @@ </p> <ul> - <li><a href="http://www.ilovephp.com/mailinglist/">French Mailing List</a> - <li><a href="news:fr.comp.infosystemes.www.auteurs.php">French Newsgroup</a> - <li><a href="http://www.php-center.de/">German Mailing List</a> - <li><a href="news:de.comp.lang.php">German Newsgroup</a> - <li><a href="mailto:wl-phplista-request@gimli.externet.hu?subject=subscribe">Hungarian Mailing List</a> - <li><a href="http://groups.yahoo.com/group/php_greek">Greek Mailing List</a> - <li><a href="mailto:php3-it-request@michel.enter.it">Italian Mailing List</a> - <li><a href="http://groups.yahoo.com/group/php-pt">Portuguese Mailing List</a> - <li><a href="mailto:lista-subscribe@phpes.com">Spanish Mailing List</a> - <li><a href="http://phptr.baslangic.net/">Turkish Mailing List</a> + <li><a href="http://www.ilovephp.com/mailinglist/">French Mailing List</a></li> + <li><a href="news:fr.comp.infosystemes.www.auteurs.php">French Newsgroup</a></li> + <li><a href="http://www.php-center.de/">German Mailing List</a></li> + <li><a href="news:de.comp.lang.php">German Newsgroup</a></li> + <li><a href="mailto:wl-phplista-request@gimli.externet.hu?subject=subscribe">Hungarian Mailing List</a></li> + <li><a href="http://groups.yahoo.com/group/php_greek">Greek Mailing List</a></li> + <li><a href="mailto:php3-it-request@michel.enter.it">Italian Mailing List</a></li> + <li><a href="http://groups.yahoo.com/group/php-pt">Portuguese Mailing List</a></li> + <li><a href="mailto:lista-subscribe@phpes.com">Spanish Mailing List</a></li> + <li><a href="http://phptr.baslangic.net/">Turkish Mailing List</a></li> </ul> <?php } + commonFooter(); ?> Index: phpweb/tips.php diff -u phpweb/tips.php:1.16 phpweb/tips.php:1.17 --- phpweb/tips.php:1.16 Sun Jul 1 05:55:12 2001 +++ phpweb/tips.php Sun Jul 8 08:13:49 2001 @@ -3,45 +3,53 @@ commonHeader("Cool PHP Tips"); function tipTitle($title,$author='',$date='') { - echo "<HR NOSHADE SIZE=1>\n"; - echo "<FONT SIZE=+1><B>" . $title . "</B></FONT><BR>\n"; + echo hdelim(); + echo "<big><b>" . $title . "</b></big><br>\n"; if ($author || $date) { - echo "<SMALL>\n"; + echo "<small>\n"; if ($author) { - echo "Submitted by " . $author . "<BR>\n"; + echo "Submitted by " . $author . "<br>\n"; } if ($date) { - echo $date . "<BR>\n"; + echo $date . "<br>\n"; } - echo "</SMALL>\n"; + echo "</small>\n"; } - echo "<BR>\n"; + echo "<br>\n"; } ?> -<h3>Cool PHP Tips and Tricks</h3> +<h1>Cool PHP Tips and Tricks</h1> -<P> +<p> This page is going to contain a collection of "neat" tips and tricks -related to PHP. They aren't necessarily be related to actually coding in PHP -(as our first example shows), but they are, in our opinion, pretty cool. -</P> - -<P> -Send your suggestions for tips to <A HREF="mailto:webmaster@php.net">webmaster@php.net</A>. -</P> +related to PHP. They aren't necessarily be related to actually coding +in PHP (as our first example shows), but they are, in our opinion, +pretty cool. +</p> + +<p> +Send your suggestions for tips +to <a href="mailto:webmaster@php.net">webmaster@php.net</a>. +</p> <?php tipTitle('Quick Reference for KDE 2.1', 'Christoph Luehr', '10-Mar-2001');?> -<p>With <a href="http://www.kde.org/">KDE</a> 2.1, it is possible +<p> +With <a href="http://www.kde.org/">KDE</a> 2.1, it is possible to configure the Konqueror web browser to recognize quick reference -URIs, for example: "php:mysql_connect".</p> +URIs, for example: "php:mysql_connect". +</p> -<p>Just open the Konqueror menu "Settings-&gt;Configure Konqueror", +<p> +Just open the Konqueror menu "Settings-&gt;Configure Konqueror", select the tab "Enhanced Browsing", check "Enable Web Shortcuts". +</p> -<p>Then click on "Add..." and fill the dialog:</p> +<p> +Then click on "Add..." and fill the dialog: +</p> <ul> <li>Search provider name: <b>"PHP Manual Quick Reference"</b></li> @@ -49,114 +57,117 @@ <li>URI Shortcuts: <b>php</b></li> </ul> -<p>Voila!</p> +<p> +Voila! +</p> <?php tipTitle('Shortcut URLs for the Manual', '', '08-Mar-2001');?> -<p>You can go directly to PHP manual pages by using a URL such as: -<a href="/strlen">http://www.php.net/strlen</a>.</p> +<p> +You can go directly to PHP manual pages by using a URL such as: +<a href="/strlen">http://www.php.net/strlen</a>. +</p> <?php tipTitle('Adding the Quick Reference to most Javascript-capable Browsers', '', '07-Mar-2001'); ?> -<p>Just right-click (control-click or click-and-hold for Macintosh users) on this link: <a href="javascript:q=document.getSelection();if(!q)void(q=prompt('PHP Reference:',''));if(q)location.href='http://www.php.net/manual-lookup.php?lang=en&function='+escape(q)" title="PHP Quick Reference">PHP Quick Reference</A> and add it to your bookmarks. With some browsers, you may need to edit your bookmarks manually to give the bookmark an easy-to-remember title. You can also edit the bookmark to change the default language by changing 'lang=en' to whatever language you want to use by default. (For example, to pull up the German translation of the manual, you would replace "lang=en" with "lang=de".) +<p> +Just right-click (control-click or click-and-hold for Macintosh users) +on this link: <a href="javascript:q=document.getSelection();if(!q)void(q=prompt('PHP Reference:',''));if(q)location.href='http://www.php.net/manual-lookup.php?lang=en&function='+escape(q)" title="PHP Quick Reference">PHP Quick Reference</A> +and add it to your bookmarks. With some browsers, you may need to edit +your bookmarks manually to give the bookmark an easy-to-remember title. +You can also edit the bookmark to change the default language by changing +'lang=en' to whatever language you want to use by default. (For example, +to pull up the German translation of the manual, you would replace +"lang=en" with "lang=de".) </p> - <?php tipTitle('Adding the Quick Reference to Mozilla and Netscape 6', 'Andr&eacute; Langhorst', '16-Aug-2000'); ?> -<P> -Quick access to PHP documentation and site search for all Mozilla and Netscape 6 users: -</P> - -<OL> - -<LI>Click "Bookmarks -&gt; Manage Bookmarks" -<LI>Create a bookmark in a folder of your choice on the following URL: http://www.php.net/manual-lookup.php?function=%s (or mirror site of your choice) -<UL> -<LI>Choose a name for your bookmark. -</UL> -<LI>Right click the bookmark you´ve created and select "Properties..." -<LI>Choose a "custom keyword" you want to enter in the URL bar, eg. "phpman" and fill it in. -<LI>Click "ok" and open a new browser window. -<LI>Finished. Now you´re able to enter eg. "phpman fgets" to look up the manual entry on the function fgets() or - eg. "phpman building php4" to search all available information how to build php4. -</OL> - +<p> +Quick access to PHP documentation and site search for all Mozilla +and Netscape 6 users: +</p> +<ol> + <li>Click "Bookmarks -&gt; Manage Bookmarks"</li> + <li>Create a bookmark in a folder of your choice on + the following URL: http://www.php.net/manual-lookup.php?function=%s + (or mirror site of your choice) + <ul> + <li>Choose a name for your bookmark.</li> + </ul> + </li> + <li>Right click the bookmark you´ve created and select "Properties..."</li> + <li>Choose a "custom keyword" you want to enter in the URL bar, + eg. "phpman" and fill it in.</li> + <li>Click "ok" and open a new browser window.</li> + <li>Finished. Now you´re able to enter eg. "phpman fgets" to look + up the manual entry on the function fgets() or eg. "phpman building + PHP 4" to search all available information how to build PHP 4.</li> +</ol> <?php tipTitle('Adding the Quick Reference to Internet Explorer 5', 'Colin Viebrock', '28-Jul-2000'); ?> - -<OL> -<LI>If you don't already have the IE5 Tools package, download and install it from -<A HREF="http://www.microsoft.com/Windows/IE/WebAccess/ie5tools.asp" TARGET="_blank" ->www.microsoft.com/Windows/IE/WebAccess/ie5tools.asp</A> - -<LI>Launch the QuickSearch utility (you'll find it on your Links bar) - -<LI>Add a new search shortcut by clicking on "New" and use the following settings: -<UL> -<LI>Shortcut: <B>php</B> -<LI>Search: <B>Custom URL</B> -<LI>URL: <B>http://www.php.net/manual-lookup.php?function=%s</B> -</UL> -... or substitute your favorite mirror site instead of <B>www.php.net</B><BR> -<CENTER> -<IMG SRC="gifs/tips-quickref.gif" BORDER=0><BR> -</CENTER> - -<LI>Click "Ok", then click "Save" to keep your new settings - -<LI>That's it! Try it by typing "php strlen" in the IE Address bar. You should -jump right to the manual entry for strlen. And because the QuickRef code on the -PHP site is smart, you can use it to do general searches of the PHP site. For -example, try typing "php file upload" in your browser. +<ol> + <li>If you don't already have the IE5 Tools package, download and install it from + <a href="http://www.microsoft.com/Windows/IE/WebAccess/ie5tools.asp" target="_blank" + >www.microsoft.com/Windows/IE/WebAccess/ie5tools.asp</a></li> + <li>Launch the QuickSearch utility (you'll find it on your Links bar)</li> + <li>Add a new search shortcut by clicking on "New" and use the + following settings: + <ul> + <li>Shortcut: <b>php</b></li> + <li>Search: <b>Custom URL</b></li> + <li>URL: <b>http://www.php.net/manual-lookup.php?function=%s</b></li> + </ul> + ... or substitute your favorite mirror site instead of <b>www.php.net</b><br> + <div align="center"> + <img src="gifs/tips-quickref.gif" width="317" height="293" border="0" alt="Edit shortcut"><br> + </div></li> + <li>Click "Ok", then click "Save" to keep your new settings</li> + <li>That's it! Try it by typing "php strlen" in the IE Address bar. + You should jump right to the manual entry for strlen. And because the + QuickRef code on the PHP site is smart, you can use it to do general + searches of the PHP site. For example, try typing "php file upload" + in your browser.</li> +</ol> -</OL> - <?php tipTitle('Adding the Quick Reference to Netscape on Linux', 'David Rose', '28-Jul-2000'); ?> -<P> +<p> Further to the example above for Windows/IE users, here's something Linux folk can do: -</P> - -<OL> - -<LI>Create a file called <B>phpfind</B> somewhere on an executable path - -<LI>In that file, write the following code (substituting the path to Netscape, -if necessary): +</p> -<PRE> +<ol> + <li>Create a file called <b>phpfind</b> somewhere on an executable path</li> + <li>In that file, write the following code (substituting the path to Netscape, + if necessary): +<pre> #!/bin/sh /usr/bin/netscape http://www.php.net/manual-lookup.php?function=$1 -</PRE> - -<LI>Save it and type <B>chmod +x phpfind</B> to make it executable +</pre></li> + <li>Save it and type <b>chmod +x phpfind</b> to make it executable</li> + <li>That's it. When you type "phpfind funcionname" on your command line, + Netscape will open the proper URL for you.</li> +</ol> -<LI>That's it. When you type "phpfind funcionname" on your command line, -Netscape will open the proper URL for you. - -</OL> - <?php tipTitle('Quick Reference for Gnome Users', 'Benjamin Curtis', '29-Jul-2000'); ?> -<P> -Here's another search option for Linux users who use Gnome. This is a macro +<p> +Here's another search option for Linux users who use Gnome. This is a macro for gnome's mini-commander panel applet (modified from the Yahoo search that comes with the applet): -<P> +<p> -<P> -<B>Regex:</B><BR> +<p> +<b>Regex:</b><br> ^php: *(.*)$ -</P> +</p> -<P> -<B>Macro:</B><BR> -gnome-moz-remote --newwin http://www.php.net/manual-lookup.php?function=$(echo <BR> +<p> +<b>Macro:</b><br> +gnome-moz-remote --newwin http://www.php.net/manual-lookup.php?function=$(echo<br> '\1'|sed -e ': p;s/+/%2B/;t p;: s;s/\ /+/;t s;: q;s/\"/%22/;t q') -</P> - +</p> <?php commonFooter(); ?>
« previous php.mirrors (#5358) next »