Re: php scripts in html files

2025-04-04 Thread Mike Wright
On 3/20/25 14:39, François Patte wrote: Le 2025-03-20 21:24, Mike Wright a écrit : On 3/20/25 10:02, François Patte wrote: Bonjour, I can't get working a php script in an html file: the same file:    returns "toto" in toto.php and nothing in toto.html I tried many things: .htac

Re: php scripts in html files

2025-03-27 Thread bruce
Hi. Server Side Scripting.. on my todo to research further.. I seem to recall the basic tech was to have "stuff" inserted in the html for execution on/by the server process.. Am I off base in recalling. At the same time, what does the implementation of SSI/HTML do that can't be easily handled by

Re: php scripts in html files

2025-03-24 Thread Mike Wright
On 3/20/25 10:02, François Patte wrote: Bonjour, I can't get working a php script in an html file: the same file:   returns "toto" in toto.php and nothing in toto.html I tried many things: .htaccess with AddHandler application/x-httpd-php .htm .html AddType application/x-httpd-

Re: php scripts in html files

2025-03-22 Thread Tim via users
On Fri, 2025-03-21 at 10:05 -0400, bruce wrote: > Server Side Scripting.. on my todo to research further.. I seem to > recall the basic tech was to have "stuff" inserted in the html for > execution on/by the server process.. > Am I off base in recalling. > > At the same time, what does the implem

Re: php scripts in html files

2025-03-21 Thread Tim via users
On Fri, 2025-03-21 at 17:06 +1030, Tim via users wrote: > I'm not sure that's a wise idea. Now the server would have to parse > every .html file looking for PHP, rather than just the .php files. Supplemental info that may be related to why the original poster is thinking of doing this... Many ye

Re: php scripts in html files

2025-03-21 Thread Mike Wright
On 3/20/25 23:36, Tim via users wrote: On Thu, 2025-03-20 at 18:02 +0100, François Patte wrote: I can't get working a php script in an html file: the same file: returns "toto" in toto.php and nothing in toto.html I'm not sure that's a wise idea. Now the server would have to

Re: php scripts in html files

2025-03-20 Thread Tim via users
On Thu, 2025-03-20 at 18:02 +0100, François Patte wrote: > I can't get working a php script in an html file: the same file: > > > > > > > > > > > > > > > > returns "toto" in toto.php and nothing in toto.html I'm not sure that's a wise idea. Now the server would have to parse ever

Re: php scripts in html files

2025-03-20 Thread Mike Wright
On 3/20/25 10:02, François Patte wrote: Bonjour, I can't get working a php script in an html file: the same file:   returns "toto" in toto.php and nothing in toto.html I tried many things: .htaccess with AddHandler application/x-httpd-php .htm .html AddType application/x-httpd-

Re: php scripts in html files

2025-03-20 Thread bruce
the same process should work under fc. find a site that has what you want to test. make sue it sets up ur server with the appropriate settings modules etc. and test it. it should work. On Thu, Mar 20, 2025, 5:39 PM François Patte < francois.pa...@mi.parisdescartes.fr> wrote: > Le 2025-03-20

Re: php scripts in html files

2025-03-20 Thread François Patte
Le 2025-03-20 21:24, Mike Wright a écrit : On 3/20/25 10:02, François Patte wrote: Bonjour, I can't get working a php script in an html file: the same file:   returns "toto" in toto.php and nothing in toto.html I tried many things: .htaccess with AddHandler application/x-httpd

php scripts in html files

2025-03-20 Thread François Patte
Bonjour, I can't get working a php script in an html file: the same file: returns "toto" in toto.php and nothing in toto.html I tried many things: .htaccess with AddHandler application/x-httpd-php .htm .html AddType application/x-httpd-php .html Or modify some lines in /etc/ht