Warning: include(funck.inc.php): failed to open stream: No such file or directory in C:\xampp\htdocs\search\index.php on line 2

Warning: include(): Failed opening 'funck.inc.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\search\index.php on line 2

help plz what i have to change

4 Years
Discussion Span
Last Post by andyy121

Line 2 of your php script is asking to include a file called "funck.inc.php"

Assuming you wrote this yourself, you may have meant to do include("funck.inc") or, alternatively, include("funck.php")

Whatever it is, the error message is saying that the file you are asking to include does not exist. Find the right name of that file, or if it doesnt exist simply remove that line from line 2 of your main page. However, I would assume that a document titled funck.inc would have all of your function includes, and may be necessary for the rest of your script to run.

If you did not build this page/application yourself, you may need to go back to wherever you got the application and get the include as well.

It is also recommended that you use include_once(), or require_once(), instead of include() as you may one day include the page that is including another page, and it may cause errors down the road when a page tries to load the same page recursively (basically, it will never ending loop an include).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.