con phpinfo ho visto le differenze:
VERSIONE ONLINE:
server api = CGI
virtual directory support = disabled
Thread safety = disabled
zend engine = 1.3.0
php = 4.4.7
VERSIONE LOCALHOST:
server api = Apache 2.0 Handler
virtual directory support = enabled
Thread safety = enabled
zend engine = 2.2.0
php = 5.2.5
forse è per questo che in localhost non mi funziona?