Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php code inside html file #3

Open
yuriechan opened this issue Oct 11, 2018 · 1 comment
Open

php code inside html file #3

yuriechan opened this issue Oct 11, 2018 · 1 comment

Comments

@yuriechan
Copy link

(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! 🍡

@HSE-Group
Copy link

Run the file index.php on server with PHP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants