Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6

2001-12-03 Thread Stefan Rusterholz

- Original Message -
From: "Erik Price" <[EMAIL PROTECTED]>
To: "René Fournier" <[EMAIL PROTECTED]>
Cc: "Michael B. Weiner" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, December 03, 2001 4:23 PM
Subject: Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6


> I don't think that Sherlock can recognize any file in the /etc
> directories.  If you never use Terminal, then Sherlock is okay, but if
> you do stuff in the Terminal then you are working in levels of your
> computer that Apple has decided to "hide" from most users.  The /etc
> directory is one example of this.  For searches of the hard drive
> outside of the Apple-approved Sherlock-searchable directories, read the
> man page for "find".  In your case, the file is probably located at
> /etc/httpd/httd.conf.  Open this file in pico or emacs, but be sure to
> use "sudo emacs /etc/httpd/httpd.conf" if you are not logged in as root
> because it is not writeable by normal users.

or use locate (you will have to set up the database first). You should be
able to find a tool called "Locator" on www.versiontracker.com which
provides a GUI for locate (although I'd rather use it in terminal).
AND: Sherlock WILL find the files in /etc if you search for "invisible"
files. But unfortunately drag & drop doesn't work for those files and
displayed filepath seems to be wrong (they are always displayed with a path
like "yourharddisk/")

and another tipp for you:
use BBedit (again available at versiontracker.com or www.barebones.com - for
free) if you don't like terminal apps. It has a point "Open hidden..." below
the menu "File" with which you can easily open and edit the httpd.conf (as
erik said it is normally located under /etc/httpd/httpd.conf) . BBedit will
probably tell you that you haven't appropriate rights to edit and save the
file - log out and log in as root again (or chown/chmod the file).

>
>
> Erik
>


Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
--

> On Sunday, December 2, 2001, at 04:15  PM, René Fournier wrote:
>
> > OK, that makes sense--that's what I did under WinME. The only problem
> > is that I can't seem to find the httpd.conf file anywhere. At least,
> > Sherlock is not returning any results. Do you know which directory
> > httpd.conf is in?
> >
> > ...Rene
> >
> > On Sunday, December 2, 2001, at 01:56  PM, Michael B. Weiner wrote:
> >
> >> modify the apache configuration file (i.e. httpd.conf) and add it as
> >> and AddType, as in the following:
> >>
> >>  AddType application/x-httpd-php .php4 .php3 .phtml .php
> >>  AddType application/x-httpd-php-source .phps
> >> HTH
> >> --
> >>
> >> René Fournier wrote:
> >>
> >>> I have successfully installed PHP 4.0.6, and it works! Only problem
> >>> is that Apache only sends files to the PHP module that have a .php
> >>> extension. However, I need to name the files .php4 (long story). As
> >>> it stands, all I see is the actual PHP source, not the output.
> >>>
> >>> Does anyone know how I can change Apache and/or the PHP module to
> >>> recognize .php4 files and execute them as such?
> >>>
> >>> Thanks.
> >>>
> >>> ...Rene
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6

2001-12-03 Thread Erik Price

I don't think that Sherlock can recognize any file in the /etc 
directories.  If you never use Terminal, then Sherlock is okay, but if 
you do stuff in the Terminal then you are working in levels of your 
computer that Apple has decided to "hide" from most users.  The /etc 
directory is one example of this.  For searches of the hard drive 
outside of the Apple-approved Sherlock-searchable directories, read the 
man page for "find".  In your case, the file is probably located at 
/etc/httpd/httd.conf.  Open this file in pico or emacs, but be sure to 
use "sudo emacs /etc/httpd/httpd.conf" if you are not logged in as root 
because it is not writeable by normal users.



Erik


On Sunday, December 2, 2001, at 04:15  PM, René Fournier wrote:

> OK, that makes sense--that's what I did under WinME. The only problem 
> is that I can't seem to find the httpd.conf file anywhere. At least, 
> Sherlock is not returning any results. Do you know which directory 
> httpd.conf is in?
>
> ...Rene
>
> On Sunday, December 2, 2001, at 01:56  PM, Michael B. Weiner wrote:
>
>> modify the apache configuration file (i.e. httpd.conf) and add it as 
>> and AddType, as in the following:
>>
>>  AddType application/x-httpd-php .php4 .php3 .phtml .php
>>  AddType application/x-httpd-php-source .phps
>> HTH
>> --
>>
>> René Fournier wrote:
>>
>>> I have successfully installed PHP 4.0.6, and it works! Only problem 
>>> is that Apache only sends files to the PHP module that have a .php 
>>> extension. However, I need to name the files .php4 (long story). As 
>>> it stands, all I see is the actual PHP source, not the output.
>>>
>>> Does anyone know how I can change Apache and/or the PHP module to 
>>> recognize .php4 files and execute them as such?
>>>
>>> Thanks.
>>>
>>> ...Rene


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6

2001-12-02 Thread Rasmus Lerdorf

In your httpd.conf file, add:

AddType application/x-httpd-php .php4

On Sun, 2 Dec 2001, [ISO-8859-1] René Fournier wrote:

> I have successfully installed PHP 4.0.6, and it works! Only problem is 
> that Apache only sends files to the PHP module that have a .php 
> extension. However, I need to name the files .php4 (long story). As it 
> stands, all I see is the actual PHP source, not the output.
> 
> Does anyone know how I can change Apache and/or the PHP module to 
> recognize .php4 files and execute them as such?
> 
> Thanks.
> 
> ...Rene
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to set file extension php Mac OSX and PHP 4.0.6

2001-12-02 Thread René Fournier

OK, that makes sense--that's what I did under WinME. The only problem is 
that I can't seem to find the httpd.conf file anywhere. At least, 
Sherlock is not returning any results. Do you know which directory 
httpd.conf is in?

...Rene

On Sunday, December 2, 2001, at 01:56  PM, Michael B. Weiner wrote:

> modify the apache configuration file (i.e. httpd.conf) and add it as 
> and AddType, as in the following:
>
>  AddType application/x-httpd-php .php4 .php3 .phtml .php
>  AddType application/x-httpd-php-source .phps
> HTH
> --
>
> René Fournier wrote:
>
>> I have successfully installed PHP 4.0.6, and it works! Only problem is 
>> that Apache only sends files to the PHP module that have a .php 
>> extension. However, I need to name the files .php4 (long story). As it 
>> stands, all I see is the actual PHP source, not the output.
>>
>> Does anyone know how I can change Apache and/or the PHP module to 
>> recognize .php4 files and execute them as such?
>>
>> Thanks.
>>
>> ...Rene
>>
>>
>
> -- Michael B. Weiner, Linux+, Linux+ SME
> Systems Administrator/Partner
> The UserFriendly Network (UFN)
> --
> Linux Registered User #94900  Have you been counted? 
> http://counter.li.org
>
> PGP: 30 1D CC BA 30 30 63 35  CD 58 E0 89 A9 17 CC C0  8C 55 F7 72
>
> .Escape the 'Gates' of Hell
>  `:::'  ...  ..
>   :::  *  `::.::'
>   ::: .::  .:.::.  .:: .::  `::. :'
>   :::  ::   ::  ::  ::  :::::.
>   ::: .::. .::  ::.  `. .:'  ::.
> ...:::.::'   ...
> --
>
>
>
>
>
---
René Fournier
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to set file extension php Mac OSX and PHP 4.0.6

2001-12-02 Thread René Fournier

I have successfully installed PHP 4.0.6, and it works! Only problem is 
that Apache only sends files to the PHP module that have a .php 
extension. However, I need to name the files .php4 (long story). As it 
stands, all I see is the actual PHP source, not the output.

Does anyone know how I can change Apache and/or the PHP module to 
recognize .php4 files and execute them as such?

Thanks.

...Rene


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]