Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish .php page instead of .html at github to demo some php content?

Tags:

github-pages

I am looking at the following demo - http://blueimp.github.com/jQuery-File-Upload/

To my understanding in the demo, php files are being served from github which means php content can be served / run from github.

I understand the process to publish html content from code hosted at github via this link -
http://help.github.com/pages/

I am just curious to know how can I show a .php page as a demo, similar to what is done in blueimp above.

I tried similar thing at http://synechron.github.com/index2.php
but instead of displaying in the browser window the page gets downloaded in Google chrome and in IE9 index.html is displayed.

Thanks in advance !!

like image 762
Anmol Saraf Avatar asked May 31 '12 16:05

Anmol Saraf


People also ask

Can you use PHP on GitHub pages?

GitHub Pages does not support server-side languages such as PHP, Ruby, or Python.


2 Answers

Github Pages is not a full-featured web host. It will not execute PHP, or any other arbitrary code.

like image 178
Wooble Avatar answered Oct 11 '22 07:10

Wooble


No, you can’t.

Github Pages let you serve web client content (HTML, Javascript, CSS) without the need of owning and maintaining a web server. You can make sub folders, map your domain into it. Use tools such as Jekyll or Hugo with some basic programming skills, you can make your site work as good as an CMS.

However, it does not allow you to use any backend technology to process and manipulate data/logic.

So, PHP is not possible.

like image 21
Timothy Quang Phuc Nguyen Avatar answered Oct 11 '22 09:10

Timothy Quang Phuc Nguyen