Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12350
Latest: cl4ude327
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 40055
Total Topics: 7053
Most Online Today: 50
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 22
Total: 22

Author Topic: How can I check if fsockopen is on?  (Read 14626 times)

0 Members and 1 Guest are viewing this topic.

Offline chep

  • Newbie
  • *
  • Posts: 15
    • View Profile
How can I check if fsockopen is on?
« on: June 12, 2007, 10:17:54 pm »
 ???

I don't see it in phpinfo of php.ini

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #1 on: June 12, 2007, 10:41:38 pm »
The only time it would be disabled if it is in the disabled functions list. This normally affects people on shared hosting.

Maybe also try a sample fsockopen script
Code: [Select]
<?php
$fp 
fsockopen("www.example.com"80$errno$errstr30);
if (!
$fp) {
    echo 
"$errstr ($errno)<br />\n";
} else {
    
$out "GET / HTTP/1.1\r\n";
    
$out .= "Host: www.example.com\r\n";
    
$out .= "Connection: Close\r\n\r\n";

    
fwrite($fp$out);
    while (!
feof($fp)) {
        echo 
fgets($fp128);
    }
    
fclose($fp);
}
?>

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline chep

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #2 on: June 12, 2007, 11:20:50 pm »
Ok it looks on. I believe I will be back. I need to go see if I can make some affordable hats now.

Thanks

Offline yosemite

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #3 on: June 23, 2007, 11:35:49 am »
hi

i am interested in this but how do i run the fsockopen script to see if it is on?

i do not see any fsockopen in php.ini

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #4 on: June 23, 2007, 12:12:20 pm »
Create a PHP script like found in this post
http://www.smfhacks.com/index.php/topic,885.msg5342.html#msg5342
And if it works then you have it enabled.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline yosemite

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #5 on: June 23, 2007, 12:27:01 pm »
what i do not know how to do is run the script. i created a php page, called it test.php and then called it at my site, is this right? i got this info

HTTP/1.1 302 Date: Sat, 23 Jun 2007 17:25:10 GMT Server: Apache/1.3.33 (Unix) Cache-Control: private Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache X-Powered-By: PHP/4.4.7 Set-Cookie: PHPSESSID=d28e08aa35499e1ea822fd3f72eb46ad; path=/; domain=.tuolumnemeadows.org Location: http://www.tuolumnemeadows.org/index.php?PHPSESSID=d28e08aa35499e1ea822fd3f72eb46ad;www Connection: close Transfer-Encoding: chunked Content-Type: text/html 0

does this mean that fsockopen is on?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #6 on: June 23, 2007, 12:51:58 pm »
Yes
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline yosemite

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #7 on: June 23, 2007, 01:07:27 pm »
so this means that my site will support the store and i can go ahead and buy it? AS Licenses are non refundable and i must ensure that hosting meets the requirements.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #8 on: June 23, 2007, 01:21:41 pm »
As far as I tell yes. This mainly meant for people who are on shared hosting and their they usally disabled fsockopen.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline yosemite

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #9 on: June 23, 2007, 01:29:36 pm »
i am on shared hosting and since you think it is ok i will go ahead and buy it but could i get a refund if it does not work due to the fsockopen?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #10 on: June 23, 2007, 02:15:45 pm »
Currently there is a no refund policy for any purchased scripts.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Rus

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • Popped Question
Re: How can I check if fsockopen is on?
« Reply #11 on: August 10, 2007, 11:55:54 am »
If I get the following error does that mean its not enabled or I misused the example.  I put the example into a left block in TinyPortal on my website and immediately got this error:

Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.

Apache/1.3.37 Server at mywebsite.com Port 80

I just substituted mywebsite for the real URL since its not ready yet

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15032
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #12 on: August 10, 2007, 06:45:53 pm »
Try putting the script itself in the forum's folder and see if it can run make sure you get 755 permissions.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline STC007

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #13 on: September 14, 2007, 05:45:17 pm »
So where exactly do I find this...and or where and how do I create this file?

Offline STC007

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: How can I check if fsockopen is on?
« Reply #14 on: September 14, 2007, 10:33:10 pm »
I'm getting this code after I created a file called test.php and called the url:
Quote
HTTP/1.1 200 OK Date: Sat, 15 Sep 2007 03:30:44 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Tue, 15 Nov 2005 13:24:10 GMT ETag: "280100-1b6-80bfd280" Accept-Ranges: bytes Content-Length: 438 Connection: close Content-Type: text/html; charset=UTF-8
You have reached this web page by typing "example.com", "example.net", or "example.org" into your web browser.

These domain names are reserved for use in documentation and are not available for registration. See RFC 2606, Section 3.


What does this mean for me?

 

Related Topics

  Subject / Started by Replies Last post
11 Replies
19939 Views
Last post November 29, 2008, 10:10:36 am
by SMFHacks
fsockopen

Started by Bluto Support

4 Replies
4895 Views
Last post September 01, 2008, 06:41:58 am
by Bluto
1 Replies
3651 Views
Last post April 11, 2009, 08:23:07 am
by SMFHacks
3 Replies
6166 Views
Last post December 13, 2009, 04:09:36 pm
by SMFHacks
1 Replies
1905 Views
Last post July 03, 2011, 04:40:17 pm
by SMFHacks

+- Recent Topics

Error message with latest SMF 2.1 Github build by Hatshepsut
February 28, 2020, 08:04:45 pm

Cannot install Gallery Pro on SMF 2.1 RC2 by SMFHacks
February 27, 2020, 07:30:15 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

Powered by EzPortal