I already answered you at the first post. -- ------------------------------------------------- Cristian MARIN - Developer InterAKT Online (www.interakt.ro) Tel: +4021 312.53.12 Tel/Fax: +4021 312.51.91 [EMAIL PROTECTED] "Hermann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi! > > I have a little problem! > > I wrote follwing code! > > <?php > > $type = 'file'; > //$type = 'db'; > > // determine the tracker type > if ($type == 'file') { > require_once 'docs/php/IPTracker/IPTrackerFile.php'; > $tracker = new IPTrackerFile('docs/php/IPTracker/ip.log'); > } else { > require_once 'IPTrackerDB.php'; > require_once '../abstractdb/AbstractFactory.php'; > $db = AbstractFactory::getDbLayer('MYSQL', '', 'mysql'); > > $tracker = new IPTrackerDB($db, 'localhost', 'php', '', ''); > } > > // track the current visitor > $tracker->track(); > > ?> > > If my file ist called index.php, it runs without problems! > > If I call the file index.html (should also work) he can't parse the line > with $tracker->track(); > > He interpretes the "->" wrong! > > Is there a other way to call a sub routine in php (without ->)??? > > Why are these two commandos in php and html the same with other functions? > There is a redunancy-bug!!! > > Regards, Hermann. > >
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php