There is a large comment in the first part of the PHP page. how can I find the description?
The content of the comment is as follows:
<Http://www.phpobject.net/> * @ copyright: Copyright 2006 feifengxlq * @ license: version 2.0 * @ create: 2006-5-31 * @ modify: 2006-6-1 * @ modify: feifengxlq 2006-11-4 * description: Super paging class, the four paging modes use the paging style similar to baidu and google by default. * 2.0 added: supports custom styles, custom styles, and PHP4 and PHP5, * to see detail, please visit http://www.phpobject.net/blog/read.php? * Example: * four paging modes: require_once ('.. /libs/classes/page. class. php '); $ page = new page (array ('total' => 1000, 'perpage' => 20); echo 'MoDe: 1
'. $ Page-> show (); echo'
--------------------------------------------------------------------------------
Mode: 2
'. $ Page-> show (2); echo'
--------------------------------------------------------------------------------
Mode: 3
'. $ Page-> show (3); echo'
--------------------------------------------------------------------------------
Mode: 4
'. $ Page-> show (4); enable AJAX: $ ajaxpage = new page (array ('total' => 1000, 'perpage' => 20, 'Ajax '=> 'Ajax _ page', 'page _ name' => 'test'); echo 'MoDe: 1
'. $ Ajaxpage-> show (); use the inherited custom page display mode: demo: http://www.phpobject.net/blog */Class page {/*** config, public */var $ page_name = "PB_page"; // page tag, used to control url pages. For example, xxx. php? PB_page var $ next_page = '>' in PB_page = 2; // Next Page var $ pre_page = '<'; // Previous Page var $ first_page = 'first '; // homepage var $ last_page = 'Lala'; // var $ pre_bar = '<'; // The Last page var $ next_bar = '> '; // var $ format_left = '['; var $ format_right = ']'; var $ is_ajax = false; // whether the AJAX paging mode/*** private **/var $ pagebarnum = 10; // control the number of record entries. Var $ totalpage = 0; // total number of pages var $ ajax_action_name = ''; // AJAX action name var $ nowindex = 1; // var $ url = ""; // url address header var $ offset = 0;/*** constructor *** @ param array $ array ['total'], $ array ['perpage'], $ array ['nowindex '], $ array ['URL'], $ array ['Ajax']... */function page ($ array) {if (is_array ($ array) {if (! Array_key_exists ('total', $ array) $ this-> error (_ FUNCTION __, 'need a param of total '); $ total = intval ($ array ['total']); $ perpage = (array_key_exists ('perpage', $ array ))? Intval ($ array ['perpage']): 10; $ nowindex = (array_key_exists ('nowindex ', $ array ))? Intval ($ array ['nowindex ']): ''; $ url = (array_key_exists ('URL', $ array ))? $ Array ['URL']: '';} else {$ total = $ array; $ perpage = 10; $ nowindex =''; $ url = '';} if ((! Is_int ($ total) | ($ total <0) $ this-> error (_ FUNCTION __, $ total. 'is not a positive integer! '); If ((! Is_int ($ perpage) | ($ perpage <= 0) $ this-> error (_ FUNCTION __, $ perpage. 'is not a positive integer! '); If (! Empty ($ array ['page _ name']) $ this-> set ('page _ name', $ array ['page _ name']); // Set pagename $ this-> _ set_nowindex ($ nowindex); // set the current page $ this-> _ set_url ($ url ); // Set the link address $ this-> totalpage = ceil ($ total/$ perpage); $ this-> offset = ($ this-> nowindex-1) * $ perpage; if (! Empty ($ array ['Ajax ']) $ this-> open_ajax ($ array ['Ajax']); // open the AJAX mode}/*** to set the variable name value in the class. if the change volume does not belong to this class, throw an exception ** @ param string $ var * @ param string $ value */function set ($ var, $ value) {// var_dump (get_object_vars ($ this )); // if (in_array ($ var, get_object_vars ($ this) $ this-> $ var = $ value; // else {// $ this-> error (_ FUNCTION __, $ var. "does not belong to PB_Page! "); //}/*** Enable the inverted AJAX mode ** @ param string $ action: The default ajax-triggered action. */Function open_ajax ($ action) {$ this-> is_ajax = true; $ this-> ajax_action_name = $ action ;} /*** get the code for "next page" ** @ param string $ style * @ return string */function next_page ($ style = '') {if ($ this-> nowindex <$ this-> totalpage) {return $ this-> _ get_link ($ this-> _ get_url ($ this-> nowindex + 1 ), $ this-> next_page, $ style);} return ''. $ this-> next_page. '';}/*** get the code for displaying the previous page ** @ param string $ style * @ return str Ing */function pre_page ($ style = '') {if ($ this-> nowindex> 1) {return $ this-> _ get_link ($ this-> _ get_url ($ this-> nowindex-1), $ this-> pre_page, $ style);} return ''. $ this-> pre_page. '';}/*** get the code for displaying the" homepage "** @ return string */function first_page ($ style = '') {if ($ this-> nowindex = 1) {return ''. $ this-> first_page. '';} return $ this-> _ get_link ($ this-> _ get_url (1), $ this-> first_page, $ style );} /*** get the code for displaying the "last page" ** @ Return string */function last_page ($ style = '') {if ($ this-> nowindex = $ this-> totalpage) {return ''. $ this-> last_page. '';} return $ this-> _ get_link ($ this-> _ get_url ($ this-> totalpage), $ this-> last_page, $ style );} function nowbar ($ style = '', $ nowindex_style ='') {$ plus = ceil ($ this-> pagebarnum/2 ); if ($ this-> pagebarnum-$ plus + $ this-> nowindex> $ this-> totalpage) $ plus = ($ this-> pagebarnum-$ this-> totalpage + $ this -> Nowindex); $ begin = $ this-> nowindex-$ plus + 1; $ begin = ($ begin> = 1 )? $ Begin: 1; $ return = ''; for ($ I = $ begin; $ I <$ begin + $ this-> pagebarnum; $ I ++) {if ($ I <= $ this-> totalpage) {if ($ I! = $ This-> nowindex) $ return. = $ this-> _ get_text ($ this-> _ get_link ($ this-> _ get_url ($ I), $ I, $ style); else $ return. = $ this-> _ get_text (''. $ I. '');} else {break;} $ return. = "\ n";} unset ($ begin); return $ return;}/*** get the code for displaying the jump button ** @ return string */function select () {$ return = ''; for ($ I = 1; $ I <= $ this-> totalpage; $ I ++) {if ($ I ==$ this-> nowindex) {$ return. = ''. $ I. '';} else {$ return. = ''. $ I. '';}} unset ($ I); $ ret Urn. = ''; return $ return;}/*** obtain the value required by limit in the mysql statement ** @ return string */function offset () {return $ this-> offset;}/*** controls the pagination display style (you can add the corresponding style) ** @ param int $ mode * @ return string */function show ($ mode = 1) {switch ($ mode) {case '1 ': $ this-> next_page = 'next page'; $ this-> pre_page = 'previous page'; return $ this-> pre_page (). $ this-> nowbar (). $ this-> next_page (). 'Di '. $ this-> select (). 'Page'; break; case '2': $ this-> next _ Page = 'next'; $ this-> pre_page = 'previous '; $ this-> first_page = 'home'; $ this-> last_page = 'last '; return $ this-> first_page (). "". $ this-> pre_page (). '[page '. $ this-> nowindex. ']'. "". $ this-> next_page (). "". $ this-> last_page (); break; case '3': $ this-> next_page = 'next page'; $ this-> pre_page = 'previous page '; $ this-> first_page = 'homepage'; $ this-> last_page = 'tail'; return $ this-> first_page (). $ this-> pre_page (). $ this-> next_page (). $ this-> l Ast_page (); break; case '4': $ this-> next_page = 'next page'; $ this-> pre_page = 'previous page'; return $ this-> pre_page (). $ this-> nowbar (). $ this-> next_page (); break; case '5': return $ this-> pre_bar (). $ this-> pre_page (). $ this-> nowbar (). $ this-> next_page (). $ this-> next_bar (); break;}/* ---------------- private function (private method) restart * // *** sets the url header address * @ param: String $ url * @ Return boolean */function _ set_url ($ url = "") {if (! Empty ($ url) {// manually set $ this-> url = $ url. (stristr ($ url ,'? '))? '&':'? '). $ This-> page_name. "=";} else {// automatically obtain if (empty ($ _ SERVER ['query _ string']) {// If QUERY_STRING does not exist, $ this-> url = $ _ SERVER ['request _ URI ']. "? ". $ This-> page_name. "=";} else {// if (stristr ($ _ SERVER ['query _ string'], $ this-> page_name. '=') {// the url contains the page parameter $ this-> url = str_replace ($ this-> page_name. '= '. $ this-> nowindex, '', $ _ SERVER ['request _ URI ']); $ last = $ this-> url [strlen ($ this-> url) -1]; if ($ last = '? '| $ Last =' & ') {$ this-> url. = $ this-> page_name. "=";} else {$ this-> url. = '&'. $ this-> page_name. "=" ;}} else {// $ this-> url = $ _ SERVER ['request _ URI ']. '&'. $ this-> page_name. '=';} // end if}/*** sets the current page **/function _ set_nowindex ($ nowindex) {if (empty ($ nowindex) {// The system obtains if (isset ($ _ GET [$ this-> page_name]). {$ this-> nowindex = intval ($ _ GET [$ this-> page_name]) ;}} else {// manually set $ this-> nowindex = I Ntval ($ nowindex );}} /*** return address value for the specified page ** @ param int $ pageno * @ return string $ url */function _ get_url ($ pageno = 1) {return $ this-> url. $ pageno;}/*** get the pagination display text. for example, by default, _ get_text ('1 ') [1] ** @ param String $ str * @ return string $ url */function _ get_text ($ str) {return $ this-> format_left. $ str. $ this-> format_right;}/*** get link address */function _ get_link ($ url, $ text, $ style = '') {$ style = (empty ($ style) )? '': 'Class = "'. $ style. '"'; if ($ this-> is_ajax) {// return'' in AJAX mode ''. $ text. '';} else {return ''. $ text. '';}}/*** error handling method */function Error ($ function, $ errormsg) {die ('error in file '. _ FILE __. ', function '. $ function. '():'. $ errormsg) ;}}?>
Reply to discussion (solution)
Sofa, please explain!
If you use the ide to edit the php file, you can easily find a text in it.
If you use the ide to edit the php file, you can easily find a text in it.
I just published it on IIS. I searched the directory where the project is located and did not find the PHP file containing the information. Will it be set by the configuration file installed in PHP?
I don't have the source file, so I can't find out where it is.
Can I use the search function in windows to search?
If not, you can also install a "zend studio" editor, press "ctrl + h", and search "@ copyright: Copyright 2006 feifengxlq ", it should be easy to find which files contain these strings.
I don't have the source file, so I can't find out where it is.
Can I use the search function in windows to search?
If not, you can also install a "zend studio" editor, press "ctrl + h", and search "@ copyright: Copyright 2006 feifengxlq ", it should be easy to find which files contain these strings.
I used WINDOWS to search. the Project source file does not contain these comments. What is the cause of this situation ??
Windows Search is not powerful enough. it may not be found.
This obviously does not support short tags.
If I have read all the source code of the project, but I still don't have it, I will load the content of other websites.
This obviously does not support short tags.
The moderator is right.
This obviously does not support short tags.
How can I set it to support short tags ??
This obviously does not support short tags.
How can I set it to support short tags ?? It seems that Change
Introduction to short Mark
Http://suoys.blog.163.com/blog/static/1274719092011312694647/
Introduction to short Mark
Http://suoys.blog.163.com/blog/static/1274719092011312694647/
I have enabled and restarted the IIS service.
Then you can write a simple php test page to see if the short mark is successfully run.
After all, the PHP. ini file in the php installation directory is changed. c:/window/php. ini is changed at the beginning. It should be because I am using the PHP installation version, so the configuration file of the installation directory also needs to be adjusted.