Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Check If Fsockopen Function Is Enabled?
eskimmer
post Aug 17 2007, 06:43 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 21
Joined: 15-August 07
Member No.: 48,203



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!
Go to the top of the page
 
+Quote Post
zainal
post Feb 29 2008, 08:33 PM
Post #2


Newbie
*

Group: Members
Posts: 1
Joined: 29-February 08
Member No.: 58,672



Check if the function exists

CODE
if(!function_exists("fsockopen")) {
echo "Function Exists";
}
Go to the top of the page
 
+Quote Post
demank
post Feb 29 2008, 08:56 PM
Post #3


Premium Member
********

Group: [HOSTED]
Posts: 198
Joined: 30-January 08
Member No.: 57,072



i think trap17 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., sad.gif(

I already try what zainal wrote, i didnt show function exist in this trap17
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting List Of Directories And Files Using Php(6)
  2. Need Feedback On A Function(1)
  3. Directory Function(1)
  4. Error When Using file_put_contents()(4)
  5. Sending Attachments Using Email Function In Php(2)
  6. Need Help With The Header() Function(2)
  7. Question For The If And Echo Function(2)
  8. Need Help With Php(2)
  9. php header() function help needed(4)
  10. How To Use A Link To Call Function In Php?(8)
  11. Include File.php?id=something(13)
  12. How To Enable Mail() Function In Php(1)
  13. Question About The Mail() Function(2)
  14. Regexp Function Preg_match_all()(0)
  15. Explode Function Help(1)
  1. Php - Fsockopen, Get, Etc - Help Needed(1)
  2. How Good Is This Data Cleaning Function?(2)
  3. The Extract() Function(6)
  4. Error With Joomla Template(1)
  5. Php Fsockopen() Error(14)
  6. [php] Header Function(2)
  7. [php](simple) Using Functions To Combine Values In A Form(2)
  8. Mail() Clone(5)
  9. The Best Zip Function(1)
  10. Php Explode Function Help(4)
  11. Arrays Outside A Function(3)
  12. Endif function?(6)
  13. PHP Function To Add Previous and Next Page Feature(0)


 



- Lo-Fi Version Time is now: 27th July 2008 - 01:07 AM