开发者

how do i access my root folders, through my php script?

开发者 https://www.devze.com 2023-01-17 11:31 出处:网络
i have this include function in a file inside another folder called ajax, but it wnt let me access this include file:

i have this include function in a file inside another folder called ajax, but it wnt let me access this include file:

include("includes/connect.php");

i dont know what to do, thanks, and im using localhost?

Warning: include(includes/connect.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\final\ajax\moreProfileUpdates.php on line 2
开发者_StackOverflow社区


Your include() function is trying to locate ajax/includes/connect.php, which doesn't exist. Try changing it to:

// assumes 'includes' directory is one directory up from the 'ajax' directory
include '../includes/connect.php';
0

精彩评论

暂无评论...
验证码 换一张
取 消