Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for peaceofmind

hi I have this source [code] env = {} env['SERVER_SOFTWARE'] = ''+self.version_string() env['SERVER_NAME'] = self.server.server_name env['GATEWAY_INTERFACE'] = 'CGI/1.1' env['SERVER_PROTOCOL'] = self.protocol_version env['SERVER_PORT'] = str(self.server.server_port) env['REQUEST_METHOD'] = self.command uqrest = urllib.unquote(rest) env['PATH_INFO'] = uqrest env['PATH_TRANSLATED'] = self.translate_path(uqrest) env['SCRIPT_NAME'] = scriptname [/code] how I can print arrays in this format [code] [HTTP_GET_VARS] …

Member Avatar for bumsfeld
0
172
Member Avatar for peaceofmind

hi I have a problem with this source code [code] #fi, fo = os.popen2('c:/python24/python.exe C:/AppServ/webserver/www/index.pyw') #fi, fo = os.popen2('c:/Perl/bin/perl.exe C:/AppServ/webserver/www/wwwp.pl') fi, fo = os.popen2('c:/appserv/php/php.exe C:/AppServ/webserver/www/wphp.php') data = self.rfile.read(nbytes) fi.write(data) fi.close() shutil.copyfileobj(fo, self.wfile) sts = fo.close() [/code] when I try with python or perl it works but with php not. first …

Member Avatar for vegaseat
0
174
Member Avatar for peaceofmind

hi :) i have problem with opening ".py" files in my web server this is the source code: [code] import string,cgi,time from os import curdir, sep from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class MyHandler(BaseHTTPRequestHandler): def do_GET(self): try: if self.path.endswith(".html"): f = open(curdir + sep + self.path) #self.path /index.html self.send_response(200) self.send_header('Content-type', 'text/html') …

Member Avatar for peaceofmind
0
506
Member Avatar for peaceofmind

hi :) I need some help for this script I have -------------------- [CODE]cursor = conn.cursor() cursor.execute("select * from playlist limit 5") result = cursor.fetchall() # iterate through resultset playlist_txt = '' for record in result: mp3id = record[0] mp3_title = record[1] mp3_artist = record[2] playlist_txt += mp3id + mp3_title + …

Member Avatar for peaceofmind
0
203