Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

fwrite() error

Asked Modified Viewed 3,566 times
A
AivaMan
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

I get this error when trying to access Custom Page:
Notice: fwrite() [function.fwrite]: send of 11 bytes failed with errno=1 Operation not permitted in /home/a2492707/public_html/samp_query.php on line 82


samp_query.php function that gives error:

   
 function SendPacket( $cPacket )
    {
            $szPacket = 'SAMP';
            $aIpChunks = explode( '.', $this->szServerIP );

            foreach( $aIpChunks as $szChunk ) {
                    $szPacket .= chr( $szChunk );
            }

            $szPacket .= chr( $this->iPort & 0xFF );
            $szPacket .= chr( $this->iPort >> 8 & 0xFF );
            $szPacket .= $cPacket;

            return fwrite( $this->rSocketID, $szPacket, strlen( $szPacket ) );
    }


82 line:
return fwrite( $this->rSocketID, $szPacket, strlen( $szPacket ) );

any ideas how to fix it? :/
0 replies

5 posts

S
Splash
S
Splash 10
  • Junior Member, joined since
  • Contributed 39 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

Quote

Operation not permitted

Check file permissions. ;)
0 replies
A
AivaMan
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I have set it to 777, but it's the same.
0 replies
S
Splash
S
Splash 10
  • Junior Member, joined since
  • Contributed 39 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

Check file owner. Some hosts have problems
with file ownership.
0 replies
A
AivaMan
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Have fixed file ownership. Using 000webhost
but the same. :(
Any other ideas?
0 replies
A
afif
A
afif 10
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 12 threads in the forums
answered
Member

doesn't make sense. i have a test account on 000webhost and
it doesnt have any issue with PHP Fusion.

you might have done something wrong :(
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

A
A
afif 10
  • Member, joined since
  • Contributed 183 posts on the community forums.
  • Started 12 threads in the forums
S
S
Splash 10
  • Junior Member, joined since
  • Contributed 39 posts on the community forums.
  • Started 2 threads in the forums
A
A
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet