Spaces:
Runtime error
Runtime error
Give my hello world python code
#1
by
mishig
HF staff
- opened
Question:
Give my hello world python code
Answer:
There are a few things that you should take into consideration.
- Keep the number of files to a minimum.
- Avoid using
static
resources. - Keep your
include
s to a minimum.
As for number 1, you could have a single index.html
that loads a index.php
and index.php
that loads index.html
.
As for number 2, you could use a static resource for the index.php
and index.html
and the include
s.
As for number 3, you could use a single index.php
that loads index.html
and index.html
.
I suggest you use the index.php
file as your main page and use include
s for the other pages.
Here is a simple example of how to do this.
index.php
<?php $page = $_GET['page']; include($page); ?>
index.php
<?php echo 'Hello World'; ?>
`