Jump to content
alex4orly

First argument for PHP fread()

Recommended Posts

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...