Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/31/2017 in all areas

  1. Your account has been archived and you're on Tommy server as well. Escalating to have it unarchived.
    1 point
  2. HTML with the word 'Blank.' in index.html. Yep. CGI is really easy. Here's a simple example: #!/usr/bin/python3.6 print("Content-Type: text/html\n\n") print("HelioHost rules!") The first line says which language the rest of the code is written in. The second line sets the headers so a browser can understand the data that is being sent. The third line is just a simple print comnmand, but since this is cgi the output goes to a browser instead of the command line. If you're curious here's the actual code for https://krydos.heliohost.org/cgi-bin/modules36.py #!/usr/bin/python3.6 print("Content-Type: text/html\n\n") import pip installed_packages = pip.get_installed_distributions() installed_packages_list = sorted(["<td>%s</td><td>%s</td>" % (i.key, i.version) for i in installed_packages]) print("Tommy /usr/bin/python3.6 installed modules:<br><br>") print("<table><tr><th align='left'>Module</th><th align='left'>Version</th></tr>") print("</tr><tr>".join(installed_packages_list)) print("</tr></table>") It just shows all of the modules that have been installed with pip. It doesn't show the default modules that came with python though.
    1 point
  3. It's just a bunch of folders inside public_html. You can put as many projects as you wish on your account, just put the entire thing inside its own folder instead of directly in public_html.
    1 point
×
×
  • Create New...