Dear List -

Thank you for all your help.  Here is another one.....

I have a file [/home/ethan/PHP/RecNum] which consists of the number 1005. It also has been "1005". No matter how I do it, it is only recognized as 1.

Here is the code.  In this case, the file is "1005".

$fptr1 = fopen("/home/ethan/PHP/RecNum", "r+");
$recNum = (int)fscanf($fptr1,"%s");
echo $recNum;  //which always is 1

If I do not typecast $recNum to int, the value is Array.



MySQL 5.1 PHP 5 Linux [Debian (sid)]

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to