CGI Proplem displaying image
Matthias Huening
mhuening at zedat.fu-berlin.de
Tue May 11 02:57:58 EDT 2004
matthiasjanes at gmx.net (matthiasjanes) wrote in
news:d588131f.0405102237.15106ea5 at posting.google.com:
> Some Text
> <img type="image" src="/cgi-bin/test.py" height="25" width="111">
>
You are trying to mix HTML and the output of a Python script. That
won't work.
You'll have to use SSI (server side includes) to do this. With SSI you
could run a script from within a HTML page and print the output of the
script in that page.
Another solution: use a CGI-script and let that script generate the
whole HTML page.
Perhaps this would help to get you starting:
http://www.python.org/topics/web/
Matthias
More information about the Python-list
mailing list