Dovrei convertire un piccolissimo script in Python,
nel linguaggio php accettato senza problemi dal mio server....
Solo che non so come eseguirne la conversione....
Grazie in anticipo per tutti quelli che collaboreranno..
Inserisco a scopo illustrativo tutta la sezione....
<html>
<body>
...
<object classid="..." codebase="..." width="300" height="40">
<param name="src" value="flash_movies_visible_example.swf">
<embed src="flash_movies_visible_example.swf" pluginspage="..." width="300" height="40">
</embed>
</object>
...
</body>
</html>
The script test.py (Python script) gets the path of the shockwave files and calls swf2html - but only, if a search engine (Google) requested the page.
#!/usr/bin/python
import os
import string
import sys
if len( sys.argv ) == 2:
try:
agent = string.lower( os.environ['HTTP_USER_AGENT'] )
if string.find( agent, 'google' ) >= 0:
os.system( '/usr/local/bin/swf2html ' + sys.argv[1] )
except: pass