Can I read a big-endian gdbm file on x86/Linux?
| From: | kev | Date: | Thu, 07 Sep 2000 16:10:34 +0000 |
| Subject: | Can I read a big-endian gdbm file on x86/Linux? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15726@lists.php.net to get a copy of this message | ||
Hi,
I need to read the contents of a gdbm file which was created on a
Solaris machine. I do not have access to a Solaris machine any more, so
it must be done on my x86 machine. The gdbm file generated on Solaris is
big-endian, and I know that gdbm files generated on x86 machines are
little-endian, so I guess PHP's dbm functions are giving me errors
because they expect little-endian files.
Anyone know how to get round this? It doesn't even have to be a PHP
solution, but that would be nice :)
thanks,
- Kev
--
http://www.fa-premier.com - English Premier League Football