It is very easy for a friend with server permissions to perform operations
Open the php. Ini file and find allow_url_fopen.
Change allow_url_fopen = On to allow_url_fopen = Off
Find disable_functions and find
Disable_functions = fsockopen: delete the fsockopen.
If you do not have Server permissions, we can use pfsockopet instead.
The code is as follows: |
|
$ Fp = fsockopen ($ host, 80, $ errno, $ errstr, 30 ); After modification $ Fp = pfsockopen ($ host, 80, $ errno, $ errstr, 30 ); |
Some services are also killed without the pfsockopen function, so we can use the stream_socket_client () function, but the stream_socket_client () parameter is different from fsockopen.
Example
The code is as follows: |
|
$ Fp = fsockopen ($ host, 80, $ errno, $ errstr, 30 ); After the function is changed to stream_socket_client (), it should be as follows: $ Fp = stream_socket_client ($ host. "80 & Prime;, $ errno, $ errstr, 30 ); |
Oh, if you don't have one, you don't have to find a way to estimate other ways. They also disable those functions, so we should change the space provider.