Re: PHP and localhost (newbie!!)
| From: | phplists at woodenpickle dot com | Date: | Thu, 11 Apr 2002 04:32:52 +0000 |
| Subject: | Re: PHP and localhost (newbie!!) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92496@lists.php.net to get a copy of this message | ||
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" <kaos@netcabo.pt> wrote in message
news:20020411010255.6474.qmail@pb1.pair.com...
> 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
>
>
>
>