How do I use Python on my website?

Status
Not open for further replies.

ShedoSurashu

Member
Prime Account
Messages
42
Reaction score
0
Points
6
The following code doesn't seem to work:

Code:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import sys;
print(sys.version);

The above code only displays the text as it is. I also tried calling the python file from a PHP file via:

Code:
<?php
echo exec('python python.py');
?>

That also to no avail. It just returned "Warning: exec() has been disabled for security reasons in /home/shedo/public_html/python.php on line 5".

But this page http://x10hosting.com/wiki/Plan_Comparison says that I have Python. As well as CGI, Perl, and ASP.net. Can anyone help me out?
 
Last edited:
Status
Not open for further replies.
Top