Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!panix!roy From: Roy Smith Newsgroups: comp.lang.python Subject: Re: cannot concatenate 'str' and 'list' objects Date: Sat, 15 Sep 2012 10:21:21 -0400 Organization: PANIX Public Access Internet and UNIX, NYC Lines: 23 Message-ID: References: <071ad036-77ca-42d3-b68d-0dd3e3fac43e@googlegroups.com> <2138d293-c411-404d-bbf1-1afbae3fc597@googlegroups.com> NNTP-Posting-Host: localhost X-Trace: reader1.panix.com 1347718881 13408 127.0.0.1 (15 Sep 2012 14:21:21 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Sat, 15 Sep 2012 14:21:21 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: csiph.com comp.lang.python:29231 In article , > i see you try to extract only the 1st element of the list, i tried that too > but it gives me now this weird message: > > if you visit my website http://superhost.gr Do you realize that the hosting service you're using (HostGator) is so mis-configured that it is exposing your source code and credentials to the entire world? When I go to that URL, I get a page which includes the name of the CGI script you are running (/home/nikos/public_html/cgi-bin/counter.py). I can then do a GET on http://superhost.gr/~nikos/cgi-bin/counter.py, and can see your script source code, including the credentials to attach to your database: conn = MySQLdb.connect( db = 'nikos_tech', host = 'localhost', user = 'nikos_nikos', passwd = ) How to properly configure a web server is way beyond the scope of this mailing list, but you really need to do some research there to safeguard your own data.