These are the errors I have:
Warning: include(core/init.inc.php):
failed to open stream: No such file or directory in test.php on line 2
Warning: include(): Failed opening '/core/init.inc.php'
for inclusion (include_path='.;C:\php\pear') in test.php on line 2
Here is my code:
init.inc.php
<?php
$path = dirname(__FILE__);
include("{$path}/inc/csv.inc.php");
include("{$path}/inc/users.inc.php");
?>
test.php
<?php
include('/core/init.inc.php');
?>
Normally I should have at this white screen, but I got all errors immediately, anyone have any idea that this could be?
I followed this tutorial on the web: https://www.youtube.com/watch?v=TqhSrBJHTIY (3 parts)
I think I have as in the tutorial. Yet done the same:
As written in the comments, your files are not called .inc.php
- they're called .inc
. That means that init.inc.php
in fact, does not exist, but init.inc
does.
You have two options:
init.inc
to init.inc.php
, csv.inc
to csv.inc.php
and users.inc
to users.inc.php
include
statements to use include('core/init.inc');
instead.Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments