Re: [users@httpd] php and .htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry,

I have this in an .htaccess file for example:

php_value auto_prepend_file ../../lib/matrix.php

This contains global data/functions, etc.  When I run a script within
the folder where this .htaccess files lives, I get php errors of
undefined classes.  If I simply add an
include("../../lib/matrix.php"); to each file, everything works so I
know the .htaccess isn't doing anything.

Here is what is in the apache conf file:

<Directory "/usr/local/apache2/htdocs">
    Options FollowSymLinks
    AllowOverride All
</Directory>

I simply what it to use any and all .htaccess files.

Thanks!

On 9/15/05, Davide Bianchi <davide@xxxxxxxxxxxxxx> wrote:
> blackwater dev wrote:
> > <snip>
> > [Thu Sep 15 04:28:12 2005] [notice] caught SIGTERM, shutting down
> > [Thu Sep 15 04:28:15 2005] [notice] Apache/2.0.52 (Unix) PHP/5.0.3
> > configured -- resuming normal operations
> 
> It means : ok. now I'm working.
> 
> > can someone shed some light on all this?
> 
> You first.
> *what* are you trying to do?
> 
> > Why can't I use .htaccess files
> 
> Dude! In your whole post you haven't said one single thing about
> .htaccess, there is no trace of what you added to .htaccess,
> what do you want to achieve and what is not working!
> 
> Davide
> 
> --
> Q: What's the difference between Windows 95 and a highly destructive virus?
> A: About 90 MB of hard disk space.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux