[PHP] Question regarding OS

2006-06-26 Thread Mayank Maheshwary
Hi, Is there a function that can detect the OS on which the script is running? Thank you. M.

Re: [PHP] file( ) function

2006-06-07 Thread Mayank Maheshwary
Yes, that is actually $temp, not $temp1. However, my problem still remains the same. Several lines in the file contain the exact same string as the one I am comparing. I need their positions in the array so that I can operate on other lines in the file. That is why I am using file( ) instead of o

[PHP] file( ) function

2006-06-07 Thread Mayank Maheshwary
Hi, I am facing some trouble with the file( ) function. I understand that it returns the contents of the file in an array. Also, I am able to print the lines using the echo function. However, whenever I try to compare the contents of an array using strcmp, or ==, the page simply keeps 'loading',