Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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";
 }
 else
 echo "function not exists";

Result

function not exists

share|improve this question

1 Answer 1

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

 
discard

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.