« first day (660 days earlier)      last day (4304 days later) » 

4:00 PM
I think it's cooler if you switch to PDO for yourself.
 
I'm baffled...
it's like I just about get all conmfy with mysql then bam.. "DON'T USE MYSQL!!!!"
 
@Whisperity I was AFK when that happend. Let me re-read.
 
@ircmaxell borzoi.net/BN-WEB/Html/Russ-Female.htm like I said, not a rule, but they end with "a"... Niki can also be short for Nikolina (female)... but I do agree it is irrelevant :)
 
@JordanRichards Nobody said don't use MySQL. They said don't use mysql_*() and mysqli_*()
 
So if I wanted to perform a while(mysql_fetch_assoc($query_run)) {}
how would I do that with mysqli
Leigh, sorry that's what I meant
 
4:02 PM
@webarto you're using romantic language rules on a non-romantic language. It doesn't work like that...
 
@JordanRichards php.net/mysqli_fetch_assoc
 
head explodes with confusion
 
@ircmaxell there is no Unicode like format for that, we'll call @hakre Ha from now on :P
 
@Leigh you arent Leigh Eyles are you?
 
@JordanRichards Obvious troll is obvious.
 
4:04 PM
@LeviMorrison Agreed
 
(sorry I'm not used to OOP, TNB is rather brief on it#)
Levi I'm sorry, what?
 
@allen213 You seem to be confusing me with someone who would tell other people who they are on the internet.
 
so I come here ask a few questions then get called a troll?
 
@JordanRichards TNB? The Next B?
 
@Leigh No problem just thought you sounded like an old contact
 
4:05 PM
The New Boston.
 
@JordanRichards Well that means welcome, make yourself comfortable, troll with us.
You have not seen us posting pictures actually.
 
I have..
This blue picture with some sort of human being
 
@allen213 "Junior Web Developer - Produced work on sixteen separate websites during my temporary contract, including six complete site builds." ... no, certainly not.
 
(it's worse than 4chan)
 
then it dissapeared
 
4:07 PM
ah the nikita one. okay how is Object Oriented Programming related to The New Boston? I still do not understand the connection.
 
Google TNB
It's coding tutorials
 
ah okay.
 
Google is The Next Boston?
 
No...
lol stop messing with me
I know I'm 14.. but still come on guys.
 
we got a badass here
 
4:08 PM
ups. googling TNB suggest as well the urban dictionary: urbandictionary.com/define.php?term=TNB
 
@JordanRichards Yes, you keep saying. Now hurry up and grow up, so you can start asking interesting questions.
 
Typical Noob Behavior ?
 
I never said "Now Hurry up and Grow up"
 
yes, that is rude of you @Leigh
 
4:09 PM
LIAR! WE GOT A LIAR HERE EVERYBODY, CALL THE ENGINES FIRE!
Lol.
 
@JordanRichards You did say you could read. So who is the liar?
 
I'm pretty sure your smart enough to work that one out by yourself
 
Probably we should name the introductory tutorials as well "Tooted and Booted".
 
I'm going home, before I get banned from chat again for remarking about how clever I'm sure you are. Ciao.
 
Talk to Database with PDO - The Tooted and Booted Series
I sense some rough feelings between these chat lines.
Probably we should turn this negative energy into something positive.
anyone has nice pony pictures?
 
4:13 PM
stretch yawn What a semi-productive Monday that was... =_=
Let's get wasted...
 
Eh, this monday was full of bad moments for me so far.
 
I got it to work
 
@deceze 3rd working hour, 0 LoC
 
@deceze That heals my soul a bit. Any kittens?
 
4:14 PM
I'm "researching", and you are a pony...
I like dags
 
8th working hour; some dozen LoC, some SSHing, some talking about specs, some emails... good enough. :)
 
What's wrong with this:
setcookie('playersObject',urlencode(serialize($_POST['data'])),time()+1200) or die(death());
 
@deceze not cute :) but thanks for the pony it is a really nice one.
 
:( No pasty goody picture...
 
@KianMayne , to begin with , it has ..or die() bit in it
 
4:18 PM
But it works on localhost, just not on the production server
 
@KianMayne enable error reporting
 
please tell that you were kidding?
 
die(death()) - Does that mean it's not going to die...? :confused:
 
opposite of opposite is...
 
If you kill Death...
 
4:18 PM
You may get an error about permission or non existent folder you are trying to write the sessions in @KianMayne
 
@hakre <------ (My gravatar)
 
@LeviMorrison meouw - puuurrrr
 
I get
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/kianmayne.co.cc/httpdocs/elitecontact.php:4) in /var/www/vhosts/kianmayne.co.cc/httpdocs/elitecontact.php on line 90
 
you know what that error message means?
 
no, they are so hard to read and confusing
 
4:20 PM
108
A: Headers already sent by PHP

marioNo output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information - headers already sent (output started at file:line) Some functions modifying the HTTP header are: head...

 
@KianMayne Strange cow you have there
 
This is what happens to people who ask about headers already being sent
-11
Q: Warning: Cannot modify header information - headers already sent

Weston Possible Duplicate: “Warning: Cannot modify header information - headers already sent by” error I'm working on this test page to kind of get my mind around php and I keep getting this error. I been reading posts for the past few hours but can't seem to find my problem. Thi...

 
4:22 PM
> You cannot counterflag your own message
:(
 
The flag buttons confuse the hell out of me
Valid, Not Valid.. do you mean the flag or the content.. which are polar opposites?
 
Here's the code of the processor:
<?PHP
if(!empty($_POST['data']))
{
    $success = setcookie('playersObject',urlencode(serialize($_POST['data'])),time()+1200) or die(death());
	if($success==true)
	{
	echo "Cookie set sucessfully!";
	}
	else
	{
	echo "Something broke.";
	}
}
else { echo "No playerData sent."; }

function death()
{
	echo "Invalid PlayerData string";}
?>
 
i think it means "flag was valid and you agree" , "flag was invalid, thus counterflag"
 
But it's not setting the cookie
 
3 mins ago, by deceze
108
A: Headers already sent by PHP

marioNo output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information - headers already sent (output started at file:line) Some functions modifying the HTTP header are: head...

 
4:24 PM
Also that error message wasn't even from that page I'm going crazy
 
because of the BOM or aliens();
 
@deceze ...That's not the problem
 
yeah right
 
@KianMayne ...
 
@KianMayne It is. That answer lists all possible reasons.
 
4:25 PM
@KianMayne , if you think that we are all retards , then you should just leave
 
I don't
1 min ago, by Kian Mayne
Also that error message wasn't even from that page I'm going crazy
 
Hi any one know about multiple includes files in php. I have a huge directory and include php file in one file, that is already included in another file.
 
1 min ago, by deceze
3 mins ago, by deceze
108
A: Headers already sent by PHP

marioNo output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information - headers already sent (output started at file:line) Some functions modifying the HTTP header are: head...

 
@abdulwakeel use an autoloader
 
throwing now an issue.
ok thanks, let me try
 
4:26 PM
I don't understand? There is no error generated by the cookie setting page?
 
@KianMayne did you READ the linked topic ?
 
1 min ago, by tereško
1 min ago, by deceze
3 mins ago, by deceze
108
A: Headers already sent by PHP

marioNo output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information - headers already sent (output started at file:line) Some functions modifying the HTTP header are: head...

 
@KianMayne Then tell us more about what it does do and what it should do.
 
4:27 PM
thanks @PeeHaa and @tereško, let me try that
 
When I make this jQuery AJAX POST request
$.ajax({
			type: 'POST',
			url: 'playerProccessor.php',
			data: {data: players}
			});
It responds with "Cookie sent sucessfully!" but when I look at the cookies for the page it's not there
 
oh jQuery, nice
 
@Kian How exactly are you determining that?
 
@KianMayne I believe you need a Super::$static for that to work
 
4:30 PM
The Javascript console function "document.cookie" or Chrome's cookie browser
 
@KianMayne If javascript can access cookies you are doing it wrong
set the http only flag
 
@KianMayne Have you looked at the Network tab what exactly is sent and returned by the AJAX request?
 
I'll try that now
Thanks for that
I can see now that the cookie is being set
 
@PeeHaa I think its used for newly developed application, but we have many files directory existing, and site is running ok with require_once,
 
But it's being set in the past
 
4:33 PM
but there is two files which cause an issue.
I want to just use require once, include, include once.
 
and I just checked, and the server's time is wrong.
 
Halleluya! The power of debugging!
And just for the fun of it:
6 mins ago, by webarto
1 min ago, by tereško
1 min ago, by deceze
3 mins ago, by deceze
108
A: Headers already sent by PHP

marioNo output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information - headers already sent (output started at file:line) Some functions modifying the HTTP header are: head...

 
10 secs ago, by deceze
6 mins ago, by webarto
1 min ago, by tereško
1 min ago, by deceze
3 mins ago, by deceze
108
A: Headers already sent by PHP

marioNo output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information - headers already sent (output started at file:line) Some functions modifying the HTTP header are: head...

 
4:37 PM
It's working, that was indeed the problem!
 
you owe us an apology?
 
But it had nothing to do with Headers?
But yes, I'm sorry. I didn't exactly listen to everything
 
technically it did
 
@PeeHaa the question which you have shared is json related.
 
Not the headers already sent by PHP
 
4:42 PM
gist: A brief description of cv-ring and cv-pls, 2012-01-27 15:55:00Z
# What is 'cv-ring' and 'cv-pls'

In the [Stack Overflow](http://www.stackoverflow.com/) [PHP chat](http://chat.stackoverflow.com/rooms/11/php) you may notice that the regulars use a tag called `cv-ring` and `cv-pls`.  These tags are used only in the chat room to communicate with other users that a question or answer may need more votes to be closed.  You see, PHP has a lot of inferior quality and duplicative information on Stack Overflow.  We feel that these questions bring down the site and make it harder to find good information, particularly about PHP. By closing and merging these questions as appropriate you'll find the information you need quicker.

`cv-ring` is just a 'funny name' we give to the process and `cv-pls` is simply an in-chat tag that communicates "Hey, this question may be of inferior quality.  Check it out and, if you feel appropriate, cast a close vote."  

There's been a question on [meta.stackoverflow.com](http://meta.stackoverflow.com/) that [asks whether the community should vote-to-close in this way](http://meta.stackoverflow.com/questions/120275/is-asking-others-for-a-close-vote-appropriate/120278#120278) if you feel the need to provide feedback.  If you have a problem with the process or notice abuse please post something on meta or talk to us in chat.  This process is meant to *help the community* but can easily start *hurting the community* and that is not our intent.  I hope this clears up a little more about what `cv-ring` and `cv-pls` means.
 
I've been wondering
 
ooo automatic gist parsing in chat? is that new?
 
Why are popular websites all telling users that they're storing cookies now?
 
@orourkek No.
 
whoops, got it.
 
4:42 PM
@KianMayne Some laws in EU and a few other places mandate it.
 
Wtf, why?
 
Google it man
 
If you don't care enough to search for the answer, why should we care enough to type out an explanation?
 
class HeadersSentException extends RuntimeException
{
    public static function throwIfApplicable()
    {
        if (headers_sent($file, $line)) {
            throw new self(sprintf('In %s on line %d.', $file, $line));
        }
    }
}

HeadersSentException::throwIfApplicable();
Just for the taste of it :)
until l8ters.
 
I'm surprised nobody made a Bullet Bill version of that.
 
@PeeHaa It's what HAML looks like. RoR can use HAML, yes.
 
Is username:password@hostname valid for http schema URLs or is that restricted to stuff such as FTP?
 
@LeviMorrison Ah right I only now see HAML :P Well it still looks like a turd
@GordonM is valid
@GordonM Although the password should be stripped when making the url public
 
I thought it probably was, but can't find it in the PHP superglobals when I use it.
@PeeHaa obviously. :) Just testing request parsing logic and it'd be silly if it parsed that as valid if it's really not.
 
Ah, figured he'd have looked into it.
 
:D
 
If anyone is interested in how their state stacks up for income tax: Link I was looking over it because it seems like Maryland takes way more out than Michigan did when I lived there.
 
If I encode a username and password into the URL is that information available from PHP or is that intercepted at the HTTPD level?
 
@GordonM What do you mean by encode?
 
4:58 PM
I mean if I go to user:password@example.com would "user" and "password" be available to PHP?
 

« first day (660 days earlier)      last day (4304 days later) »