Jump to content

lewmur

New Members
  • Posts

    2
  • Joined

  • Last visited

lewmur's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So simple!!! I just save the .html file as a .php and it works!! Thanks!!
  2. I'm an 83 yr old retired computer consultant and I'm trying to write a simple program to display info from a text file. I'm running PHP8.1.2 from a Mint 21 box. I have apache2 installed and modified the apache2.conf file to change AllowOverride to All. I created the .htaccess file in the /var/www/html folder with the line AddType application/x-httpd-php81 .php .php5 .htm .html If I run the PHP code in a .php file, it works fine. But I want to change the white background to an image and the only way I see to do that is in HTML. But when I put the PHP code in the HTML file, it just displays the code. What am I doing wrong????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.