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:
> 
> <!DOCTYPE html>
> <html lang="fr_FR">
> 
> <head>
> <meta charset="utf-8" />
> </head>
> 
> <body>
>   <h1><?php echo 'toto' ;?></h1>
> 
> </body>
> 
> </html>
> 
> 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
every .html file looking for PHP, rather than just the .php files.

Though I do something similar for server side includes, any page with a
.shtml suffix, or any .html page with the X bit set is parsed.  But not
every .html file is parsed, because it doesn't need it.
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to