亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

required include不顯示,required具體的函數文件卻顯示,為什么?

分別是getVerify.php? login.php? image.func.php

<?php
//?require_once?'include.php';
require_once?'../lib/string.func.php';
require_once?'../lib/image.func.php';
verifyImage();

getVerify.php為這樣時,三者皆可顯示,而只包含include時,只有image.func.php能顯示驗證碼,其余2個頁面都是一個×

<?php
session_start();
define("ROOT",dirname(_FILE_));
set_include_path("".PATH_SEPARATOR.ROOT."./lib".PATH_SEPARATOR.ROOT."./core".PATH_SEPARATOR.get_include_path());
require_once?'mysql.func.php';
require_once?'image.func.php';
require_once?'common.func.php';
require_once?'string.func.php';
require_once?'page.func.php';

我的Include.php

正在回答

2 回答

set_include_path("".PATH_SEPARATOR.ROOT."./lib".PATH_SEPARATOR.ROOT."./core".PATH_SEPARATOR.get_include_path());

./lib". ? 變成 ??./lib/". ?試試,其他的諸如此類,在后面加個/。

1 回復 有任何疑惑可以回復我~


Warning: ?require_once(include.php) [function.require-once]: failed to open stream: No such file or directory in D:\AppServ\www\sharing\admin\getVerify.php on line 2

Fatal error: ?require_once() [function.require]: Failed opening required 'include.php' (include_path='.;C:\php5\pear') in D:\AppServ\www\sharing\admin\getVerify.php on line 2



這是頁面的提示,然而文件明明有

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
手把手教你實現電商網站后臺開發
  • 參與學習       117251    人
  • 解答問題       2101    個

手把手教你用PHP搭建電子商務平臺,由淺入深教你搭建電商系統

進入課程

required include不顯示,required具體的函數文件卻顯示,為什么?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號