1

I really don't know what's wrong, will it be the permission? Any help is appreciated!

~/workspace/pset8/bin/ $ ./import US.txt 

PHP Warning: require(/..includes/config.php): failed to open stream: No such file or directory in /home/ubuntu/workspace/pset8/bin/import on line 3

Warning: require(/..includes/config.php): failed to open stream: No such file or directory in /home/ubuntu/workspace/pset8/bin/import on line 3 PHP Fatal error: require(): Failed opening required '/..includes/config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ubuntu/workspace/pset8/bin/import on line 3

Fatal error: require(): Failed opening required '/..includes/config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ubuntu/workspace/pset8/bin/import on line 3

enter image description here

1

You're probably doing this: require("/..includes/config.php");

When you should be doing this: require("../includes/config.php");

If this solves your problem, please click the check mark to accept the answer.

| improve this answer | |
  • Thanks! i have to take easier. – Abdulsadeeq Nov 24 '16 at 13:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .