Questions tagged [fsockopen]

PHP function used to open (Internet or Unix domain) sockets connections.

382 questions
0
votes
1 answer

how to check if a rtmp stream alive with php? gen ques

Is there a way to check RTMP stream is alive or not with php? Found something like fsockopen(). But not sure how to use this command to verify stream data.
Abul Hasnat
  • 1,541
  • 2
  • 16
  • 23
0
votes
2 answers

Display popup after PHP fread finishes

I want to issue a popup or something to remind users to perform a second action after the first action is done. The first action is fwrite($fp, $str); $read = fread($fp, 16); $read = explode(";", $read); if ($read[0] != "OK") { echo "Write…
0
votes
1 answer

Trouble getting PHP fsockopen to ignore errors

I'm setting up reporting on my PHP script with etsy's open source statsd library. I'm basing my connection on their given example, but I'm running into an issue where it seems like fsockopen is ignoring try/catch and is printing its…
plusbryan
  • 121
  • 5
0
votes
3 answers

Why I cannot send email with siwapp invoicing software?

I have installed a siwapp invoicing software. It installed successfully but when I tried to use a recurring profile or even sending an invoice to my clients, it came to an error says : Warning: fsockopen() [function.fsockopen]: unable to connect to…
leojarina
  • 157
  • 4
  • 15
0
votes
1 answer

Stay connected to download images with fsockopen?

I've made a basic script to get the html page and images. But I would like to continue to stay connected while I am retrieve pictures. - What I did with the test script was kept on asking for addresses on the web server. But It did not work. So how…
Diblo Dk
  • 585
  • 10
  • 26
0
votes
2 answers

PHP HTTP Request via fsockopen and fwrite not working as expected on linux

We are currently using sockets to open and write to a http connection, requests that we don't necessarily care about the response! Like tracking pings etc This worked on our old servers and on our windows developments environments but not on our new…
Tristan
  • 3,845
  • 5
  • 35
  • 58
0
votes
3 answers

fsockopen in php not working on server

Here is my code: $fp = fsockopen("74.63.172.37", 22, $errno, $errstr, 50); if (!$fp) { echo "not connected"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: 74.63.172.37\r\n"; $out .= "Connection: Close\r\n\r\n"; …
Shehzad Bilal
  • 2,535
  • 2
  • 18
  • 27
0
votes
3 answers

fsockopen() and header(location:xxx) in opened script?

strange problem, i'm opening a connection with fsockopen() to a page, that page has a header(location:xx) to the same page (i'm just refreshing the script), but it'seems that the redirect isn't working... obviously everything is working if i'm…
NicolaPasqui
  • 1,112
  • 8
  • 17
0
votes
2 answers

A way to check ports with PHP (Multithreading?)

I'm currently using cURL multi to check thousands of http status codes in a few seconds and it works very well. However, I'm wondering - is their anyway I can check if a port is responding (e.g. mysql) using cURL or another PHP multitasking method?
Clarkey
  • 698
  • 3
  • 11
  • 28
0
votes
1 answer

Weird behaviour: Apache PHP Windows with FSockopen

Consider this simple code:
Rajan
  • 27
  • 1
  • 1
  • 4
-1
votes
1 answer

PHP Websocket Client

I'm currently attempting to create a WebSocket client to connect to a wss:// URL with PHP (without using JavaScript). It's been a few days trying to program a simple function or class that can do so. I tried and looked into fsockopen, various…
Oliver M Grech
  • 3,071
  • 1
  • 21
  • 36
-1
votes
1 answer

How to use "fallback" method for PHP curl (HTTPS)?

Situation: I'm improving some code on a PHP based monitoring web app that checks the health of other web apps/services. Goal: we are using CURL as a primary method to get headers to ensure the monitored app is accessible via HTTP return codes. …
Sean Vreeland
  • 87
  • 1
  • 12
-1
votes
2 answers

fsockopen returns 'bool(false)'

My question title seems to be same with other questions but issue is different from others. My code: $post_string = http_build_query($params); $parts = parse_url($url); $errno = 0; $errstr = ""; $fp =…
SNG
  • 358
  • 4
  • 15
-1
votes
1 answer

Overlapping HTTPS requests?

Is there an example where I am able to do overlapping HTTPS requests while getting the returned results as they arrive. Language which supports threads to do this? Any examples of this would be much appreciated! Thank you.
iCeR
  • 77
  • 1
  • 6
-1
votes
1 answer

Where is php fsockopen function defined?

I want to know where the fsockopen function is defined. Tried to search on google but it gives details about how to use it. It would be great if anybody can help me in getting the path of the function definition. I want it for PHP 5.3 on centos.
no one
  • 9
  • 5
1 2 3
25
26