alex4orly Posted October 21, 2016 Share Posted October 21, 2016 Hello all, I am coming to learn PHP with a C/C++ background and noticed something which I think is incorrect: $myfile = fopen(); retuens a handle to the file. In the explanation for fread() however it is used and the explanation is that it is the name of the file as the 1st argument. This in my opinion is an incorrect explanation, it is actually the HANDLE. The majority of the PHP syntax however is mostly clear to me. Thanks to those who put the effort, to help us new comers... Cheers Alex Link to comment Share on other sites More sharing options...
dsonesuk Posted October 21, 2016 Share Posted October 21, 2016 I'm pretty sure this has been pointed out before, and is certainly misleading. If you look at http://php.net/manual/en/function.fread.php it gives more clearer meaning. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now