Skip to content

php code inside html file #3

@yuriechan

Description

@yuriechan

(You can refer all the source code from my "expenseSheet" repository, testGoogleAPI branch)

Q. How can I run PHP code inside HTML file?
p.s. I use server with python -m SimpleHTTPServer 8000
What I have tried but not worked.
==>

  1. creating .htaccess file and include AddType application/x-httpd-php5 .html
  2. change the file extension from index.html to index.php
    →The file is not loaded on browser. The listing of current directory shows up, and when I click index.php to open, I can only download the file.

My code on screen
: Successfully read "Sign in" & "Sign out" button, allowing user login on gmail.
: php source code is directly printed on the browser page.

Huge thanks in advance! 🍡

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions