Jump to content

Recommended Posts

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  :wtf:  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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.