Tag: c

54 votes
4 answers
1.2K views
Yii2 : Active Record add Not In condition

What is the active Record way of adding IN condition to an active Query in yii 1.x you could use CDbCriteria l

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
60 votes
9 answers
547 views
How to set the default controller in yii2

I have UserControler and I run it in virtual server http://basic.com/index.php?r=user/index. How can I set up

avatar
Ali
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
443 views
Jquery - Uncaught TypeError: Cannot use 'in' operator to search for '324' in

I'm trying to send a Get request by ajax and output json data that is returned by server in html. But, I

avatar
Juliane
0 1 0 9
asked 07 September, 2021
62 votes
16 answers
1.5K views
Get current URL/URI without some of $_GET variables

How, in Yii, to get the current page's URL. For example: http://www.yoursite.com/your_yii_application/?l

avatar
Robyn
0 1 0 9
asked 07 September, 2021
55 votes
8 answers
1.5K views
Yii2 How to perform where AND or OR condition grouping?

I am new to Yii-2 framework. How can i achieve following query in Yii-2 framework using activeQuery and models

avatar
Venice
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
3.2K views
CURL ERROR: Recv failure: Connection reset by peer - PHP Curl

I'm having this strange error, CURL ERROR: Recv failure: Connection reset by peer This is how it happens

avatar
Tuan
0 1 0 9
asked 07 September, 2021
69 votes
13 answers
1.7K views
Only on Firefox "Loading failed for the <script> with source"

I want to integrate Marketo form with my existing website on yii framework. My code works on all the browsers

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
53 votes
18 answers
3K views
Include CSS,javascript file in Yii Framework

How to include a Javascript or CSS file in Yii Framework? I want to create a page on my site that has a littl

avatar
Rudy
0 1 0 9
asked 07 September, 2021
57 votes
11 answers
3K views
webSocketServer node.js how to differentiate clients

I am trying to use sockets with node.js, I succeded but I don't know how to differentiate clients in my c

avatar
Louetta
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
502 views
Websocket transport reliability (Socket.io data loss during reconnection)

Used NodeJS, Socket.io Problem Imagine there are 2 users U1 & U2, connected to an app via Socket.io. Th

avatar
Winford
0 1 0 9
asked 07 September, 2021
64 votes
3 answers
1.5K views
Why is there no same-origin policy for WebSockets? Why can I connect to ws://localhost?

I'd like to use WebSockets for inter-process communication for my application (Daemon<->WebGUI and

avatar
Shantay
0 1 0 9
asked 07 September, 2021
49 votes
5 answers
1.5K views
Sending message to a specific connected users using webSocket?

I wrote a code for broadcasting a message to all users: // websocket and http servers var webSocketServer = re

avatar
Xavier
0 1 0 9
asked 07 September, 2021
63 votes
4 answers
2.8K views
WebSockets ping/pong, why not TCP keepalive?

WebSockets have the option of sending pings to the other end, where the other end is supposed to respond with

avatar
Sena
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
2.3K views
Creating a "Hello World" WebSocket example

I don't understand why I cannot make the following code work. I want to connect with JavaScript to my ser

avatar
Solomon
0 1 0 9
asked 07 September, 2021
50 votes
2 answers
1.2K views
What is difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?

I want to develop a client-server application in a bi-directional streaming manner. what is more suitable tec

avatar
Stacia
0 1 0 9
asked 07 September, 2021
53 votes
2 answers
383 views
differences between webhook and websocket

I've always wanted to do a real-time chat. I've done that years ago in PHP+Ajax+Mysql and broke my

avatar
Yolando
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
1.5K views
Faye vs. Socket.IO (and Juggernaut)

Socket.IO seems to be the most popular and active WebSocket emulation library. Juggernaut uses it to create a

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
1.4K views
Reconnection of Client when server reboots in WebSocket

I am using web socket using PHP5 and the Chrome browser as client. I have taken the code from the site http://

avatar
Keith
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
2.3K views
How to create websockets server in PHP

I am looking for a simple code to create a WebSocket server. I found phpwebsockets but it is outdated now and

avatar
Gigi
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
2.8K views
How to construct a WebSocket URI relative to the page URI?

I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP

avatar
Thurman
0 1 0 9
asked 07 September, 2021