JCsniper 0 Newbie Poster

I need to integrate this script to the web how i can do that? help me please!

import sys
import gammu
import os
import copy, re
import commands


message = ""
number = ""
message = raw_input("Write a message")
number = raw_input("Enter the number to send d sms")
gam = 'echo \"'+message+'\"|gammu nothing --sendsms Text '+number
sms = commands.getoutput(gam)
url = ('/home/jcarlos/SMS/log.txt')
file = open (url, 'w')
file.write(sms)
file.close()