Getting file in directory with PHP
I'm trying to access a file in a different directory. (I'm using require())
Problem is, I'm getting an error:
Fatal error: require() [function.require]: Failed opening required
'../../../../../../../../wp-blog-header.php'
(include_path='.:/usr/local/php-5.3.27/share/pear') in
/directory/name/located/here/here/here/here/here/phpfile.php on line 3
My wp-blog-header.php is located in directory/name/wp-blog-header.php.
How can I find the file provided that my PHP script needs it from
/directory/name/located/here/here/here/here/here/phpfile.php?
No comments:
Post a Comment