From 913d3fa2cf83087a58c781bf0faa0ca6338bfabd Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Mon, 23 Dec 2013 11:39:44 -0800 Subject: [PATCH] Most of these don't work, others are just to old. There is maybe one or two here that are ok, but that hardly justifies keeping this alive --- archive/2002.php | 2 +- docs.php | 4 +- index.php | 1 - privacy.php | 1 - sitemap.php | 1 - sitemap.xml | 3 - tips.php | 402 ----------------------------------------------- urlhowto.php | 6 - 8 files changed, 2 insertions(+), 418 deletions(-) delete mode 100644 tips.php diff --git a/archive/2002.php b/archive/2002.php index 1bdb1b265..136690058 100644 --- a/archive/2002.php +++ b/archive/2002.php @@ -155,7 +155,7 @@ site_header("News Archive - 2002", array("generate_modified" => true)); [29-Oct-2002] We added a new option to access our site's content quickly. In addition to URL shortcuts, keyboard shortcuts and - browser specific magic you can now use our + browser specific magic you can now use our Search Bar from the major browsers. Please help us to test this new service, and provide feedback via the bug system (categorize your bug diff --git a/docs.php b/docs.php index d2c39fbc3..66d57e4a0 100644 --- a/docs.php +++ b/docs.php @@ -16,9 +16,7 @@ site_header("Documentation", array("current" => "docs"));

- You can learn how to integrate our online manual with various tools, including - your web browser, on our quick reference tips page. - You can also get more information about php.net URL shortcuts by visiting our + More information about php.net URL shortcuts by visiting our URL howto page.

diff --git a/index.php b/index.php index eaf61eeaa..966684522 100644 --- a/index.php +++ b/index.php @@ -172,7 +172,6 @@ $SIDEBAR = <<< SIDEBAR_DATA

Upgrading to PHP5.5

$announcements

User Group Events

-

Tips and Tricks

Special Thanks

SIDEBAR_DATA; diff --git a/privacy.php b/privacy.php index 806044c96..a493db6fe 100644 --- a/privacy.php +++ b/privacy.php @@ -1,5 +1,4 @@ "footer")); diff --git a/sitemap.php b/sitemap.php index 504a6921a..0554fc49c 100644 --- a/sitemap.php +++ b/sitemap.php @@ -68,7 +68,6 @@ site_header("Sitemap", array("current" => "help"));
  • My PHP.net
  • URL Shortcuts
  • Quick Function Reference
  • -
  • Quick Reference Tips
  • PHP.net Sites List
  • diff --git a/sitemap.xml b/sitemap.xml index de2390dce..06c8225cd 100755 --- a/sitemap.xml +++ b/sitemap.xml @@ -115,9 +115,6 @@ http://php.net/thanks.php - - http://php.net/tips.php - http://php.net/unsub.php diff --git a/tips.php b/tips.php deleted file mode 100644 index bf587817b..000000000 --- a/tips.php +++ /dev/null @@ -1,402 +0,0 @@ -About URL shortcuts -

    - Most of the tips here utilize PHP.net URL shortcuts, so they allow you - more then just function lookups. For more information on what is possible - with our shortcuts, see the URL Howto page. -

    - -

    More on language selection

    -

    - These shortcuts display pages in your own preferred language, as detected - by the PHP site. For more information on language selection, see - the My PHP.net page. -

    -'; -site_header("Quick Reference Tips", array("current" => "help")); - -function tip_title($title, $author = '', $date = '') -{ - echo "
    \n

    $title
    \n"; - echo "Submitted by $author ($date)

    \n"; -} -?> - -

    Quick Reference Tips

    - -

    - On this page, you can find many neat tips and tricks to look up - information about PHP functions and language constructs. - Send your suggestions for tips to the webmasters. -

    - - -

    -This is the complete php manual including user notes that works 100% OFFLINE. -It allows for searching, and quick access by using the Omnibox Feature. -To use the omnibox type > Ctlr+T > Type "OP" > Press (Tab) > Enter the function name -

    -

    -For more info, see -https://chrome.google.com/webstore/detail/mlilmganaobieaclflbciblffhaagnip -

    - - - -

    - PHPDevBar is an addon for Firefox. This toolbar uses the official documentation - from PhD and quickly retrieves method and function definitions. - You can also use it to search in PHP Web sites. -

    -

    - Besides that, PHP Developer Toolbar has a huge list of user groups and server and client tools/links. - The addon also contains PHPClassGen, which allows you to easily generate - a class and its HTML Form just by filling out a form. -

    -

    - The Firefox addon is available at - https://addons.mozilla.org/pt-BR/firefox/addon/php-developer-toolbar/. - See the projects website for more details at http://phpdevbar.org -

    - - - -

    - Rust right-click (control-click or click-and-hold for Macintosh users) - on this link: PHP Quick Reference - 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. -

    -

    - If you want the bookmark toolbar to appear simply press Ctrl+B. -

    - - - -

    - In Opera, go to Tools --> Preferences, and then click on the Search tab. You - should "Add a new search engine" and fill in the appropriate fields. My - choices are below. -

    - -

    - You have to check "Use POST" to be able to type in a query string. -

    -

    - From then on (click OK twice to close the windows) you should be able to search - the function list by typing "p function" in the address bar (or use the - search dropdown menu). You can change "quickref" to "all" if you want to - search all php.net sites, or "manual" for the online documentation. -

    - - - -

    - There are some options for - Apple Dashboard users: -

    - - - - -

    - You can point your search engine setting to a local script on your own webserver, - and set up a PHP script to allow you to use shortcuts provided by other browsers. - See the detailed explanation at - MacOSXHints.com. -

    - - - -

    - The WeberDev Toolbar provides direct - search functions to the PHP function list and the bug database, right from a - browser toolbar. -

    - - - -

    - BBEdit users can put this little AppleScript into the Scripts folder of - BBEdit to look up functions on the PHP website as they type. This will - probably work in other AppleScript supporting text editors too, with - small modifications. The script uses the current selection, or prompts for - a function name, and uses the default browser to show the page at php.net. -

    -
    -tell application "BBEdit"
    -    set fu to selection of window 1 as string
    -    if fu = "" then
    -        set fu to text returned of (display dialog "PHP Function:" default answer "")
    -    end if
    -
    -    if fu is not "" then
    -        set target_URL to "" & fu
    -        open location target_URL
    -    end if
    -end tell
    -
    - - - -

    - Open the Preferences dialog box, select Searches and then Internet Sites. - Click New, add "PHP Quick Reference" as the Title, and - "" as the URL. If - you add a letter in the Key column (eg. "p") you can search using the - address bar with that letter (eg. "p str_replace"). Otherwise, use Edit - → Find (Cmd-F) and select "On the Internet" under Find and choose - "PHP Quick Reference" as the search site. -

    - - - -

    - Just right-click on this link: - PHP Quick Reference - and add it to your bookmarks. Using this bookmark you can directly get to - the documentation page of any function you have selected the name of - on the page, or if there is no selection, you are prompted for a string to - look for. -

    - - - -

    - In KDE 3.0, the PHP quicksearch - is preconfigured, so you can type "php:mail" in Konqueror to get - the mail() function's manual page. -

    - - - -
      -
    1. Press CTRL+D to add a bookmark
    2. -
    3. Edit the bookmark, filling the following fields in: -
      -
      Name
      PHP
      -
      URL
      -
      Smart URL
      -
      Nicknames
      php
      -
      -
    4. -
    5. - You can also add a logo to the bookmark, see our - logos page -
    6. -
    - - - -
      -
    1. Open the Preferences window in OmniWeb, and select Shortcuts.
    2. -
    3. Click the + button to add a shortcut.
    4. -
    5. In the Shortcut column type: php@
    6. -
    7. In the Destination URL column type: %@
    8. -
    9. Close the Preferences window.
    10. -
    - -

    - Now you can search for PHP functions by typing into the URL well. - For instance, php mysql or php strstr. -

    - - - -

    - Add this stuff to search.ini in your Opera directory. -

    - -

    - I replaced one of the existing search engine entries - (number 4 in this case), but there are tools around - that allow you to fully manage the search features of Opera. -

    - -

    - After adding, saving and restarting Opera, I can access the - PHP function list by typing 'p is_dir' in the address bar of - any Opera window. -

    - -
    -[Search Engine 4]
    -Name=PHP
    -URL=
    -Query=
    -Key=p
    -Is post=0
    -Has endseparator=0
    -Encoding=utf-8
    -Search Type=0
    -
    - - - -

    - With KDE 2.1, it is possible - to configure the Konqueror web browser to recognize quick reference - URIs, for example: "php:mysql_connect". -

    - -

    - Just open the Konqueror menu "Settings → Configure Konqueror", - select the tab "Enhanced Browsing", check "Enable Web Shortcuts". -

    - -

    - Then click on "Add..." and fill the dialog: -

    - - - -

    - Voila! -

    - - - -

    - Just right-click (control-click or click-and-hold for Macintosh users) - on this link: PHP Quick Reference - 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. -

    - - - -

    - Quick access to PHP documentation and site search for all Mozilla (including Firebird) - and Netscape 6/7 users: -

    - -
      -
    1. Click "Bookmarks → Manage Bookmarks"
    2. -
    3. - Create a bookmark in a folder of your choice on - the following URL: %s - and choose a name for it. -
    4. -
    5. - Right click the bookmark you have just created and select "Properties..." -
    6. -
    7. - Choose a "custom keyword" you want to enter in the URL bar, - eg. "php" and fill it in. -
    8. -
    9. Click "ok" and open a new browser window.
    10. -
    11. - Finished. Now you are able to enter eg. "php fgets" to look - up the manual entry on the function fgets(). You can also access - PHP.net pages with this shortcut. If you type "php links" you will - get to the links page on our site. -
    12. -
    - - - -
      -
    1. - If you don't already have the IE5 Tools package, download and install it from - www.microsoft.com/Windows/IE/WebAccess/ie5tools.asp -
    2. -
    3. Launch the QuickSearch utility (you'll find it on your Links bar)
    4. -
    5. - Add a new search shortcut by clicking on "New" and use the - following settings: -
        -
      • Shortcut: php
      • -
      • Search: Custom URL
      • -
      • URL: %s
      • -
      -
    6. -
    7. Click "Ok", then click "Save" to keep your new settings
    8. -
    9. - That's it! Try it by typing "php strlen" in the IE Address bar. - You should jump right to the manual entry for strlen(). -
    10. -
    - - - -

    - Further to the example above for Windows/IE users, here's something - Linux folks can do: -

    - -
      -
    1. Create a file called phpfind somewhere on an executable path
    2. -
    3. - In that file, write the following code (substituting the path to Netscape, - if necessary): -
      -#!/bin/sh
      -/usr/bin/netscape $1
      -
      -
    4. -
    5. Save it and type chmod +x phpfind to make it executable
    6. -
    7. - That's it. When you type "phpfind fopen" on your command line, - Netscape will open the fopen() documentation page for you. -
    8. -
    - - - -

    - 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): -

    - -

    - Regex:
    ^php: *(.*)$ -

    - -

    - Macro:
    - gnome-moz-remote --newwin $(echo
    -'\1'|sed -e ': p;s/+/%2B/;t p;: s;s/\ /+/;t s;: q;s/\"/%22/;t q')
    -

    - - diff --git a/urlhowto.php b/urlhowto.php index abf2c4987..b79e9103d 100644 --- a/urlhowto.php +++ b/urlhowto.php @@ -17,12 +17,6 @@ $SIDEBAR_DATA='
  • /searchterm
  • -

    Quick reference tips

    -

    - You can find more - quick reference tips on our site. -

    -

    My PHP.net

    URL shortcut behaviour is greatly influenced by