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.

  1. Keep the number of files to a minimum.
  2. Avoid using static resources.
  3. Keep your includes 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 includes.

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 includes 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';
?>

`

Sign up or log in to comment