[PHP] RE: How to make binary strings useful?

2005-02-02 Thread Jerry Miller
Here's the code (with the domain name removed) that doesn't work, "despite" the poor documentation of the variable types: /www/binary/"; $dh = opendir ($dir); do { $file = readdir ($dh); } while (!strncmp ($file, ".", 1)); $filename =

[PHP] How to make binary strings useful?

2005-02-02 Thread Jerry Miller
Is there an example of the UNIX od utility written in PHP? Is such a useful task even possible?? >From what I've seen of strings, they're completely opaque, so what good does it do to be able to read binary-safe strings from a file??? Even the deprecated (why) $str{$inx} notation apparently r

[PHP] Re: How to make binary strings useful?

2005-02-02 Thread Jerry Miller
There's a FAQ section entitled "PHP and Other Languages," C isn't even listed among them! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to make binary strings useful?

2005-02-02 Thread Jerry Miller
That should help. Thanks. "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've written complete file parsers in PHP, and the only snag I've run > into is dealing Signed integers (and larger). > > > Jerry Miller wrote: > > >

[PHP] Problem solved!

2005-02-03 Thread Jerry Miller
I didn't want to give up entirely on the flexibility of writing my scripts in C, so I thought some more about how to get a CGI script to use PHP without having to spend a lot of time on PHP logic. My first attempt was to see whether I could substitute the extension ".php" for the usual ".cgi" exte