Re: [PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Don Myers
Well that certainly runs them one after the other but it doesn't stop for text input. It Just stops all together? Filename: tester.php #!/usr/local/bin/php -q Filename: hello.php #!/usr/local/bin/php -q Is my input function no good? Don Myers on 9/16/04 5:39 PM, Greg Donald at [

[PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Don Myers
turn open another... and another Of course after the script ends it returns to the line in the script that called it and so on. Until it's "done" I am writing a bunch of PHP-CLI scripts which open other helper PHP-CLI scripts which may be called together or apart (so includes d

Re: [PHP] Need direction on PHP-CLI MUD Server

2004-09-02 Thread Don Myers
Unfortunately, since they are coming in through a socket and not actual telnet/ssh I don't think $fp=fopen("/dev/stdin", "r"); works? Isn't that only for terminal based input? Donald Myers on 9/2/04 10:31 AM, Jim Grill at [EMAIL PROTECTED] wrote: >> Hello, I have been banging my head trying to

[PHP] Need direction on PHP-CLI MUD Server

2004-09-01 Thread Don Myers
Hello, I have been banging my head trying to figure out how to design a MUD Server using PHP-CLI as the server and PHP-CLI as the "command" language. (telnet front end at this point) I have found the great Pear Net_Server which seems to work really good for Alpha and the Forking Mode is great to r

[PHP] Anybody have RLIB compiled for OS X?

2004-06-23 Thread Don Myers
Anybody have the open source report writer via PHP compiled for OS X Here is the URL http://rlib.sicompos.com/ Don Myers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with shorting this please

2004-04-19 Thread Don Myers
PHP gurus. I know this can be made shorter but I can't seem to figure out how. This is a PHP CLI script I use to go through a directory listing a act upon file matching the same prefix and/or suffix if supplied. This is the code I use now. // set up the prefix and/or suffix if I want to match on

[PHP] Simple PHP Encoder

2004-02-10 Thread Don Myers
Howdy, I am looking for a simple way to encode my PHP files from snooping eyes. Not a MD5 Encryption or anything but a simple base64 or something. I want to scare off the casual server snooper that know very little about PHP but has access to the web directory for other reasons. D Myers -- PHP G

[PHP] Can somebody convert this short Perl Script to PHP?

2003-12-29 Thread Don Myers
ac kups_deleter.log'); $MAXCYCLE = 4; chdir $LOGPATH; # Change to the log directory foreach $filename (@LOGNAMES) { for (my $s=$MAXCYCLE; $s >= 0; $s-- ) { $oldname = $s ? "$filename.$s" : $filename; $newname = join(".",$filename,$s+1); rename $