I would think the indentation in python would make this pretty difficult, indentation doesn&#39;t matter much with php because it uses curly braces, so it can be mixed in with html quite easily (although this is becoming less common).  For this reason, most python web frameworks, (e.g. Django and CherryPy) use specialised templating languages, they are both worth checking out.<br>
<br><div class="gmail_quote">On Tue, Mar 3, 2009 at 6:30 AM, umar <span dir="ltr">&lt;<a href="mailto:umarhafeez@yahoo.com">umarhafeez@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://www.python.org/community/pycon/dc2004/papers/14/" target="_blank">http://www.python.org/community/pycon/dc2004/papers/14/</a><br>
<a href="http://www.howtoforge.com/embedding-python-in-apache2-with-mod_python-debian-ubuntu-fedora-centos-mandriva-opensuse" target="_blank">http://www.howtoforge.com/embedding-python-in-apache2-with-mod_python-debian-ubuntu-fedora-centos-mandriva-opensuse</a><br>

<br>
If I were you, I would stick with CGI interface to python scripts. In above cases the server needs to be modified (as in PHP,<br>
the only difference is that a lot of hosting companies particular shared hosting offer the server which can interpret embedded<br>
javascript and php code but not embedded python).<br>
<br>
This might just be my misconception but making use CGI interface may also offer more security than going for embedding option.<br>
<br>
Well I am just amateur myself...<br>
<br>
Regards<div><div></div><div class="h5"><br>
<br>
<br>
<br>
Malte Beckmann wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>
<br>
Just wrote my first 30 odd python scripts and loving this language.<br>
<br>
But do, however, have a burning question on my mind.<br>
<br>
Why can I not just do &lt;?python ... ?&gt; in my webpages like I can do with PHP?<br>
<br>
Cheers! /m<br>
<br>
<br>
_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org" target="_blank">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
<br>
</blockquote>
_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org" target="_blank">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
</div></div></blockquote></div><br>