[PHP] PHP as HTML

2002-06-04 Thread Tom Ray

Hey there-

I'm trying to use an .htaccess file to parse .php files as .html does anyone
know how to do this? It doesn't work with the same structure as parsing the
.shtml files.

any suggestions would be great.




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




Re: [PHP] PHP as HTML

2002-06-04 Thread Kevin Stone

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

- Original Message -
From: "Tom Ray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 2:41 PM
Subject: [PHP] PHP as HTML


> Hey there-
>
> I'm trying to use an .htaccess file to parse .php files as .html does
anyone
> know how to do this? It doesn't work with the same structure as parsing
the
> .shtml files.
>
> any suggestions would be great.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




Re: [PHP] PHP as HTML

2002-06-04 Thread Richard Heyes

"Tom Ray" <[EMAIL PROTECTED]> wrote:

> I'm trying to use an .htaccess file to parse .php files as .html does anyone
> know how to do this? It doesn't work with the same structure as parsing the
> .shtml files.

Assuming you're using the module version, add this into your .htaccess file:

  AddType application/x-httpd-php .html

-- 
Richard Heyes
___
This mail sent using V-webmail - http://www.v-webmail.co.uk


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




Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray

I tried this, and it just prompts me to download the file from the server. I
can't see what the issue is.


- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 5:35 PM
Subject: Re: [PHP] PHP as HTML


> AddType application/x-httpd-php .html
> AddType application/x-httpd-php .htm
>
> - Original Message -
> From: "Tom Ray" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 04, 2002 2:41 PM
> Subject: [PHP] PHP as HTML
>
>
> > Hey there-
> >
> > I'm trying to use an .htaccess file to parse .php files as .html does
> anyone
> > know how to do this? It doesn't work with the same structure as parsing
> the
> > .shtml files.
> >
> > any suggestions would be great.
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




RE: [PHP] PHP as HTML

2002-06-04 Thread Peter

Tom, this does work fine... doing what Kevin says...
ie the

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

is PHP installed as a module or cgi ver?

Cheers

-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 5 June 2002 9:49 AM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP as HTML


I tried this, and it just prompts me to download the file from the server. I
can't see what the issue is.


- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 04, 2002 5:35 PM
Subject: Re: [PHP] PHP as HTML


> AddType application/x-httpd-php .html
> AddType application/x-httpd-php .htm
>
> - Original Message -
> From: "Tom Ray" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 04, 2002 2:41 PM
> Subject: [PHP] PHP as HTML
>
>
> > Hey there-
> >
> > I'm trying to use an .htaccess file to parse .php files as .html does
> anyone
> > know how to do this? It doesn't work with the same structure as parsing
> the
> > .shtml files.
> >
> > any suggestions would be great.
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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



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




Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray

you know, that's a good question. How would I determine that on the server?

Peter wrote:

>Tom, this does work fine... doing what Kevin says...
>ie the
>
>AddType application/x-httpd-php .html
>AddType application/x-httpd-php .htm
>
>is PHP installed as a module or cgi ver?
>
>Cheers
>
>-Original Message-
>From: Tom Ray [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, 5 June 2002 9:49 AM
>To: Kevin Stone; [EMAIL PROTECTED]
>Subject: Re: [PHP] PHP as HTML
>
>
>I tried this, and it just prompts me to download the file from the server. I
>can't see what the issue is.
>
>
>- Original Message -
>From: "Kevin Stone" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, June 04, 2002 5:35 PM
>Subject: Re: [PHP] PHP as HTML
>
>
>  
>
>>AddType application/x-httpd-php .html
>>AddType application/x-httpd-php .htm
>>
>>----- Original Message -
>>From: "Tom Ray" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Tuesday, June 04, 2002 2:41 PM
>>Subject: [PHP] PHP as HTML
>>
>>
>>
>>
>>>Hey there-
>>>
>>>I'm trying to use an .htaccess file to parse .php files as .html does
>>>  
>>>
>>anyone
>>
>>
>>>know how to do this? It doesn't work with the same structure as parsing
>>>  
>>>
>>the
>>
>>
>>>.shtml files.
>>>
>>>any suggestions would be great.
>>>
>>>
>>>
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>  
>>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>  
>




Re: [PHP] PHP as HTML

2002-06-04 Thread Pushkar Pradhan

If you do a phpinfo() you get a columen Server API, mine lists CGI as it
is what I installed php as.
> you know, that's a good question. How would I determine that on the server?
>
> Peter wrote:
>
> >Tom, this does work fine... doing what Kevin says...
> >ie the
> >
> >AddType application/x-httpd-php .html
> >AddType application/x-httpd-php .htm
> >
> >is PHP installed as a module or cgi ver?
> >
> >Cheers
> >
> >-Original Message-
> >From: Tom Ray [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, 5 June 2002 9:49 AM
> >To: Kevin Stone; [EMAIL PROTECTED]
> >Subject: Re: [PHP] PHP as HTML
> >
> >
> >I tried this, and it just prompts me to download the file from the server. I
> >can't see what the issue is.
> >
> >
> >----- Original Message -
> >From: "Kevin Stone" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, June 04, 2002 5:35 PM
> >Subject: Re: [PHP] PHP as HTML
> >
> >
> >
> >
> >>AddType application/x-httpd-php .html
> >>AddType application/x-httpd-php .htm
> >>
> >>- Original Message -
> >>From: "Tom Ray" <[EMAIL PROTECTED]>
> >>To: <[EMAIL PROTECTED]>
> >>Sent: Tuesday, June 04, 2002 2:41 PM
> >>Subject: [PHP] PHP as HTML
> >>
> >>
> >>
> >>
> >>>Hey there-
> >>>
> >>>I'm trying to use an .htaccess file to parse .php files as .html does
> >>>
> >>>
> >>anyone
> >>
> >>
> >>>know how to do this? It doesn't work with the same structure as parsing
> >>>
> >>>
> >>the
> >>
> >>
> >>>.shtml files.
> >>>
> >>>any suggestions would be great.
> >>>
> >>>
> >>>
> >>>
> >>>--
> >>>PHP General Mailing List (http://www.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>>
> >>>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >
>
>

-Pushkar S. Pradhan


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




Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray

Thanks. I got the issue figured out. There was an .htaccess file in the 
root of the website that I had forgotten about, it was affecting 
everything due to it's bad config.

Pushkar Pradhan wrote:

>If you do a phpinfo() you get a columen Server API, mine lists CGI as it
>is what I installed php as.
>  
>
>>you know, that's a good question. How would I determine that on the server?
>>
>>Peter wrote:
>>
>>
>>
>>>Tom, this does work fine... doing what Kevin says...
>>>ie the
>>>
>>>AddType application/x-httpd-php .html
>>>AddType application/x-httpd-php .htm
>>>
>>>is PHP installed as a module or cgi ver?
>>>
>>>Cheers
>>>
>>>-Original Message-
>>>From: Tom Ray [mailto:[EMAIL PROTECTED]]
>>>Sent: Wednesday, 5 June 2002 9:49 AM
>>>To: Kevin Stone; [EMAIL PROTECTED]
>>>Subject: Re: [PHP] PHP as HTML
>>>
>>>
>>>I tried this, and it just prompts me to download the file from the server. I
>>>can't see what the issue is.
>>>
>>>
>>>- Original Message -
>>>From: "Kevin Stone" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Tuesday, June 04, 2002 5:35 PM
>>>Subject: Re: [PHP] PHP as HTML
>>>
>>>
>>>
>>>
>>>  
>>>
>>>>AddType application/x-httpd-php .html
>>>>AddType application/x-httpd-php .htm
>>>>
>>>>- Original Message -
>>>>From: "Tom Ray" <[EMAIL PROTECTED]>
>>>>To: <[EMAIL PROTECTED]>
>>>>Sent: Tuesday, June 04, 2002 2:41 PM
>>>>Subject: [PHP] PHP as HTML
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Hey there-
>>>>>
>>>>>I'm trying to use an .htaccess file to parse .php files as .html does
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>anyone
>>>>
>>>>
>>>>
>>>>
>>>>>know how to do this? It doesn't work with the same structure as parsing
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>the
>>>>
>>>>
>>>>
>>>>
>>>>>.shtml files.
>>>>>
>>>>>any suggestions would be great.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>PHP General Mailing List (http://www.php.net/)
>>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>--
>>>>PHP General Mailing List (http://www.php.net/)
>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>
>>
>
>-Pushkar S. Pradhan
>
>
>  
>