andrew wong Posted September 12, 2021 Share Posted September 12, 2021 http://127.0.0.1/phpmysql4_scripts/ch09/view_users.php Your Website catchy slogan... Home Page Register View Users Change Password link five Registered Users Warning: require(../mysqli_connect.php): Failed to open stream: No such file or directory in D:\xampp\htdocs\phpmysql4_scripts\ch09\view_users.php on line 10Fatal error: Uncaught Error: Failed opening required '../mysqli_connect.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\phpmysql4_scripts\ch09\view_users.php:10 Stack trace: #0 {main} thrown in D:\xampp\htdocs\phpmysql4_scripts\ch09\view_users.php on line 10 Other tag works, just View Users have errors I have put the mysqli_connect.php into php\pear folder but it still fails i have tried many times, please give me a help !! Thanks!! Link to comment Share on other sites More sharing options...
Larry Posted September 13, 2021 Share Posted September 13, 2021 So you have the script D:\xampp\htdocs\phpmysql4_scripts\ch09\view_users.php which is including ../mysqli_connect.php. The ../ bit means "go up one directory from the current directory". Up one directory from D:\xampp\htdocs\phpmysql4_scripts\ch09 is D:\xampp\htdocs\phpmysql4_scripts, so the code is looking to include D:\xampp\htdocs\phpmysql4_scripts\mysqli_connect.php. Link to comment Share on other sites More sharing options...
andrew wong Posted September 14, 2021 Author Share Posted September 14, 2021 thanks Link to comment Share on other sites More sharing options...
Recommended Posts