MacTuxLin Posted April 6, 2011 Share Posted April 6, 2011 Hi All, Have a problem using getbinary() & dechex() on a CentOS installation that produces nil value when written to a file. It worked fine in Windows with XAMPP installation. Is there something I need to take note of in php.ini that's causing the problem or I might be missing a module? Distribution: CentOS 5.5 PHP/Apache: From distribution Thanks a lot!! Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted April 6, 2011 Share Posted April 6, 2011 getbinary() apparently isn't a PHP function, only dechex() is. There are the decbin and bindec functions in PHP. Quote Link to comment Share on other sites More sharing options...
MacTuxLin Posted April 6, 2011 Author Share Posted April 6, 2011 Oh, I better go ask the programmer about this as I thought my server setup had problems Thanks a lot!!! Quote Link to comment Share on other sites More sharing options...
MacTuxLin Posted April 7, 2011 Author Share Posted April 7, 2011 Got this solved after I downloaded a new version of php (5.3.6) & apache (2.2.17). Dunno why the ones that came with CentOS distribution didn't work (php 5.1.x) but glad for this solved. Yes, the getbinary() is actually the programmer's custom function :-\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.