Re: Apache 2.0.52 / PHP 4.3.10 Integration Question...

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

 



Robin Getz wrote:

Andrew Kreps wrote:

I had to add this line to my httpd.conf:

AddType application/x-httpd-php .php


I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge )

If I rename the file projects.php and point to that, it works, but that means an entire re-write of the existing GForge.

I guess the question is - how to make a file that does not end in .php or have any extension, be understood as a php file?

Thanks
-Robin

As far as I'm aware, that should work, it has for me in the past, as it has evidewntally worked for you as well.


I often use another way of doing that same sort of thing that might be a valid option for you though:

If you change the filename to end in php (projects.php, or whatever) , then Alias it to a name that doesn't end in .php you'll achieve the same effect:

Alias /projects "/full/path/to/porojects/files/projects.php"

That has worked for me, though you will still need to set AcceptPathInfo, if it isn't already.

Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux