Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > alt.comp.lang.php > #69

Re: Newbie needs recommendation for fast learning a little php.

From rcpj@panix.com (Pierre Jelenc)
Newsgroups comp.lang.php, alt.comp.lang.php, alt.php
Subject Re: Newbie needs recommendation for fast learning a little php.
Date 2021-07-02 23:02 +0000
Organization Public Access Networks Corp.
Message-ID <sbo5ut$n7p$1@reader1.panix.com> (permalink)
References <rdbmdghp8532b2sgknb9iqv6a0i6vlom8p@4ax.com> <4mcqdgtiqjshpeg88h50b5l97fp3qmflfu@4ax.com> <sblcg5$igi$1@reader1.panix.com> <lb4vdg1uqp8p7hhirnni6uqk2h147m0eq3@4ax.com>

Cross-posted to 3 groups.

Show all headers | View raw


In article <lb4vdg1uqp8p7hhirnni6uqk2h147m0eq3@4ax.com>,
 <Not_even_a_newbie@example.net> wrote:
>On Thu, 1 Jul 2021 21:36:05 -0000 (UTC), rcpj@panix.com (Pierre
>Jelenc) wrote:
>
>>In article <4mcqdgtiqjshpeg88h50b5l97fp3qmflfu@4ax.com>,
>> <Not_even_a_newbie@example.net> wrote:
>>>
>>>Thanks for clarifying that. I don't control the server, but I've read
>>>that those who do can allow html files to be scanned for php code.
>>>Maybe my Web host has in fact done that. Would I be able to find some
>>>notation about that in the Web host's phpinfo.php file?
>>
>>You don't need to control the server itself; many hosts --indeed all the 
>>good ones, I say-- allow you to redirect .html to the PHP engine one way 
>>or another, typically from .htaccess with AddType and AddHandler 
>>directives. Check your host's help system or file a support ticket, they 
>>probably have a FAQ answer ready.
>
>I have apparently gotten the server to process PHP scripts inside the
>HTML file. Things is, that's kind of wasteful and may slow things
>down, for me and for others. I did read on one of the many Web pages
>I've been looking at over this topic that besides putting "AddType
>application/x-httpd-php .html" into my .htaccess file, and making ALL
>HTML files get processed for any PHP scripts, that there was also a
>way to do it for a single file. I have about five files I need to do
>this modification notice for.
>
>The code for a single file that I saw was "<Files yourpage.html>
>AddType application/x-httpd-php .html </Files>" where yourpage.html
>was whatever that one file was named.
>
>Does anyone know if it's possible to use that declaration, or
>something like it, in the .htaccess file so that only the five HTML
>files that really need to have PHP processed will get processed and
>all other HTML files will not be?

It should work (but again, it depends on the way the server is set up). 
Alternatively, rename the relevant files to .htm and redirect .htm to PHP 
but leave .html alone.

Pierre
-- 
Pierre Jelenc	
		The Gigometer		www.gigometer.com
                The NYC Beer Guide      www.nycbeer.org

Back to alt.comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-06-29 10:30 -0400
  Re: Newbie needs recommendation for fast learning a little php. "J.O. Aho" <user@example.net> - 2021-06-29 21:01 +0200
    Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-06-30 05:58 -0400
    Tell him to go to He Llo <ya12983@mail.com> - 2021-08-16 05:26 -0700
  Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-06-30 08:08 -0400
    Re: Newbie needs recommendation for fast learning a little php. Arno Welzel <usenet@arnowelzel.de> - 2021-06-30 15:09 +0200
      Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-06-30 13:46 -0400
        Re: Newbie needs recommendation for fast learning a little php. Arno Welzel <usenet@arnowelzel.de> - 2021-07-01 10:49 +0200
    Re: Newbie needs recommendation for fast learning a little php. "J.O. Aho" <user@example.net> - 2021-06-30 16:24 +0200
      Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-06-30 13:49 -0400
        Re: Newbie needs recommendation for fast learning a little php. "J.O. Aho" <user@example.net> - 2021-06-30 22:23 +0200
          Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-01 00:49 -0400
            Re: Newbie needs recommendation for fast learning a little php. "J.O. Aho" <user@example.net> - 2021-07-01 08:03 +0200
            Re: Newbie needs recommendation for fast learning a little php. Arno Welzel <usenet@arnowelzel.de> - 2021-07-01 12:35 +0200
              Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-02 18:21 -0400
                Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-02 19:36 -0400
                Re: Newbie needs recommendation for fast learning a little php. John-Paul Stewart <jpstewart@personalprojects.net> - 2021-07-02 20:01 -0400
                Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-03 00:08 -0400
                Re: Newbie needs recommendation for fast learning a little php. Arno Welzel <usenet@arnowelzel.de> - 2021-07-03 15:40 +0200
                Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-03 14:36 -0400
            Re: Newbie needs recommendation for fast learning a little php. rcpj@panix.com (Pierre Jelenc) - 2021-07-01 21:36 +0000
              Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-02 18:49 -0400
                Re: Newbie needs recommendation for fast learning a little php. rcpj@panix.com (Pierre Jelenc) - 2021-07-02 23:02 +0000
        Re: Newbie needs recommendation for fast learning a little php. Arno Welzel <usenet@arnowelzel.de> - 2021-07-01 12:29 +0200
  Re: Newbie needs recommendation for fast learning a little php. Ray_Net <Ray_Net@picarre.be.invalid> - 2021-06-30 23:03 +0200
    Re: Newbie needs recommendation for fast learning a little php. Not_even_a_newbie@example.net - 2021-07-02 18:07 -0400
  Re:Newbie needs recommendation for fast learning a little php. Blue Hat <blue_hat@hackershaven.com.jm> - 2021-08-08 13:43 -0500
    Re: Newbie needs recommendation for fast learning a little php. "He, who travels time to time" <he1983912@aol.com> - 2022-09-22 07:14 -0700

csiph-web