Why do I get a Warning and a Fatal error when I use ../ ?
Posted
by aliov
on Stack Overflow
See other posts from Stack Overflow
or by aliov
Published on 2010-06-14T18:36:09Z
Indexed on
2010/06/14
18:42 UTC
Read the original article
Hit count: 259
When I use ../mysqlConnect.php
I get the following messages.
Warning: require_once(../mysqlConnect.php) [function.require-once]:
failed to open stream: No such file or directory in /home/content/etc...
Fatal error: require_once() [function.require]: Failed opening required
'../mysqlConnect.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/etc...
When I use the directory name - mydir/mysqlConnect.php
- everything works fine.
© Stack Overflow or respective owner