This is probably a simple fix. Basically, when trying to reroute a wordpress subdirectory the file contents I've moved is unable to 'open stream' for the directory, showing;
Fatal error: require() [function.require]: Failed opening required './shop/wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jackpier/public_html/onemilehigh.co.uk/shop/index.php on line 17
So, I've been trying to include the (include_path='.:/usr/lib/php:/usr/local/lib/php')
into my index.php, but am then showed-
Parse error: syntax error, unexpected T_STRING in /home/jackpier/public_html/onemilehigh.co.uk/shop/index.php on line 17
I must be integrating it incorrectly but don't know in what way. I am really inexperienced with php
Here's my current code:
/** Loads the WordPress Environment and Template */
require('./shop/wp-blog-header.php'); path='.:/usr/lib/php:/usr/local/lib/php');
Again, probably really simple.
You have a syntax error:
require('./shop/wp-blog-header.php'); path='.:/usr/lib/php:/usr/local/lib/php');
^^^^ a 'constant'
What you're attempting to do doesn't work in PHP. If you're trying to change the include path, that's done via ini_set('include_path', ...)
, and must be done BEFORE you try to include/require a file. You do not do this by dumping some random junk onto the same line as an require directive.