textism refer htaccess
- Started
- Last post
- 4 Responses
- xrusos
i need help with my htaccess file for using textism's refer script.
http://www.textism.com/tools/ref…it told me to put this in my htaccess file:
DirectoryIndex index.html index.htm index.php
AddType application/x-httpd-php .html .htm
php_value auto_prepend_file /dh/cgi-system/refer.phpbut that breaks my site (full of warning tags)
i take out the last line (the php_value one) and it works again, but still doesn't record referrers on my referrer page.
any help?
http://small-fish.com/referrers/…
(and to test referrers, click here: http://small-fsih.com/ryan/ )
- xrusos0
oops, to test referrers... click HERE: http://small-fish.com/ryan/
sorry bout the typo.
- xrusos0
the error i get when i do it the instructed way:
Warning: Unknown(): open_basedir restriction in effect. File(/small-fish.com/referrers/r... is not within the allowed path(s): (/dh/web/phpmyadmin:/tmp:/dh/sol... in Unknown on line 0
Warning: Unknown(/small-fish.com/referrer... failed to open stream: Operation not permitted in Unknown on line 0
Warning: (null)(): Failed opening '/small-fish.com/referrers/refer... for inclusion (include_path='.:/usr/local/lib... in Unknown on line 0
- xrusos0
i think i may have fixed it... please hit me with your best shot...
- xrusos0
turns out all i needed to do was put quotes around my last statement:
php_value auto_prepend_file "/dh/cgi-system/refer.php"
then it worked!