* Thus wrote Robert Covell ([EMAIL PROTECTED]): > I am trying to write data to a db3 alias file that sendmail uses (made a > copy for testing). When I read the file using: > > $id = dba_open ("aliaseswww.db", "r", "db3"); > > It works. But when I try to change it to: > > $id = dba_open ("aliaseswww.db", "w", "db3"); > > I get: > > dba_open(aliaseswww.db,w): Driver initialization failed for handler: db3: > Invalid argument in /usr/local/www/data/maillists/test.php on line 5 > > I don't know what the "Invalid argument" is? It seems as if it is missing > the "db3" on the end of the dba_open, but I put it there. I have checked > file permisions and everything checks out. Any ideas?
PHP isn't complaining about the argument, the driver was unable to open the db3 file in 'w' mode, which means the driver doesn't like the 'w' flag. My only guess is that you have permission problems with the file. But you said you've already checked that. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php