Thank you soooo much gentlemen, you have come to my aid very promptly indeed :-)<br><br>I have to say, this is why i love Open Source; For the People, By the People!<br><br>Thankee<br><br>&quot;Shortash&quot;<br><br><div><span class="gmail_quote">
On 2/1/07, <b class="gmail_sendername">Christopher Arndt</b> &lt;<a href="mailto:chris.arndt@web.de">chris.arndt@web.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Luke Paireepinart schrieb:<br>&gt; I can think of a roundabout way to do what you want:<br>&gt;<br>&gt; PHP file returns a form to the client.&nbsp;&nbsp;when this form is submitted to<br>&gt; the py file, all of the data your py script needs is sent in the query
<br>&gt; string or whatever.<br>&gt; the py file does whatever it does, and then inside the html it returns<br>&gt; to the client, it includes an instant redirect back to the PHP file with<br>&gt; whatever data you want to return.
<br><br>The Python script can access the PHP page on the server directly, by<br>just making a request to localhost (if the PHP page is on the same<br>server). You could use urllib or some higher level HTTP client library<br>
and pass the data to the PHP page either in a GET or POST request. The<br>PHP page looks just like any other web service to the Python script.<br>Based on the results from the request, it can then return HTML to the<br>client with a redirect to the PHP script, so the user can see the
<br>updated data, or an error message.<br><br>Chris<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">
http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br><br clear="all"><br>-- <br>&quot;The Stupidry Foundry&quot;