<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It works fine when i run it in python , but it won't run when i run my
> cgi script.
>
> It says AttributeError: 'module' object has no attribute 'FTPHost'
> what could be a possible cause? thanks.
Perhaps you called your script 'ftp
I'm not sure, but in your CGI script, where you have
import cgi
or
import cgi
import cgitb; cgitb.enable()
there sometimes come error if place any other modules over it.
I don't now if it is that, 'cus i don't have seen more of your code.
so if your code is:
importFTPHost
import cgi
import cgitb; c