Reply to Re: [PHP] Use of auto_prepend_file inside an Apache directory container

Your name:

Reply:


Posted by Jasper Bryant-Greene on 10/20/66 11:31

On Tue, 2005-11-08 at 13:43 -0700, Dan Trainor wrote:
> Well, the problem is simple; it just doesn't work. No script is
> prepended to the page that I access from within /demo/protected. My
> prepend script consists of the following line of code:
>
> <? echo "This is prepended.<br /><br />"; ?>
>
> Sorry about that.

Thanks. Have you tried putting quotes around the auto_prepend_file value
in .htaccess? I'm thinking maybe Apache is messing with the path
somehow. Something like:

php_value auto_prepend_file "/absolute/path/to/file.php"

Oh, and you probably know this, but make sure AllowOverride is set
correctly in your main Apache config file; try setting it to All for
debugging this.

--
Jasper Bryant-Greene
General Manager
Album Limited

e: jasper@album.co.nz
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация