Information about file pointer

From: Date: Sat, 28 Oct 2000 00:23:54 +0000
Subject: Information about file pointer
Groups: php.general 
Request: Send a blank email to php-general+get-22401@lists.php.net to get a copy of this message
Hello, I want to be able to know the characteristics of a file pointer : $fp=fopen("file.dat","w"); I want to be able to get the "w", so that I can compare it to w, a, r, w+ and so on. For exemple, I want to do : $mode_of_pointer=mode($fp); \\I am looking for that function if(mode_of_pointer=="w") { flock($fp,2); } elseif(mode_of_pointer=="r") { flock($fp,1) } _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.general (#22401) next »