On Sun, Sep 16, 2012 at 4:10 AM, Νικόλαος Κούρας wrote:
> ah yes in the index.html page yes...yes i totally forgot about that, that
> bwas before creating the python counter logging when i was thinking other
> ways of solving this matter.
So it's like I was saying, redundant. :)
> What about t
Τη Σάββατο, 15 Σεπτεμβρίου 2012 9:03:00 μ.μ. UTC+3, ο χρήστης Chris Angelico
έγραψε:
> On Sun, Sep 16, 2012 at 3:59 AM, Νικόλαος Κούρας
> wrote:
>
> > What hidden form value?
>
> >
>
> > you mean page variable does not needed? please clarify.
>
> >
>
> > Also i dont know what to do if someo
On Sun, Sep 16, 2012 at 3:59 AM, Νικόλαος Κούρας wrote:
> What hidden form value?
>
> you mean page variable does not needed? please clarify.
>
> Also i dont know what to do if someone enters a false entry as content for
> htmlpage.
You have this:
What is that for? Is it needed?
ChrisA
--
ht
What hidden form value?
you mean page variable does not needed? please clarify.
Also i dont know what to do if someone enters a false entry as content for
htmlpage.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Sep 16, 2012 at 3:26 AM, Νικόλαος Κούρας wrote:
> aahhh! alo it needed change to
>
> page = form.getvalue('htmlpage')
>
> now its working! at last!
>
> but can you please tell me what was wrong?
>
> Tha names of the variables was the same both in counter.py and the .htaccess
>
> But why wa
Τη Σάββατο, 15 Σεπτεμβρίου 2012 8:22:39 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας
έγραψε:
> Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:56:31 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>
> > On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας
> > wrote:
>
> >
>
> > > The 'page' form field is of couse ne
Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:56:31 μ.μ. UTC+3, ο χρήστης Chris Angelico
έγραψε:
> On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας
> wrote:
>
> > The 'page' form field is of couse neccessary because how else the python
> > counter.py script would know which html file triggered it so to pr
On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας wrote:
> The 'page' form field is of couse neccessary because how else the python
> counter.py script would know which html file triggered it so to present it
> and do its log thing?(i intend to create a few html files)
>
> I still do not see why
Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:25:15 μ.μ. UTC+3, ο χρήστης Chris Angelico
έγραψε:
First, decide whether or not you need the 'page' form
>
> field. Either it's redundant or it's necessary.
>
>
>
> 1) If it's redundant: Easy. Delete it. Your page will begin working again.
>
> 2) If it's nece
On 09/15/2012 10:23 AM, Νικόλαος Κούρας wrote:
I swicthed back my code to: f = open( '../' + page )
and http://superhost.gr works which means that line gets parsed correctly.
Only when i post data to the text area boxes iam getting the error:
cannot concatenate 'str' and
On Sun, Sep 16, 2012 at 2:04 AM, Νικόλαος Κούρας wrote:
> I'am not sure what to do and i didnt quite understand what the problem is.
>
> Can you please tell me what parts need fixe so for the users to be able to
> leave remakrs in he text area boxes?
Your question demonstrates a more fundamental
I moved to HostGaot because i heard there were the best in the hosting
business.
They are pretty good. However, you have to understand the site layout
to do CGI safely.
So long as your script are .cgi, putting them in ~/public_html is fine.
If you need to deploy .py files, you need to pu
I'am not sure what to do and i didnt quite understand what the problem is.
Can you please tell me what parts need fixe so for the users to be able to
leave remakrs in he text area boxes?
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Sep 16, 2012 at 1:33 AM, Νικόλαος Κούρας wrote:
> You are right but iam a new python learner and i created this logging system
> script as a poject to better learn the lalguage itself.
>
> I can always use google analytics for serious visitor logging.
>
> Apart from that i enjoy reading
On Sun, Sep 16, 2012 at 1:23 AM, Νικόλαος Κούρας wrote:
> I swicthed back my code to: f = open( '../' + page )
>
> and http://superhost.gr works which means that line gets parsed correctly.
>
> Only when i post data to the text area boxes iam getting the error:
>
&g
You are right but iam a new python learner and i created this logging system
script as a poject to better learn the lalguage itself.
I can always use google analytics for serious visitor logging.
Apart from that i enjoy reading my logs by typing:
http://superhost.gr/?show=log
:-)
--
http://m
I swicthed back my code to: f = open( '../' + page )
and http://superhost.gr works which means that line gets parsed correctly.
Only when i post data to the text area boxes iam getting the error:
cannot concatenate 'str' and 'list' objects
how is this possib
On Sun, Sep 16, 2012 at 1:06 AM, Νικόλαος Κούρας wrote:
> Previous webhost has the same flaw as well, look:
>
> http://www.errorweb.gr/~nikos/cgi-bin/
>
> giving away all my scripts.
>
> Webhost misconfiguration in both hosts!
And when I look at the scripts, I see things that do not fill me with
Previous webhost has the same flaw as well, look:
http://www.errorweb.gr/~nikos/cgi-bin/
giving away all my scripts.
Webhost misconfiguration in both hosts!
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Íéêüëáïò Êïýñáò wrote:
> I cant beleive that my source code can be seen form ANYONE this easily
Which is why I pointed it out. I mean no disrespect, but you appear to
be in over your head. That's fine (we're all in over our heads at some
point, that's how we learn new thing
The .htaccess file works with HostGator because the page was working all day
rediecting all html requests fine to the counter.py script.
Only when i tried to post data to the text area boxes this problem made its
appearance.
--
http://mail.python.org/mailman/listinfo/python-list
Thank i will do that, ill inform the support right away!
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Sep 16, 2012 at 12:51 AM, Νικόλαος Κούρας wrote:
> in my case an .htaccess file gives redirects all html requests to
> /cgi-bin/counter.py by also provide as an argument to the counter.py script
> the initical html file request
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} -f
>
in my case an .htaccess file gives redirects all html requests to
/cgi-bin/counter.py by also provide as an argument to the counter.py script the
initical html file request
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?page=$1 [L,PT,QSA]
so th
On Sun, Sep 16, 2012 at 12:44 AM, Νικόλαος Κούρας wrote:
> Τη Σάββατο, 15 Σεπτεμβρίου 2012 5:21:22 μ.μ. UTC+3, ο χρήστης Roy Smith
> έγραψε:
>> 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 e
Τη Σάββατο, 15 Σεπτεμβρίου 2012 5:21:22 μ.μ. UTC+3, ο χρήστης Roy Smith έγραψε:
> 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
>
>
>
Νικόλαος Κούρας wrote:
> Τη Σάββατο, 15 Σεπτεμβρίου 2012 4:38:51 μ.μ. UTC+3, ο χρήστης Chris
> Angelico έγραψε:
>> On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας
>> wrote:
>>
>> > Iam not using frameworks just plain python code written in Notepad++
>>
>> >
>>
>> > Can you please tell me how
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 so
Τη Σάββατο, 15 Σεπτεμβρίου 2012 4:38:51 μ.μ. UTC+3, ο χρήστης Chris Angelico
έγραψε:
> On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας
> wrote:
>
> > Iam not using frameworks just plain python code written in Notepad++
>
> >
>
> > Can you please tell me how to switch this line in order for
On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας wrote:
> Iam not using frameworks just plain python code written in Notepad++
>
> Can you please tell me how to switch this line in order for this line to work?
f = open( '../' + page[0])
will possibly work. But do try to understand what's happen
f = open( '../' + page.pop() )
15.09.2012 17:32 пользователь "Νικόλαος Κούρας"
написал:
> Τη Σάββατο, 15 Σεπτεμβρίου 2012 3:34:34 μ.μ. UTC+3, ο χρήστης Chris
> Angelico έγραψε:
> > On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας
> wrote:
> >
> > > Hello,
> >
> > >
> >
> > > I recently changed
Τη Σάββατο, 15 Σεπτεμβρίου 2012 3:34:34 μ.μ. UTC+3, ο χρήστης Chris Angelico
έγραψε:
> On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας
> wrote:
>
> > Hello,
>
> >
>
> > I recently changed webhost and in the new one iam getting this error you
> > can see if you visit http://superhost.gr whe
On Sat, Sep 15, 2012 at 10:22 PM, Νικόλαος Κούρας wrote:
> Hello,
>
> I recently changed webhost and in the new one iam getting this error you can
> see if you visit http://superhost.gr when program execution reaches the line:
>
>f = open( '../' + page )
>
> In the previous host i wasn't gett
page = ['index.html',
'index.html']
: cannot concatenate 'str' and 'list' objects
args = ("cannot concatenate 'str' and 'list' objects",)
message = "cannot concatenate 'str' and 'list' objects"
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I recently changed webhost and in the new one iam getting this error you can
see if you visit http://superhost.gr when program execution reaches the line:
f = open( '../' + page )
In the previous host i wasn't getting this error.
page's contents is:
page = form.getvalue('page')
--
35 matches
Mail list logo