PHPxref User Guide _ PHP Tutorial

Source: Internet
Author: User
PHPxref User Guide. PHPXref is an excellent PHP development tool that can classify all functions, variables, constants, and other records in a program (such as Wordpress) to generate an HTML webpage list. you can

PHPXref is an excellent PHP development tool that can classify all functions, variables, constants, and other records in a program (such as Wordpress) and generate an HTML webpage list, you can easily find in this list where a function is defined and where it is referenced. This is useful for a Wordpress plug-in developer or anyone who wants to study Wordpress.
PHPXref has an official Wordpress analysis document: Composer.

The main functions of PHPXref include:

1. file management. No matter what file you are looking for, you can use it to quickly search for it. if your file contains comments that comply with the syntax rules, PHPXref can also list it next to the file name, it is easier to understand the functions and functions of this file, and you do not need to open the search comments for each file in order to find a file and repeat the entire folder.

2. manage functions, variables, constants, and classes. Wordpress has a variety of built-in functions and classes with powerful functions. Both character processing and remote URL reading have ready-made functions, but we often don't know that this function can be found in Wordpress, now it's much easier. search for it and find it. if you encounter a Wordpress function during development and do not know what it is for, you need to find out where the function is defined, but where can I find hundreds of files in Wordpress? Use PHPXref.

3. file inclusion management. Wordpress requires a lot of include, require contains other files, but occasionally encounter repeated include errors. although require_once can solve this problem, we 'd better know which files a script contains, you are also aware of the need to call this file. PHPXref provides a list of included files and included files for each file.

4. highlight the source code. This function is also quite practical, but sometimes errors occur in actual tests.

5. excellent association functions. When you browse the source code, place the cursor over a function name, and the function definition page appears next to the mouse, and the number of times the function is used. In addition, you can also use more variable names, you can also directly have a page showing all usage information about this variable.

How can I use PHPxref as powerful as it is?

1. first, download the latest program from SF. The current version is 0.7. just download the win32 version. Download and decompress the package.

2. there is a source folder under the phpxref directory, which stores the source code. put the downloaded Wordpress source code here. Please note that the entire directory of wordpress/should not be put in, but the files in it can be put in. Make sure to use source/index. php, source/wp-content /.. this format is enough.

3.run the executable file phpxref.exe to generate the file. It takes about 1 minute to generate the file. due to the high-frequency reading of the hard disk and high computing consumption of CPU resources, please pause other work.

4. after the prompt is successful, the output directory contains all the documents. we recommend that you use XAMPP for local debugging and move the entire output folder to the htdocs directory of xampp, change the name to phpxref, which can be accessed through http: // localhost/phpxref. Effect and http://phpxref.com/xref/wordpress/ is the same, of course, a lot faster.

PHPXref also provides the version of the document generated in Linux, but I rarely use Ubuntu and have not gone to Ubuntu for testing. I think most people need it in Windows, if necessary, you can move the documents generated under Win to the server for your access, and place Google Adsense ads below the page to make extra profits. However, the file generated by PHPxref is too large. a MB Wordpress (compressed package) is decompressed and the file is generated. it takes more than 80 MB! After compression, it also needs to be close to 20 MB, so I dismissed the desire to put it on my server (maybe duplicate images will be penalized by search engines ).

In addition to using PHPXref to generate existing Wordpress or other PHP demonstration programs (such as Discuz) for learning, you can use PHPXref to generate your own PHP program, it is also useful to check errors or organize code resources. I have written about five large programs since I learned PHP (I think it is relatively large, but none of them is a commercial product ), almost five email address verification functions, user name verification functions, password verification functions, MySQL classes... It seems that you have to use PHPXref to sort out resources.

Before using PHPxref, I have also read the introduction provided by awflasher.com. thank you very much.

Sort (such as Wordpress) all the functions, variables, constants and other classification records, generate an HTML page list, you can...

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.