Jump to content
xisto Community
Sign in to follow this  
eskimmer

How To Check If Fsockopen Function Is Enabled?

Recommended Posts

Hi,I have VPS (virtual private server) and I have access to php.ini file.Is there any script that will show that fsockopen function is enabled or where do I have to enable it?Searched google and here and couldn't find anything.Thanks!

Share this post


Link to post
Share on other sites

i think Xisto already have fsockopen function.you no need to reenable it.but if you visit your control panel, then look into phpinfo for examining it. the rows like this appear:disable_functions dl, system, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_six_setuid.then i dont know what's the different between pfsockopen and fsockopen., :P(I already try what zainal wrote, i didnt show function exist in this Xisto

Share this post


Link to post
Share on other sites
! means notHow To Check If Fsockopen Function Is Enabled?

the code is backwards.  the ! means not.  so if it exists then nothing will be printed to the screen and if it does not exist the

Function Exists will be printed.  that tricked me for several minutes.

<?phpIf(function_exists("fsockopen")){   echo 'Function Exists';}Else{   echo 'function does not exist';}?>

-reply by bailey

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.