Click here to Skip to main content
15,938,218 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Warning: include(..admin/config/dbcon.php): Failed to open stream: No such file or directory in E:\xampp\htdocs\rajpie-ecom-one\functions\myfunction.php on line 4


What I have tried:

Need to resolve the path problems in php
Posted
Updated 10-Dec-22 19:21pm

1 solution

Look at the error message, it's pretty clear and explicit:
Error
Warning: include(..admin/config/dbcon.php): Failed to open stream: No such file or directory in E:\xampp\htdocs\rajpie-ecom-one\functions\myfunction.php on line 4

It's saying that line 4 of your file "dbcon.php" is trying to include a specific .PHP file at a very specific location:
Path
E:\xampp\htdocs\rajpie-ecom-one\functions\myfunction.php

And it's saying that some art of that path does not exist, or isn't available at that moment (for example a networked drive that is located on a computer that isn't switched on).

There is nothing we can do to help you: we have no access to your computer or it's file system!
So start by looking for the file using Windows explorer: follow the path explicitly and see if the whole path is spelled correctly, and that the file does exist. If it doesn't ... well, that's obvious.

If it does, start checking access permissions for the user that is executing your code.

Sorry, but we can't do any of that for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900