Jbudone Posted March 20, 2011 Share Posted March 20, 2011 Where am I? Is this the Twilight Zone? I am utterly lost here! How is it possible that I create a .htaccess file in my root directory (next to index.php), then write index.php as. <?php echo ini_get('include_path'); exit; ?> my .htaccess with, php_value include_path ".;J:/JStuff/Work/Personal/Webspace/summit" (note: I also tried : instead of ; ..and.. \\ instead of / ) The results? The EXACT same as what php.ini defines =[ hmm...what if I put this code directly into my httpd-vhosts.conf file, with this given directory, <VirtualHost *:80> ServerAdmin jbud@live.ca DocumentRoot "J:/JStuff/Work/Personal/Webspace/summit" ServerName jbud.local ServerAlias www.jbud.local <Directory J:/JStuff/Work/Personal/Webspace/summit> Order Deny,Allow Allow from 127.0.0.1 php_value include_path ".;J:/JStuff/Work/Personal/Webspace/summit" </Directory> </VirtualHost> And success! It now prints out the new include_path..but this is not a solution I can accept because although this will work on my localhost, I don't think that my online host will allow me to rewrite this info, or any future hosts that I may switch to. I decided to look further into this...perhaps I could rewrite my AccessFileName from httpd.conf (this value IS stored inside httpd.conf....isn't it?) . Well, I couldn't even find that key AT ALL inside the file how is this possible!? But I added it myself at the very bottom of the file anyways: AccessFileName .htaccess Trying the same tests produces, yet again, the default values given from php.ini INSTEAD of my .htaccess stuff. I've tried putting other pieces of code in my .htaccess file, just completely random snippets I found around google to see if anything would happen. But it appears as if its completely ignoring the file altogether. What is going on here?! D= #utterlylost Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted March 20, 2011 Share Posted March 20, 2011 Do you have an AllowOverride setting in your httpd.conf file that would allow the .htaccess file to change any settings? Quote Link to comment Share on other sites More sharing options...
Jbudone Posted March 20, 2011 Author Share Posted March 20, 2011 Wow that was exactly what I needed! Thanks for the reply PFMaBiSmAd =] I didn't realize I had to activate .htaccess and its settings . After adding in an AllowOverride All in the global directory, it worked like a charm! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.