<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Salut,<BR>
Cum fac mai exact sa fac output-ul din python sa apara in browser ?<BR>
Daca creez o pagina html/php cum o pot accesa&nbsp;prin PUTTY ? Sau o accesez cumva prin browser ? Daca da cum ?<BR>
Am incercat sa deschid o pagina web folosind python dar nu mi-a mers ...<BR>
&nbsp;<BR>
Am folosit urmatorul exemplu :<BR>
import webbrowser<BR>import time<BR>
webbrowser.open("<A href="http://www.pythonware.com">http://www.pythonware.com</A>")<BR>
# wait a while, and then go to another page<BR>time.sleep(5)<BR>webbrowser.open(<BR>&nbsp;&nbsp;&nbsp; "<A href="http://www.pythonware.com/people/fredrik/librarybook.htm">http://www.pythonware.com/people/fredrik/librarybook.htm</A>"<BR>&nbsp;&nbsp;&nbsp; )<BR>
&nbsp;<BR>
Exemplul este luat de pe internet... Nu merge nici la mine nici pe server...Exemplul este salvat in import/test.py...<BR>
<BR>O ultima intrebare... ca sa afisez o pagina web banuiesc ca exista o metoda sa pot scrie "direct" in browser nu ? Sau va trebui sa fac un nou fisier .html pe care sa-l deschid cu broswserul ?<BR>
&nbsp;<BR>
Multumesc anticipat<BR><br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>