Edit report at https://bugs.php.net/bug.php?id=63026&edit=1
ID: 63026 Updated by: larue...@php.net Reported by: ian dot xspace at yahoo dot cn Summary: require_once error -Status: Feedback +Status: Not a bug Type: Bug Package: *Compile Issues Operating System: windows 7 PHP Version: 5.3.16 Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. å°ç°å¨, æ确认è¿ä¸ªårequire once没ä»ä¹å ³ç³»äº, ä¹è®¸ä½ çå®æ¬èº«å°±æ²¡å®ä¹å¥½, æè å ¶ä»çä»ä¹åå é æççèµ·æ¥æªå¼çç»è®º, å ³éè¿ä¸ªæ¥å, å»ºè®®ä½ å¤æè°è¯ä¿¡æ¯, å¤å ³æ³¨é误è¾åºå»ææ¥. thanks Previous Comments: ------------------------------------------------------------------------ [2012-09-13 05:46:51] ian dot xspace at yahoo dot cn return array( 'M'=>'MODELS', 'V'=>'VIEWS', 'C'=>'CTRLS', 'L'=>'LIBS', 'P'=>'PLNS', 'H'=>'HLP' ); å ³é®æ¯è¿ç§æ åµä¸æè°ç¨å¾å¤ç±»é½æåäºï¼ä¸æ¯åºè¯¥å¤±è´¥çåï¼ä¸é¢ææ¯æ£ç¡®åæ³ return array( 'M'=>MODELS, 'V'=>VIEWS, 'C'=>CTRLS, 'L'=>LIBS, 'P'=>PLNS, 'H'=>HLP ); ------------------------------------------------------------------------ [2012-09-12 10:30:46] re...@php.net â$obj = $this->loadCS('M.share_model');//è°ç¨å ¶å®ç±» //ä½ å¯ä»¥å¤è°ç¨å 个类ï¼å¨ä¸é¢é误åæ³æ åµä¸ï¼æçç±»å¯ä»¥è°ç¨æåï¼æç失败 //sysModule éç对åºå ³ç³»ï¼åºè¯¥è¿ä¹å'C'=>CTRLS,åè æ éå¼å· â require_onceçè·¯å¾æ¯ç´æ¥æ¼çï¼èä¸ä¸æ¯autoloadï¼ ä»è¿é没æå ¶ä»çä¾åï¼å¦æé¨åç±»å大å°åéäºï¼å°±ä¼åºç°é¨åç±»æ¾ä¸å°çæ åµã å¨requireåå¢å 个æ£æ¥å°±è½ç¡®è®¤æè æé¤è¿ä¸ªé®é¢äº ------------------------------------------------------------------------ [2012-09-12 10:25:08] larue...@php.net ä½ ä»åªéçåºæ¥å大å°åæå ³ç³»ç? ------------------------------------------------------------------------ [2012-09-12 10:15:04] re...@php.net çä½ è¿æ åµï¼æå¯è½æ¯ä½ ç大å°åé®é¢ï¼ ä½ æ¯ç´æ¥require_onceçï¼å¦æ大å°åéäºæ¯æé®é¢çã 为äºå¥½è°è¯ï¼ä½ å¯ä»¥å¨require_once åå ä¸ä¸ªif(!file_exists($file) {die($file not found)} æ£æ¥ä¸ä¸ã ä½ ç¡®è®¤ä¸ä¸æ件çç¡®åå¨å§ã åæ¶ï¼æ¯å¨ä¸è¡ï¼æä½ ç代ç å®æ´æå ä¼ å°æ个å°æ¹å§ãã ------------------------------------------------------------------------ [2012-09-12 02:03:08] larue...@php.net é£äºç±»åå¯ä»¥æ£ç¡®å è½½ ,é£äºç±»åä¸å¯ä»¥? ä½ ä¸¾ä¸ªä¾å? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=63026 -- Edit this bug report at https://bugs.php.net/bug.php?id=63026&edit=1