Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 196
Total: 196

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

0 Members and 1 Guest are viewing this topic.

Offline chep

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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
22414 Views
Last post November 29, 2008, 10:10:36 am
by SMFHacks
fsockopen

Started by Bluto Support

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal