Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'wed,': 0.03; 'subject:Python': 0.06; 'python': 0.08; 'php,': 0.09; 'url.': 0.09; 'pm,': 0.10; 'scripts': 0.10; 'written': 0.14; 'wrote:': 0.14; '425': 0.16; 'phrasing': 0.16; 'subject:server': 0.16; 'cc:addr:python-list': 0.17; 'compiled': 0.17; 'perl': 0.19; 'voting': 0.19; 'header:In-Reply-To:1': 0.21; 'java': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'trying': 0.23; '+0530': 0.23; 'systems.': 0.23; 'runs': 0.23; "what's": 0.23; '(or': 0.24; "doesn't": 0.25; 'correctly.': 0.25; 'script': 0.27; 'correct': 0.28; 'remote': 0.28; 'subject:web': 0.29; 'server': 0.29; 'cc:addr:python.org': 0.30; 'do.': 0.30; 'web.': 0.32; 'someone': 0.33; 'rather': 0.34; 'question': 0.34; 'normally': 0.34; 'php': 0.34; 'option': 0.35; 'there': 0.35; 'options:': 0.35; 'store': 0.35; 'using': 0.35; 'charset:us-ascii': 0.36; 'running': 0.37; 'something': 0.37; 'results.': 0.37; 'two': 0.37; 'run': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'perhaps': 0.39; 'header:Mime-Version:1': 0.39; 'your': 0.60; 'header:Message-Id:1': 0.62; 'received:208': 0.62; 'url:net': 0.63; 'link': 0.64; 'presents': 0.68; 'browser.': 0.77; 'democracy': 0.84; 'browsers': 0.93 Date: Wed, 8 Jun 2011 02:31:49 -0400 From: "D'Arcy J.M. Cain" To: Abhijeet Mahagaonkar Subject: Re: Running a Python script on a web server In-Reply-To: References: X-Mailer: Sylpheed 3.1.0 (GTK+ 2.24.4; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307514718 news.xs4all.nl 49047 [::ffff:82.94.164.166]:53376 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7214 On Wed, 8 Jun 2011 11:22:53 +0530 Abhijeet Mahagaonkar wrote: > >>Python doesn't normally run in a web browser. There's two easy options: > > Is there an option of running it like php? I have never written in php, but > my understanding is that the php script will be saved in some remote server > and we will be able to run it using the url. > pls correct me if i;m wrong. Well, not wrong but perhaps not phrasing your original question correctly. > > On Wed, Jun 8, 2011 at 1:10 PM, Abhijeet Mahagaonkar > > wrote: > > > So i have requested a server space so I need some inputs on how i will be > > > able to "host" these scripts on a webserver and have them run on browsers > > > rather than on individual systems. That's the normal way to run Python on the web. You store your Python (or Perl or PHP or compiled C) programs on a web server that offers Python http://www.Vex.Net/ and when someone clicks on the link the server runs them and presents the results. This is different than something like Java or Javascript that runs in the browser. If that still doesn't answer your question then perhaps you can try to clarify exactly what it is you are trying to do. -- D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.