PHP error failed to open stream/failed opening

user2378736

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:

enter image description here

h2ooooooo

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.

enter image description here

You have two options:

  • Rename your init.inc to init.inc.php, csv.inc to csv.inc.php and users.inc to users.inc.php
  • Change your include statements to use include('core/init.inc'); instead.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

PHP error failed to open stream/failed opening

From Dev

PHP - failed to open stream error for uploaded image

From Dev

Doctrine error: "Failed opening required '/tmp/__CG__Source.php' "

From Dev

Doctrine error: "Failed opening required '/tmp/__CG__Source.php' "

From Dev

PHP Fatal error: require_once(): Failed opening required

From Dev

Browsing to phpMyAdmin Fatal Error: Failed opening Message.class.php

From Dev

PHP file opening error

From Dev

PHP file opening error

From Dev

Laravel 5 - PHP Fatal error: require(): Failed opening required vendor/autoload.php

From Dev

Laravel classloader.php error failed to open stream: No such file or directory

From Dev

PHP/WAMP: Failed to open stream error with uploaded file

From Dev

SELinux influences "failed to open stream: Permission denied” PHP error

From Dev

PHP Warning: proc_open(): CreateProcess failed, error code - 267

From Dev

PHP/WAMP: Failed to open stream error with uploaded file

From Dev

Include('/header.php') returns 'failed to open stream' error

From Dev

yii PDO.php error: failed to open stream: No such file or directory

From Dev

Failed to open display error

From Dev

Failed to open display error

From Dev

Failed to open GLOB error

From Dev

New Laravel Project Throwing 500 Error: require(): Failed opening required autoload.php

From Dev

Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php'

From Dev

Fatal error: require_once() [function.require]: Failed opening required global.php

From Dev

Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php'

From Dev

WordPress Fatal error: require(): Failed opening required

From Dev

Hyperlink not opening with ShellExecute failed (error 2)

From Dev

Failed opening sunrise.php for inclusion

From Dev

yum Error:rpmdb open failed

From Dev

Lubuntu error Failed to open "%F"

From Dev

Failed to open a handle to the device when opening GPIO pin

Related Related

  1. 1

    PHP error failed to open stream/failed opening

  2. 2

    PHP - failed to open stream error for uploaded image

  3. 3

    Doctrine error: "Failed opening required '/tmp/__CG__Source.php' "

  4. 4

    Doctrine error: "Failed opening required '/tmp/__CG__Source.php' "

  5. 5

    PHP Fatal error: require_once(): Failed opening required

  6. 6

    Browsing to phpMyAdmin Fatal Error: Failed opening Message.class.php

  7. 7

    PHP file opening error

  8. 8

    PHP file opening error

  9. 9

    Laravel 5 - PHP Fatal error: require(): Failed opening required vendor/autoload.php

  10. 10

    Laravel classloader.php error failed to open stream: No such file or directory

  11. 11

    PHP/WAMP: Failed to open stream error with uploaded file

  12. 12

    SELinux influences "failed to open stream: Permission denied” PHP error

  13. 13

    PHP Warning: proc_open(): CreateProcess failed, error code - 267

  14. 14

    PHP/WAMP: Failed to open stream error with uploaded file

  15. 15

    Include('/header.php') returns 'failed to open stream' error

  16. 16

    yii PDO.php error: failed to open stream: No such file or directory

  17. 17

    Failed to open display error

  18. 18

    Failed to open display error

  19. 19

    Failed to open GLOB error

  20. 20

    New Laravel Project Throwing 500 Error: require(): Failed opening required autoload.php

  21. 21

    Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php'

  22. 22

    Fatal error: require_once() [function.require]: Failed opening required global.php

  23. 23

    Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php'

  24. 24

    WordPress Fatal error: require(): Failed opening required

  25. 25

    Hyperlink not opening with ShellExecute failed (error 2)

  26. 26

    Failed opening sunrise.php for inclusion

  27. 27

    yum Error:rpmdb open failed

  28. 28

    Lubuntu error Failed to open "%F"

  29. 29

    Failed to open a handle to the device when opening GPIO pin

HotTag

Archive