:::: MENU ::::
Posts tagged with: solved

[SOLVED] Chromium Browser not opening or taking too long to load on Ubuntu 16.04

I have been using Chromium Browser from Google for everyday use. But today, it completely stopped working. I tried to open it via terminal and couldn’t see any error or any log. The process seem to open but not opening the browser at all. I didn’t had any patience and closed it via terminal with command killall -9 chromium-browser . I started using Firefox, but being used to the Chromium Browser and the debug tools I had, I couldn’t resist and started to find the solution. I filtered the chromium-browser not opening in past week in the search result, but doesn’t looks like others are having any such problem. Then I had to do it on my own. Continue Reading




[SOLVED] Strict Standards: Only variables should be passed by reference in file.php on line 30

Hi, I am currently developing a project on socket and I got simple warning that needed to be fixed. Though the problem is caused on my project related to socket but on further research, I found that it can be applicable on any problem that is found regarding the title.

So, I took a look on each and every references but couldn’t find what exactly it is but tried some random things. My line of code where:

If you want the solution, the solution is:

Explanation:

The variable needs to be passed but I just passed the direct value to the function and it required variable which was not fixed. So, I just defined all the variables that might be needed and got the solution. If you got any problem with this, please first define the variable and pass it to the variable as the variable is sent as a pointer and needs to be changed by PHP function.

Same problem might occur on “end()” function so, you need to declare and $array = [“a”,”b”,”c”]; or explode(“.”,$fileName); and then pass it to the function as end($array).

Whew!!! Problem solved.


[SOLVED][HOWTO][DOWNLOAD] Perfectly working copy of phpwebsocket

Hi,

phpwebsocket(websocket.class.php) is a HTML5 WebSocket server that enables user to directly connect to the socket from the browser. It is specially designed for the PHP server as the script is a PHP script and client can be any website with a browser. I was just having some research on it and got loads of error. Different errors I got are:

1) First I got the error as the client(My browser) could not connect to the server because of handshaking thing. And I sorted the reason that the newer version of Browser have only one Secret key sent to the server so, I removed two keys and only implemented 1 key. Then I got the key to $key. As from the wiki, the returning secret “Sec-WebSocket-Accept” was the sha1($key.”258EAFA5-E914-47DA-95CA-C5AB0DC85B11″) and base64 encode of it. Its a “.(dot)” not the “,(comma)”. And returned by writing to the socket as socket_write.

2) Next my brain couldn’t worked when the message received was just unwanted. And I searched all along and was messed up with some framing thing. I was lazy finding that. So, I just copied from some source for some kind of decryption thing.

3) Similarly, I did something for sending the message by the encryption thing. And I finally made the class work.

I will be happy to share my part of work and hope it will work on your system. You can copy and do anything with the code. You can research on each function changes that I have done.

Download the code from here


Pages:123