DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   python and xitami (http://www.daniweb.com/forums/thread160625.html)

ctaroz Dec 3rd, 2008 5:39 pm
python and xitami
 
can somebody help an old man?
I started to study Python and I'm OK with IDLE. But I cannot understand how to use it as a server language with my local server Xitami (that I use very well with PHP).
Please help me: I need very clear instructions
Thank you, greetings from our beautiful Italy
Carlo

woooee Dec 3rd, 2008 6:12 pm
Re: python and xitami
 
Assuming that the server belongs to your ISP, you want to first ask them if Python is supported. It usually is, and they probably have some examples of the types of things they allow. Unlike using IDLE, the program file would be run from the command line or another program and how you do that would depend in part on which operating system you are using. This is the web programming page on the Python Wiki (and may be more than you want right now) http://wiki.python.org/moin/WebProgramming

ctaroz Dec 3rd, 2008 7:01 pm
Re: python and xitami
 
thanks woooee, Xitami runs locally on my PC (Windows XP). It has been correctly set for Python. I know that I should use lrwp, but I don't know how to do it. When I call my program in python from my browser (http://localhost/myprog.py) I can't get the HTML code in my browser, even if I import lrwplib.py module.
Carlo

ctaroz Dec 4th, 2008 8:53 am
Re: python and xitami
 
I found a complete resolution of my problems here:

http://www.cs.virginia.edu/~lab2q/lesson_1/

(a great tutorial by prof. Paul Reynolds, U.of Virginia)
Carlo


All times are GMT -4. The time now is 1:24 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC