Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread Minuk Choi
As far as checking to see if it's a number, note that you can get the following "10" = string that contains 10 10 = integer that contains 10. You can verify that a variable contains numbers or numeric data by using if (is_numeric($variable)) { $variable is either a number variable or a string

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Aidan Lister
If you want to use older functions without upgrading your version of PHP, try PHP_Compat. Here's file_get_contents which is comparable in speed to the native version: http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Function/file_get_contents.php?r=1.19 Most information can be found at http://pe

RE: [PHP] Is there any way of knowing User Currently Logged On?

2004-10-11 Thread Warren Vail
If it throws out garbage, you should be able to execute the "who" command on the remote system, which should show users that are currently signed on to a Unix or Linux system and if you do it all in the perl script, you can format the output to look pretty much the same (in case you haven't figured

<    1   2