Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to enable fsockopen()

i checked my php.ini there i changed

allow_url_fopen = On

but still am unable to use fsockopen() i checked it with small php code

if(!function_exists("fsockopen")) {
 echo "Function Exists";
 echo "function not exists";


function not exists

share|improve this question

Your if() logic is flawed in that example, you are echoing "function not exists" when function_exists returns true.

share|improve this answer
opps sorry :) fixed thanks – user114500 Mar 19 '12 at 3:06
Are you saying that the example was wrong, or that the problem is resolved now? If the issue is resolved please mark this correct so it won't show up under Unanswered questions. – Kyle Smith Mar 19 '12 at 3:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.