2

I have a github page in which there's an "a" tag (). When the user clicks on it i want them to be redirected to a php page, which is in another repository. Which path should i put in "href"?

On local this works

<a href="http://localhost/index1.php"
onclick="window.open(this.href); return false">Use the online tool.</a>
nesrine
  • 59
  • 1
  • 1
  • 3
  • 2
    GitHub pages are static, so they don't support running/executing `.php` files. If you want to link to the source code of a `.php` file you can find that file in your repository and click the `Raw` link and link to that. – brombeer Aug 13 '19 at 08:11
  • "Which path should i put in "href"?" — The URL to whatever webserver (not git repository) which supports PHP (so not GitHub Pages) and where you deploy the PHP script to. – Quentin Aug 13 '19 at 09:08

1 Answers1

1

GitHub gh-pages will not execute PHP code. It only handles static content for now.

Abulurd
  • 1,018
  • 4
  • 15
  • 31