Phpxref User Guide _php Tutorial

Source: Internet
Author: User

Phpxref is a very good PHP development tool, it can be a program (such as WordPress) all the functions, variables, constants and other categories of records, generate an HTML page list, you can easily find in this list where a function is defined, where is referenced. This is very useful both for a WordPress plugin developer and for those who want to learn about WordPress.
PHPXREF official has a well-made WordPress analysis document: http://phpxref.com/xref/wordpress/, in addition, PHPXREF also produced a variety of PHP program analysis documents, Interested in Google site can search for a bit.

The main features of PHPXREF include

1. File management. No matter what file you are looking for, use it to quickly search, if you have a file with grammatical rules of the comments, Phpxref can also be listed next to the file name, it is easier to understand the function of the use of the document, do not need to find a file over the entire folder, open each file to find comments.

2. Functions, variables, constants, class management. WordPress built-in a variety of powerful functions, classes, whether it is character processing or remote URL reading, etc. have ready-made functions, but we often do not know that this function can be found in WordPress, it is now much easier, search for a bit to find, If in the development process encountered a WordPress function, do not know what it is for, this time to find out where this function is defined, but WordPress inside hundreds of files on where to find? It's better to use Phpxref.

3. file contains management. WordPress requires a lot of include,require contain other files, but occasionally also encounter duplicate contains resulting in an error, although require_once can be resolved, but we also better understand what a script contains the files, to invoke this file is also known. PHPXREF provides a list of included files for each file and the files that are included.

4. Source code highlighting. This feature is also useful, but occasionally makes mistakes in actual testing.

5. Excellent correlation function. When browsing the source code, pointing the mouse to a function name, the function's definition page will appear next to the mouse, as well as the number of times used, in addition, the use of more variable names, you can directly have a page to show all the use of the variable.

Since Phpxref is so powerful, how to use it?

1. First, download the latest program from SF, now the version is 0.7, download that Win32 version is good. Unzip it after downloading.

2.phpxref Directory has a source folder, which is the folder to store sources, the additional download of the WordPress source code here, please note, do not put wordpress/this entire directory in, but the inside of the file put in the line, to ensure that source/index.php,source/wp-content/. Such a format is OK.

3. Run the executable file Phpxref.exe, which will take approximately 1 minutes to generate the document, and suspend other work due to the need for high frequency reading of the hard disk and a large amount of compute consumption CPU resources.

4. Prompt success, the output of this directory is all the documents, it is recommended to use XAMPP on the local debugging, the entire output folder to move to Xampp Htdocs directory, and then change the name to a good memory phpxref, so that you can pass http:// Localhost/phpxref/visited the. The effect and http://phpxref.com/xref/wordpress/are exactly the same, of course, the speed is much faster.

Phpxref also provides a version of the document generated under Linux, but I rarely use Ubuntu, nor go to Ubuntu under test, I think more people need or win system under, if necessary, the win under the generated documents can be moved to the server for everyone to access, You can also make some extra money by placing some Google AdSense ads under the page. But Phpxref generated the document is too big, a 1.2MB WordPress (compressed package), unzip and then generate the document, incredibly want more than 80 MB location! It also needs to be close to 20MB after compression, so I eliminate the desire to put it on my own server (perhaps making duplicate images will be punished by search engines).

In addition to using PHPXREF to generate existing WordPress or other PHP demonstration programs (such as Discuz) to learn, it is useful to use PHPXREF to generate your own PHP program, to verify errors, or to organize code resources. I have learned from PHP so far about 5 large-scale programs (I think it is relatively large, but no one is molded commercial products), almost also wrote 5 times the email address verification function, user name verification function, password verification function, MySQL class ... It seems that we have to use Phpxref to tidy up the resources.

Before using Phpxref, I have also read the introduction provided by awflasher.com and hereby thank you.

http://www.bkjia.com/PHPjc/508259.html www.bkjia.com true http://www.bkjia.com/PHPjc/508259.html techarticle Phpxref is a very good PHP development tool, it can be a program (such as WordPress) all the functions, variables, constants and other categories to record, generate an HTML page list, you can ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.