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
Here's the code (with the domain name removed)
that doesn't work, despite the poor documentation
of the variable types:
?
$dir = /home/domain_name/www/binary/;
$dh = opendir ($dir);
do
{
$file = readdir ($dh);
}
while (!strncmp
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
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
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:
Is there an example of the UNIX od utility written
in PHP
5 matches
Mail list logo