« first day (648 days earlier)      last day (4291 days later) » 

12:10 AM
Hi , I jsut changed my root passowrd form the mysql server and now phpmyadmin wont start properly , I've already changed the config.inc.php file and set the passord accordingly ,but I still get (Password:NO) from phpmyadmin
anyone?
 
you prob didn't change the correct config.inc.php
 
user895378
1:07 AM
@LeviMorrison No, I totally have. It just made me laugh because I was so confused as to why the tests were just stopping completely for about 5 seconds then continuing on as expected :)
 
Next blog post is almost done
 
if someone knows ASP.NET, pls help
0
Q: Translate ASP.NET code into PHP

epic_syntaxI was reading this tutorial. http://ben.onfabrik.com/posts/pagedown-markdown-editor-custom-image-dialog At the end of it there is ASP.NET code [HttpPost] public ActionResult EditorUpload(MediaEditorUploadModel model) { string result; var serializer = new JavaScriptSerialize...

 
1:37 AM
I hate computers
the post is finsihed
it's a long one... (and that's saying something for me)
 
2:01 AM
is there any advantage/disadvantage to incorporating user specific data in the string that is hashed to produce an nonce value?
better yet, is there someone who wants $50 tomorrow for walking through code via Skype and assessing security?
guess no one is here; will check tomorrow morning for any takers, assistance would be greatly appreciated.
 
@ircmaxell is it a hardcover version ?
for you a long post is closer to what others would call "started to write a book, but half-way through got distracted"
 
 
1 hour later…
user895378
3:25 AM
@LeviMorrison I'm finally getting around to the redirection limitations in my integration tests. I agree that we should expose the redirect response chain. I think the goal should be to also handle the redirection ourselves by default (with perhaps an option to turn it off). And you're right, the RFC2616 section on redirect responses makes it clear that it will be more complicated than it might seem.
 
@dyelawn Ideally, a nonce should be as random as possible. Meaning, you probably shouldn't use user info or any other predictable stuff in it -- just create a big random string
At which point you kinda don't even need to hash it -- in fact, hashing may make collisions easier, increasing the chance of you using the same string twice
 
3:55 AM
i have a query i have two websites website1 contains mysql server i have to access mysql database from website2(domain2) both are different domains
plz help me
using php
 
@chaitu so what's the problem? there's a reason "host" is one of the arguments to mysqli::__construct (and why it's part of the connection string for PDO::__construct), ya know...
just tell it what server to connect to :P
 
just tel me the syntax of mysqli ?
we have to give any permissions for other domain
 
well, what do you have right now?
i presume there's a "localhost" somewhere in it, no?
 
i have only domain name db_severname username password of other domain
 
> shut up and give me codes
... riight
 
k i ll check that if any doubts i ll ask u thank u
 
and we will ignore you ... especially if you write like that
 
@chaitu thank google. it took about 10 seconds to find. it woulda taken you less time to google than to ask. :P
 
what is the socket option in that
 
read the whole thing
 
4:30 AM
$mysqli = new mysqli('kurupam.com', 'username', 'Pwd', 'dbnane');

/*
* This is the "official" OO way to do it,
* BUT $connect_error was broken until PHP 5.2.9 and 5.3.0.
*/
if ($mysqli->connect_error) {
die('Connect Error (' . $mysqli->connect_errno . ') '
. $mysqli->connect_error);
}

/*
* Use this instead of $connect_error if you need to ensure
* compatibility with PHP versions prior to 5.2.9 and 5.3.0.
*/
if (mysqli_connect_error()) {
die('Connect Error (' . mysqli_connect_errno() . ') '
. mysqli_connect_error());
i tried it but it shows internal server error
help me cHao plz
 
4:59 AM
is any body there to help me
 
@chaitu I cant seem to find any question. Looks more like you have made a bunch of statements. What is it you want to get help with?
 
i have a query i have two websites website1 contains mysql server i have to access mysql database from website2(domain2) both are different domains
plz help me
using php
 
So you cant connect from website2 to website1?
 
5:15 AM
yahhh i cant access database
 
Can you access your mysql from your local machine?
 
i can't able to access
 
Sounds like your Mysql server isn't set up to listen to external requests
If thats the case, dont forget to open the firewall too. But dont forget about security. There is a reason its not like that by default
 
Is anyone here?
 
Sure
 
5:21 AM
You know anything about mysql? or phpmyadmin
 
Sure, but depends on your question
 
On the left side of phpmyadmin i see this error.

SQL query: DocumentationEdit Edit

SELECT `tables`
FROM `phpmyadmin`.`pma_recent`
WHERE `username` = 'root'

MySQL said: Documentation
#1142 - SELECT command denied to user ''@'localhost' for table 'pma_recent'
Any idea how to fix or should i just reinstall everything because i think i messed with some settings somewhere
 
Just fix your permissions
 
Sounds like you changed the permissions for you phpmyadmin database
 
Most likely you have performed a messed up GRANT
 
5:26 AM
How can i reset the permissions? xD
 
You can do it from Phpmyadmin if your permissions that you have right now, allows it.
 
@cHao, thanks for the help. maybe a dumb question: if the security factor of an nonce is preventing CSRF attacks by maintaining instantaneousness of requests, how does one prevent the nonce from being created anew when the CSRF attack is initiated?
in other words, if my script sets the nonce field and the session variable for nonce on the loading of the page, why does a CSRF attack hidden behind an image with src attribute set to the targeted url fail? would the nonce not be created again with the embedding of such an image?
 
Ok thanks alot cleric i appreciate it
 
No problem, good luck
 
thanks
 
5:29 AM
Hey
 
Hey
 
i have a query i have two websites website1 contains mysql server i have to access mysql database from website2(domain2) both are different domains
plz help me
using php
 
@chaitu Did you get any help from the link I posted?
 
no
sir
 
Care to explain?
 
5:36 AM
@chiatu read cUrl documentation at php.net
now someone help me with my legitimate question, please.
 
Whats your question @dy
@dyelawn
 
maybe a dumb question: if the security factor of an nonce is preventing CSRF attacks by maintaining instantaneousness of requests, how does one prevent the nonce from being created anew when the CSRF attack is initiated?
in other words, if my script sets the nonce field and the session variable for nonce on the loading of the page, why does a CSRF attack hidden behind an image with src attribute set to the targeted url fail? would the nonce not be created again with the embedding of such an image?
no?
 
5:55 AM
I don't understand your question.
 
6:13 AM
Morning
 
Morning
 
Whats up?
 
Installing Xdebug, and having one of those "Why the fuck didn't I do this day one"-moments
 
Hmm, what is xdebug?
 
Remote debugging for PHP xdebug.org
 
6:17 AM
@Cleric And what is the best thing in xdebug?
 
ill try to rephrase. how does using an nonce prevent a CSRF attack?
 
Im fairly new to the concept. But a simple explanation is that you can hook it up with your IDE and you can "look inside" a variable, instead of error_logging it
 
@Cleric Hmm, interesting, maybe I should give it a try
Great, Olympic games are starting today ^^
 
Im working in China. And they are crazy about the OS here ;)
 
OS = Olympic games?
Well, Chinese people have many opportunities to get medals in these games - as always.
My country, in the best case, could get about 5 medals, if we are thinking quite real.
My girlfriend were in Chine for a two weeks some time ago - she said that it is impossible to live there if You are not native Chinese.
Is there any applications that make HTML/CSS from PSD?
 
6:27 AM
OS = Olympic games. Used my native abbreviation :P.
 
@dyelawn I'm no expert, but I think you may find some information here owasp.org/index.php/… although I'm not sure if it answers your question.
 
@Cleric Interesting :)
 
Hey, they are quite pumped up. But I would not agree with you gf, but you need to learn to speak Mandarin
 
But she said that there is soooooo many people everywhere, there is bad smell everywhere You go, there is no normal oxygen, there is hot and wet and etc, etc.
Haha, learning Mandarin would be the hardest thing I could do.
 
There should exist PDF to HTML/CSS libraries around. Cant recall anyone right now though
Everything you said is true. But after a month you cant smell it anymore ;)
 
6:31 AM
@Cleric Ok, I'll do a search. Because, I wanted to start doing some desinging but I hate CSS and always Im having trouble with cross-browser compatibility.
@Cleric Maybe, maybe. Where are You actually from? Europe/USA or somewhere else?
 
I would not trust the HTML and Css you will get back. It will probably look ok, but it will prob not be good html/css. I would stick to writing pure css and html
Im from Sweden. So the heat here is quite welcome ;)
 
Huh, it seems that writing own CSS would be the best choice.
Sweden, not far from me. But why working in China if in Sweden is very high level of living?
Ok time to smoke - back in 5min
 
Sweden is boring. Would not mind raising children there, but apart from that, it just plain sucks ;)
 
6:46 AM
@Cleric What is that boring there? I was there once and I love that place. As well as Norway.
 
Hej. Hur mår du?
 
I know just - Polse med brod.
Dont know if writing correctly.
 
Hej hej, bara bra. Hur mår du själv ::)
 
What did You just say?
 
Tack, jag mår bra.
 
6:52 AM
Well, its small and kinda isolated, sure the nature is awesome, but that to is not the most exiting thing.
 
Thank god for the internet. ;P
 
@Cleric Maybe, but still - nature, piece, people that smiles to You etc :)
 
Hehe
Pölse med bröd, would be the proper way of saying it, but works better in Denmark :)
Sure, I miss those things, but working in a company in China that aims for a group of users that are larger then the whole population of Sweden is more exciting. That and 1$ rum and coke and 1$ dinner ;)
 
My keyboard does not support that special Scandinavian symbols :)
I was in Norway and Polse med brod were correct.
Yeah, it could be more interesting that way ^^
Haha, 1$ dinner and rum :D Sweet. In Norway I paid 95 kronas (dont know if correct spelling) for cigarretes and the same for big meal in Burger King - sooo fuckin expensive. But still, their salaries are great too. And work time, I suppose, is till 3 or 4 PM.
Where can I find the things I am allowed to do when I receive some amount of rating in stackoverflow?
There was a beautiful table with rating and percentage of that I already have.
 
7:08 AM
morning
 
i have a query i have two websites website1 contains mysql server i have to access mysql database from website2(domain2) both are different domains
plz help me
using php
 
does any one know which all tables are required by default for WordPress ?
I put in the options table but then its giving the blog link to my local blog link 'localhost:90/blog' I couldn't find any instance of the same and I wonder how this has happened..
 
7:24 AM
@ShyamK , you mean that you used some sort of web UI to set it , and now cannot find where it was set ? Or that you set it , but it had no effect and you want to make sure that the value was saved ?
 
not really.. local site has a WP blog in it..
installed it there then decided to move it onto the live server
moved the structure of the db onto live.. but I'm getting the Error establishing a database connection page of WP
then I thought maybe if I imported the WP options table the problem would be solved..
got partially solved only..
 
if you cannot establish a connection to the database , then importing another table definitely will not change anything
 
pls lemme finish..
the visit site link in the WP admin panel links to localhost:90/blog and also the site link mysite.com/blog redirects to localhost:90/blog
the data in wp-config is correct and that is normally where one would change the db and server name right?
db username and password and all
atleast that is what I heard
 
there might be other reasons why you cannot connect to a db server
like , bad permissions on the sql server's end
 
so @tereško I don't think that its cos I can't reach the db.. its most probably cos it doesn't recognise the db table
cos when I simply import the options table the problem gets solved
 
7:33 AM
did you try to see if you can connect with a simple php script ? oh
 
ya.. I can connect to the db fine..
 
if you are importing table , then you will most likely do it from a file
grep the file's content for localhost
 
yes.. a .sql file
hmm.. never thought of that.. lemme check
ya there is one instance but I'm updating that later.. its still redirecting to the old link
after I've updated that value also the old url persists.. not really sure about where its getting that value from though
 
could it be cached ?
 
cached meaning? this section was never there before..
 
7:44 AM
i mean the value
you said that you updated it , but it might been cached and the old value is still used
 
hmm.. maybe.. I'm gonna try change the value in the sql file and then import it.. earlier what I did was import it and then update the value.. hope it makes a difference
 
oh .. the guys who photos himself in meat cellar is back
 
hey @webarto
 
There was this designer that complained developers are too complicated (with regards to installing software on a mac). I told him, well, it's their (Apple's) fault they had to build macs around bsd....they should have built it over Windows instead!
 
7:53 AM
I can access the admin panel at mysite.com/blog/wp-admin/ but I can't seem to get the blog at mysite.com/blog/ .. the problem persists.. maybe its the strange value that
okay.. found it...
there was a home field that contained the value of the earlier local blog
 
@Christian Ba-dum-ching?
 
stupid gedit.. didn't search and replace that
@tereško Thanks
 
@ShyamK hello :)
hell-o
 
7:57 AM
:)
 
PHP
Hello All, here is an interview question,
what is difference between "" and '' ? (I can define it but don't know how you explain when you are on telephonic interview)
I need some one line statment
please help me if any one can
 
@webarto you trying to follow @deceze?
 
@php double-quote parses variables and have more escaping rules(\r,\n,\$ etc) single quotes does not parses variables and only needs to escape \ and '
 
@PHP *cough*cough*variable*interpolation*cough*
 
double quotes can have variable values inside them.. "hi my name is $name"
but the single quotes can't 'hi my name is $name'
 
8:05 AM
but not really sure only difference is this so take a look to manual?
 
PHP
@draconis some how I like your ans. but I think still they want some more
@deceze :P answer me
@ShyamK thats the thing they don't want to hear
its a long text
 
oh.. okay.. you asked for a single sentence.. I gave a single sentence (okay I din't really :))
 
PHP
so that can hit it in one shot
 
@PHP tbh i don't know any other differences
 
PHP
I need some more technical and specific words in it
 
8:09 AM
8
A: Difference between single quote and double quote string in php

BorealidA single-quoted string does not have variables within it interpreted. A double-quoted string does. Also, a double-quoted string can contain apostrophes without backslashes, while a single-quoted string can contain unescaped quotation marks. The single-quoted strings are faster at runtime becau...

 
Heh, 50 vote answer, delete and replace with link to documentation
 
can anyone tell why does this code fail?
include ("dbcon.php");
$sql = "SELECT * FROM users WHERE username='".$username."';";
$query = $mysqli->prepare($sql);
$query->execute();
 
PHP
@ShyamK yesh somthing like @draconis's ans.
 
I just said the same thing in plain old english.. :P
 
@Tanmay what error do you get?
 
8:11 AM
Call to a member function execute() on a non-object
 
PHP
@ShyamK yeah i know.. you were right but my need is some techie shots
as I prefer telephonic interview :D
 
@Tanmay why do you have 2 semicolons at the and of the line?
 
@draconis one is inside the query, not technically wrong
 
@Leigh yes
 
@Tanmay so your query failed to prepare, check mysqli errors after your prepare.
 
8:13 AM
@Leigh never used this? when these are required?
 
I have a problem with __destruct. I create new Application object. I call static method from class Base::WebApplication()->execute(). Base::WebApplication returns Application object and it retrieves also execute method so it can be called. And in execute method it does all the fun part. And in Application class I have destructor which is not called. Is that bad way of calling Application->execute() so it is not able to get destruct or what?
 
@draconis They're not required
 
Hi, someone have some document or example for integrate papal,please help...i can't get access to paypal's sendbox,so i can't do a test,
 
@Leigh i shall check the error and get back in a sec
 
PHP
@deceze your ans is also hitting
first I will try this
 
8:16 AM
@Leigh ah it is for sql statement right?
 
@draconis Yes
 
@Leigh lol i thought it's about php or something
 
@draconis But you cannot execute more than 1 statement at a time, so it is not needed. It is still valid SQL though
 
@Tanmay you are doing it wrong
the prepared statements only protect against SQL injections if you know how to use them , @Tanmay
 
8:22 AM
@tereško hi, it is because of you that i have finally got down to getting mysqli
long time back you ridiculed me as hell
:P
haha
 
@tereško anyway what am i doing wrong?
 
and right now you still do not understand the difference between your old-school mysql code and prepared statements
 
yes i dont. enlighten me
 
the point in using prepared statements is that you sent the SQL code and data separately
but if you write $sql = "SELECT * FROM users WHERE username='".$username."';"; , then you have already embedded the data into your SQL
 
8:25 AM
i know i am not buinging the variables here using ?
*binding
 
yes
 
i am currently converting my old school mysql code to mysqli
 
which makes the code open to injection
 
so i am less bothered
anyway solved the error. thanks for your help @Leigh and @tereško
 
8:40 AM
@ShyamK how do you mean?
 
@Tanmay why not use PDO? switching DB backends would be simpler than with mysqli
in case this would be a requirement some day
 
8:57 AM
hi
 
mods can delete outright without needing votes right?
 
that is why they are mods :)
 
Sure, just checking
Am I wrong for flagging questions as "too localised" when its a bunch of source and the idiot poster missed a closing parenthesis? It's not going to help future visitors.
 
or not constructive, but there was a debate about that...
 
9:15 AM
2
Q: Make full site SSL / HTTPS? What performance issues & best practices still apply now in 2012?

Moin ZamanNote: There are existing question that look like duplicates (linked below) but most of them are from a few years ago. I'd like to get a clear and definitive answer that proves things either way. Is making an entire website run in HTTPS not an issue today from a best practice and performance pers...

> Would all external assets (tracking pixels, videos, etc) need to have HTTPS version?
^ Anybody know the answer for external videos? Difference between HTML5, Flash?
 
@webarto what are you replying to?
 
Hello PHPeoples, Please help with:
0
Q: Set up foreign key using Doctrine Record

watkibThe scenario: A client can make many requests, In the Request model I have: public function setTableDefinition() { $this->hasColumn('ref_no', 'varchar', 20); $this->hasColumn('client_id', 'int', 11); } public function setUp() { $this -> setTableName(...

 
@ShyamK @webarto you trying to follow deceze?
 
Advice needed. I have people selecting a State from USA, should I load the cities via ajax for given State or have the 400 cities for all States that I need to be preloaded with a foreach statement upon page load and just show the ones I need with javascript?
 
foreach will be much faster then HTTP request
 
9:22 AM
But at any given State there will be a max of 10 city results
 
@webarto oh.. that.. you seemed to be trying out different methods of saying 'hi'
 
ah :)
 
10 ajax results will be faster than 400 foreach statements?
 
no
 
an ajax result with 10 results in array*
So ajax it is then?
 
9:23 AM
do certain codes not work server side? for example <?php works everywhere but <? didn't work on the current server I was working on. Does something special require to be written for that to work? or is it just something wrong with the server?
 
<?php vs <? is short code method
 
short open tags on
 
you change that in your php.ini
 
from 5.4 they are always on
 
It's advized to have htem off because there may be issues with XML files from what i've read
and just use proper php syntax
 
9:24 AM
hmm.. guess the server is having it off.. or a lower version of php
 
just turn them on, no biggie, php.ini short_tags = on
 
@webarto No they are not
 
@Darius oh.. ya.. thanks for the heads-up.. thats a good reason to keep 'em off
 
and restart apache
 
@Darius And no do not turn them on, but rather fix your code
 
9:26 AM
@PeeHaa Like I said better to keep proper php syntax ;)
 
@PeeHaa any other reasons why we shouldn't use short tags?
 
Just gave a heads up on what could be an issue, but to others it's not an issue
 
@ShyamK Yeah, because we keep talking about deprecating them in the core . . .
 
oh..
 
@webarto @Darius @Shyam learning a lot from the exchange
 
9:27 AM
So for my question, what should I do when a person reloads the page and a state is selected, do a DOM ready and just run the ajax request again?
to get the cities
 
@PeeHaa guess then <?= is...
 
<?php echo
 
@webarto yup short hand echo is, but you also shouldn't use that imo
 
short hand killed me in my last project
It was my first time learning php and i learned short hand
then got on a server withotu short hand
took me 2 weeks to figure it out
because I Didn't know and i wasn't aware of Stack overflow yet
 
@PeeHaa I don't but it doesn't make sense to force something and then remove it...
 
9:29 AM
@Darius What error server throws out if it doesn't support short php tags?
 
I didn't have debugging on, i just got a white page
 
@watkib yep.. which is why I frequent here.. every question that arises here is bound to help someone or the other.. its a great learning experience even if you don't have any questions of your own..
 
w00
<?= is always on in php 5.4. Nothing wrong with that tag imo
 
@webarto It doesn't indeed. goto anyone?
 
<a href="/updates">^d8z</a>
 
9:31 AM
@ShyamK true, true, now looking to get help with a question: stackoverflow.com/questions/11645363/…
 
Wooo chat is booming haha
 
@PeeHaa who added that anyway :)
 
@DanielsPitkevičs ini_set('display_errors',1); is a nice thing.. don't you agree.. especially for newbies like myself
 
@ShyamK True, true
 
@webarto Sara Goleman
 
9:33 AM
Someone have created binary search in php?
And could it be implemented for retrieving data from database faster?
 
binary searches are faster from what I've read in a mysql book but never tried it
 
@Darius Well, yes it is. But I thought of the way how to implement it in php. How does mysql num rows get the number? SELECT COUNT(*) FROM table? It goes through table and then receives data or it gets count different way?
 
select count(*) should never be done, because it goes through the WHERE commands first, then it retreives all the data, then it counts it. So if you have lots of data in each row, it'll take forever
Did I understand the question correctly/answer it?
 
@PeeHaa thanks for info, so is there a plan to remove it?
 
Actually, not really.
When I use mysql function mysql_num_rows, how it receive correct number of rows?
 
9:38 AM
@webarto I didn't dare to suggest dropping it :P
 
posted on July 25, 2012 by Lukas Smith

So in the summer of 2007 I switched from Windows to OSX which also meant switching from Thinkpad to Macbook Pro. While there were some details I liked on the Macbook Pro, like the at the time quite innovative magnetic design on the lid latch, overall I was sad to not be able to use a Thinkpad. So it also came that my first Macbook Pro had to repaired 3 times in total. Despite having bought the

 
Oh, mysql_num_rows was able just after query execution, yes?
Hmm
 
@Darius really? oh.. that suxx.. now I gotta go and change my code.. count() any better?.. to get the count of course
 
Thinking of implementing binary search inside mysql
use count(id) not count(*)
 
@ShyamK Daniels is right, use count(id) or any indexed/primary table
id's work best
 
9:42 AM
@PeeHaa in Ruby... #define SUPPORT_JOKE 1, to enable goto :D
 
Does mysql store number of rows inside some variable?
 
@webarto :P
 
No, it just counts what it finds
grabs them all and counts
 
@Darius Not necessarily correct. Actually, COUNT(*) leaves the choice of what to count up to the database's query plan. COUNT(id) tells it to count a specific column, which may or may not be more efficient depending on how indexes are set up etc.
 
I want to create binary search at first when asking for first id
 
9:43 AM
But count(*) would fetch all the data in each row for the count
 
Does retrieving all data is faster then searching for one particular entry?
 
@Darius COUNT doesn't fetch any data. It counts rows that match the WHERE clause.
 
@Darius okay. Thanks for the info @DanielsPitkevičs
 
@ShyamK Go with what deceze says about what COUNT does. I'm starting to doubt I'm right in terms of speed. I do count(id) though
 
this is how you count, $result = mysql_query('SELECT * FROM table');, and then you do echo mysql_num_rows($result);
 
9:46 AM
@Daniels mysql_num_rows gives you the number of rows that matched the last query. E.g. you query SELECT foo FROM bar: database evaluates query and rummages through indexes and data to find what you want; it may or may not yet read actual data, but it comes back with "OK, I found x results"; that number you can get with mysql_num_rows; then you can fetch each individual result using mysql_fetch_*, which makes the database retrieve the actual data and return it to you.
 
@PeeHaa For me to read?
 
@Darius Nopez linked in general it's a terrible answer
 
I asked about this way back, Websockets, anyone use this?
 
Certainly someone here is better at Doctrine ORM than I am? I could do with their help. Good discussions going round in the chat room. I hope to get as good some day as to contribute. Doctrine ORM anyone?
 
9:53 AM
@deceze That much I know, but I was thinking a bit differantly. But doesn't matter
 
@Darius heard of . What is that?
 
@PeeHaa Hmmm..... what to do with that thing.... :=/
 
@Darius Well I just thought it was dumb to use that statement COUNT(*) when you can fetch the data and get a count of it using count().. (applies only to when you're gonna fetch the data anyhow in the next step.. I did loads of dumb things when I started out )
 
You know how to react to bad answers :)
 
It allows for messages to go back and forth between members without javascript, it's like this chatroom, no javascript requests, but yet we're chatting live.
 
Mob
9:55 AM
Hello
 
@Mob hiya
 
ya.. SO is totally awesome.. the chat is the best there is..
 
@PeeHaa It just so terribly borderline. Just when you think you spotted a good point, he throws in some goofy curveball ... -_-;;
 
@Darius interesting thanks. I might need to read more on it.
 
Mob
Please, does anyone know where I can get a good resource on data handling covering the following topics (io, byte arrays, seek, e.t.c)
Thanks
 
9:57 AM
@Darius I think you're missing something. WebSockets is not "like a chatroom". It is a protocol for allowing a browser to maintain a persistant connection to a server. It is also widely unsupported at present.
 
        if(!preg_match('/\AGET (\S+) HTTP\/1.1\z/', $lines[0], $matches) OR empty($this->connectionId))
		{
            /** (╯°□°)╯︵ ┻━┻ */
            $this->log('Invalid request: ' . $lines[0]);
			$this->sendHttpResponse(400);
            stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR);
            return false;
        }
it makes you wanna flip tables from time to time
 
@Leigh I probably am, that's why I want to know more about it. I was looking for a method on how to make a chatroom/messaging system to be live, like this chat room on stackoverflow.
How do I get live results? Like if a member gets a new comment, announce it to the member right away.
 
@webbearrto You need to stop your addiction to that emoji...
 
ajax requests every few seconds isn't how it work is my guess.
 

« first day (648 days earlier)      last day (4291 days later) »