Yeah, basically, in your httpd.conf file you specify the DocumentRoot for
your Apache installation. Then whatever dirs are below that inherit the
AddType(s) and such of the parent. You can add different dirs individually
if you want. Just add the following to your httpd.conf file (you can put
them anywhere in  the file, bottom is ok):

<Directory "C:\WINDOWS\Desktop\work">
AddType application/x-httpd-php .php .phtml .php3
#Next line is optional (for viewing source)
AddType application/x-httpd-php-source .phps
</Directory>

Anyway, you can create a Directory section for any dir on the system that
you want to be able to parse php files in.

Hope it helps,

Bob Weaver

"Tiago SimõEs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello everybody!
>
> I'm just entering the wonderful world of PHP and i already have a doubt. I
> installed the apache server on my Windows ME :-p, to use for local tests.
I
> have to acess it manually (meaning i have to click the apache startup
> everytime i want to do something...). Anyway i proceded to install PHP (on
> c:\php\, and everything went ok. I test my first php file ( a simple echo
> command) at the http://localhost directory (or c:\program files\apache
> group\apache\htdocs). It all went ok. So i started wondering if it
detected
> a php outside of that path, like in the desktop or some other folder
(since
> i'm very keen on having my sites in specif  folders). Unfortunately it
> didn't, it just showed the php as a txt file. Is there anyway to make the
> files readable everywhere?
>
> Thanks in advance,
> Tiago Simões
>
>
>
>



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

Reply via email to