PHP Websocket Client [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
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 streams, and also Racket but failed to see in their docs a client class. Is this possible with PHP? Code sample or any direction would be appreciated.

For anyone looking in the future this is what I found and used. Walk in the park.
PHP-WSS
<?php
use WSSC\WebSocketClient;
use \WSSC\Components\ClientConfig;
$client = new WebSocketClient('ws://localhost:8000/notifications/messanger/yourtoken123', new ClientConfig());
$client->send('{"user_id" : 123}');
echo $client->receive();

Related

Heat map click tracking tool for PHP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Are there any good click tracking utilities which can generate a heatmap for a website? We need something reliable to check which areas are the most used by our visitors.
Have you tried Labsmedia's ClickHeat?
I can recommend ClickTale for generating Heatmaps.
I'm on the search for a solution too. I saw this and it seems promising: http://www.crazyegg.com/
My next step is to find something free and that I can run on my server. ;)

Connecting J2ME with PHP and mySql [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am working on mobile app and i need to connect to database on a server, i would like to use php and mysql can anyone direct me to a good tutorial on using J2ME with php mysql?
I think what you are looking for is how to write a web-service using php & mysql and how to access it using j2me.
I think using SOAP as suggested by #coding.mof is a bit too complicated for a beginner. For starters, you can make a simple web service in PHP by just echoing a json encoded return.
<?php
$somethingToReturn = //do something`
echo json_encode($somethingToReturn); ?>
Use HttpClient to access web services in Java and then parse the json string to get the data you need.

Ning like open source alternatives [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have to make something like Ning ( a website where users can create their own sites/networks) .
Another example would be webs.com
Are there any Open Source alternatives (PHP only) to these ?
Wall from Indian Srinivas Tamada it's not full open source, you must pay to buy the script, but after you buy you have the script and database, all open. If you want study, maybe it's a good way, but have some bugs, I bought one.
http://wall.9lessons.info/
Try GROU.PS - http://grou.ps

is there a web service that can detect the country of a visitor in PHP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I use PHP and I want to know if there's a free web service that can detect the countries of my visitors. Right now i can get their IPs and I have downloaded some IPtables that relate some locations but i don.t think they're quite accurate.
So if you are aware of some free webservice it would be just great. Thanks!
I have used the following SOAP GeoIPService to good effect from webservicex.net.
You will also of course need to enable SOAP support in your PHP config.
You could then try something like:
$client = new SoapClient("http://www.webservicex.net/geoipservice.asmx?WSDL");
$params = new stdClass;
$params->IPAddress = 'xxx.xxx.xxx.xxx';
$result = $client->GetGeoIP($params);
// Check for errors...
$country = $result->GetGeoIPResult->CountryName;
You could look around at MaxMind's open source solutions.
You could download and use this database http://software77.net/geo-ip/

looking for a tag script for my website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm not asking someone to make a script for me, only to point me to a known script.
A lot of websites have tags on the end of a article with important keyword links, mosly those are scripts used in CMS systems.
I'm looking for the same sort of script but for a "normal" website without cms
Does anyone knows a script like that?
Something like this could be called via JavaScript http://www.tocloud.com/javascript_cloud_generator.html, and would do exactly what you need. See example on the URL

Categories