« first day (990 days earlier)      last day (3948 days later) » 

2:00 PM
@Fabien do you know wat i ment?
 
Ohh, thats great I hope u seriously succeed.
@QuinDa I must say it is unreliable.
sometimes.
 
@QuinDa Ok, for example

I am on index.php. I click to go to page1.php (this will hide div #1)

page1.php $_SESSION['come_from'] = 'page1.php';

I click back to index.php

index.php
if(isset($_SESSION['come_from']) && $_SESSION['come_from'] == 'page1.php') { Show this }
 
@Fabien Why not use the function I just described otherwise u would define variables for bullcrap ;x
 
@Fabien when yo go to page1.php that wont hide anything. but yes you are right
 
@QuinDa Take a look here I just found this its similar to what you want: stackoverflow.com/questions/4004416/…
 
2:03 PM
@Tredged Yeah, FYI. On the HBO we could also speed up the route by doing it in 3years instead of 4
 
I find HTTP_REFERER can be unreliable with some redirects. And if a user refreshed index.php he'll lose it.
 
BRB toilet.
 
@Fabien For the record; that will output 4 lines.
 
@RahulKhosla as far as i remember file_get_contents had length parameter but not sure
 
@Fabien @draconis thaks
 
2:04 PM
@Bracketworks Indeed. meant <= but aye
 
any idea about curl http auth?
curl --anyauth --user user:passwd --silent --compressed http://blalbala
I'm trying with this but it doesn't work...
 
Ok I'm going to have a look
 
@Fabien so do I:

<?
$homepage = file_get_contents("http://www.example.com/data.txt");
preg_match_all("/^[0-5]+$/", $homepage, $matches);
print_r (explode(" ",$homepage));
?>
 
@RahulKhosla wow
 
@RahulKhosla Well print_r will show everything.
@RahulKhosla Look at the first answer on the link
 
2:06 PM
@Fabien whoops, i just realised i really suck at php
 
$myLines = explode("\n",$homepage)

for($i = 0; $i <= 4; $i++) {
echo $myLines[$i];
}
 
@RahulKhosla try this file_get_contents(source,false,null,-1,5);
 
sir i just when in array $asp two values or more than two values come how can i insert theses values in the database — ashy1234 4 mins ago
 
may be work but not sure didn't look manual
 
^ wut?
 
2:08 PM
@Bracketworks RIP
 
@draconis so: echo file_get-contents(link.com/aa.php,false,null,-1,5);
 
not - and ' end of strings
 
@HamZa yea that also is 1 year shorter all those years are so usefull
 
file_get_contents('source,false,null,1,5'); ?
 
@Tredged heh, and note that the HBO is ~1800 euro per year ...
 
2:10 PM
file_get_contents("file.txt",false,null,-1,5);
 
Yea costs a fortune _
 
thanks
and do i echo that?
 
yes it returns a string
 
It will return an array @RahulKhosla
 
if it doesnt work take a look to manual i might be wrong about parameters order
 
2:10 PM
@Tredged do you live in ams north ?
 
Then convert an array with the function ARRAY_TO_STRING_PHP_5.3($blabla);
@HamZa ams is xd?
 
amsterdam
 
@HamZa No :( utrecht
 
heh, ok ...
 
string file_get_contents ( string $filename [, bool $use_include_path = false [, resource $context [, int $offset = -1 [, int $maxlen ]]]] )
 
2:14 PM
Hmm, there's too much Dutch people in here :-P
 
@NiekBergman Tsssk error I aint dutch.
 
@Fabien whats wrong in this:
$homepage = file_get_contents('log.html');
$myLines = explode("\n",$homepage)

for($i = 0; $i <= 4; $i++) {
echo $myLines[$i];
}
 
Ok, for this case let's count people in NL as Dutch too then :-P
 
@NiekBergman Tsssk error I aint in NL.
 
2:15 PM
@RahulKhosla Have you tried echo'ing $homepage and tried print_r($myLines); ?
 
@Tredged: Utrecht is not in NL? :P
 
I am not in utrecht
 
But you live there?
 
@Tredged Are you dynamic ?
 
@Fabien for($i = 0; $i <= 4; $i++) { shows an error for some reason
 
2:17 PM
@HamZa I am dynamic, supersonic, hypnotic.
 
@Tredged not enough jquery
 
Intergalactic, planetary, planetary, intergalactic!
 
@HamZa Im mostly busy doing my stuff here since I am here all day of the week and sometimes I help I am dynamic indeed I am a photoshop expert and also baser for layouts HTML5 CSS3 PHP love it all
XHTML also
Visualbasic also
 
XHTML ShmXHTML
 
@Tredged How do you define br in XHTML ?
 
2:19 PM
You should close it properly lol
 
aaah, envy down voting, no reason
 
<br />
?
 
I am curious why everyone keeps testing what I will say LOL
I know things but I am not a proffesional
 
@Jimbo correct, atleast that's what I've read somewhere
 
With HTML5 you don't need closing tags to be valid
 
2:20 PM
My uper most favorite thing to do is base webdesigns
ohhhhh I love that xd
 
So as for those people who are like "YOU MUST GET PERFECT HTMLZ IN YOUR FIRST GO" - gtfo
 
Yea agree @Jimbo
 
@Fabien got it working
there was a ; missing :P
thanks :)
 
Oohhh 40more mins and then time to drive home :)
 
@RahulKhosla heh. Nice.
 
2:21 PM
XHTML!
 
HTML is a structured language, it must be programmatically interpreted by any number of clients; if HTML wasn't as loosey goosey as it is, the grammar would be far simpler.
Close shit properly.
 
BTW html is not a lang :p
 
@Bracketworks <br > is still readable lol
 
> In HTML 5, <foo /> means <foo>. The slash is just syntactic sugar for people who are addicted to XML. The syntax is valid, but it is not a "self-closing tag".
 
I wonder many people include html as language in their resume
 
2:23 PM
@Mr.Alien markup language
 
Yea and thats what I ment with <br /> close it properly because that is what men say if u would ask alot of people.
 
@HamZa I never said it wasn't "readable", it's just simply ridiculous to deviate from a well defined syntax to save a byte.
 
I always use <br />
 
XHTML got it right; HTML5 (as far as non-strictness) is poo.
 
won't make any diff
but looks like clean markup
 
2:24 PM
True I also always use the />
Ye
 
@Jimbo <foo> could also be interpreted as an open <foo> without it's closing.
The ambiguity is bullshit; perpetuating it is too.
 
Does anyone have an example of a doctrine2 entity with child entities being persisted from the top-level entity only? (with cascade-persist working correctly)
 
We're talking about self closing tags, not those that actually require a close tag like </a>
 
@Jimbo I had read that answer, people get +260^ for fixing syntax
 
2:25 PM
@Bracketworks Your english is so good I just wanne steal it :(
This whole discussion isnt even worth being discussed
 
@Jimbo Doesn't matter, self-closing tags are only well known in the context of HTML, but if the spec wants to reuse a tag that has historically been self closing as something that isn't, now we have a context problem.
 
"Now I ain't trying to make it too complex But let's just say shorty has an undeveloped context"
 
so, /> not a "self-closing tag"... but what is the difference?
 
damn you people, do whatever is favorable :p
 
"<br>" is used with HTML 4.01 Transitional doctypes. <br/> is meaningless as it is incorrect.
I totally agree
 
2:28 PM
The only reason that any of this is subjective is because the HTML5 spec shit the bed.
 
if ($tube11==$tube11 && $fan1==$fan1 && $bulb1==$bulb1) This if statement doesn't make sense, they are always going to be equal. And the elsif will never be executed. but if you want a new record in the DB, you probably want to move the insert into the for loop. — Doon 14 mins ago
 
^ @Bracketworks lol
 
LOL @ POST
 
@Mr.Alien , upvoted.
 
2:30 PM
@sectus I've flagged to delete.. :p
 
Let's use <br></br>
 
Why dont we just start discussion to change the <?php to <?hello
 
I already dislike the use of <? ?>
I'm not even a big fan of <?= ?>
 
No I am not paid per character.
 
2:34 PM
@HamZa If the spec wanted to repurpose <br /> as ... I dunno, "bindable region", as in <br>moo</br> now we're fucked, because everyone herped and derped about XML being strict and every site will be one big unclosed bindable region.
 
<i> Ohmygoddddness </i>
 
lol
 
@LeviMorrison Looks promising :)
 
@HamZa You asked me alot of questions my turn, what do you develop and what languages (or markup languages¿? XD)
 
Don't forget DPhil - a doctorate from Oxford University, England — Bathsheba 10 mins ago
 
2:37 PM
Quote "Don't judge each day by the harvest you reap but by the seeds that you plant." by tredged

^
Copyright infrigment on the highest level'
 
@Tredged just helping on SO. Mainly PHP/regex
 
Nice ;)
 
Don't judge each day by the harvest you reap but by the seeds that you plant. © ® - Vaibhav Mehta
 
@Tredged I would say Sublime Text
 
Hahaha @Mr.Alien
Thanks @dragon112
 
2:41 PM
13
Q: Help users create dummy links that are not to unrelated commercial sites

MołotA search for domains like mysite.com provides thousands of results on Stack Overflow and hundreds on Drupal Answers. I sampled some. Each and every one I checked was a post by someone ignorant about http://example.com, http://example.org and .example TLD, as defined in RFC 2606. Other "natural ex...

 
@Mr.Alien Shouldn't it be seeds you sow?
I'm sure the quote is accurate but sow would be the correct term :P
 
@Fabien Contact -> @Tredged
 
Anonymous
@HamZa You'r spending too much time in chat lol
 
Anonymous
You should be learning something instead like me
 
How does he learn you?
 
2:46 PM
@phpNoOBà° _à°  lol, you're right. I should be working :(
 
He dont steal my quote man
 
regex AKA alien
 
I spent 3-4 hours the other day debugging my my preg_replace() wasn't working.
Only to find out that there's a thing called pcre which limits the length you can perform a regular expression on a string.
When when you exceed this limit... it dies silently.
Awesome ... :(
 
> A closevoting gang is indeed not a good approach. However there isn't currently any abuse or statistically significant misapplication. And I would say it's strictly a temporary phenomenon. ~meta.stackoverflow.com/a/120358/170584, emphasis mine.
Temporary? Methinks not.
 
@HamZa Well that certainly would've been helpful. Where were you the other day with that information?
 
@Fabien Hmm thats funny I saw the same thing in the chat here lol
I love it when people come and say my QUERY aint working, and they forget to include their config _
 
Ok guys, am starting to develop a business network, wish me luck .. hope it gets awesome
 
@Fabien lol, I;m almost every day here :p
@LeviMorrison not soon :)
 
2:52 PM
Didn't matter in the end, some ugly looking str_replace(), strpos() and substr()'s saved the day
 
You did waste your time last time I was busy and for some reason my code wouldnt work and it was 300 lines long and I realized the code wasnt executing because it was in a if(isset($_POST['submit'])){ }
 
How long does it take for your brain to go to the zombie-zone after coding for hours straight. blankly stares off into the distance
 
Hehe
bleh
 
@Fabien Takes around 9 hours non-stop programming :p
 
2:56 PM
I'm sure there's a dev with a formula out there for it too.
 
or a function ;x
 
function productivity() { }
 
Looks like someone was jealous with that meta question
 
xd
Bleh, my work day is finally over have a nice day everyone keep up the good work and cya tomorrow 5 AM!
"Every goodbye makes the next hello closer. " By Tredged
 
5am pffrt
 
2:59 PM
Ye, anyway have a nice day.
 
See you
 
@Tredged are we going to see you here everyday nw :p
 
I've got this great idea for a website
It's like facebook except...
 
@Fabien not another fb :p
 
:P Definitely a cringe moment when friends say this.
People don't really understands the basics of making money off websites. Hosting costs alone if they're running off clicks.
 
3:06 PM
Social Networks are too many now
I have Twitter, FB and LinkedIn to contend with. I don't have enough time to devote to crap like Instagram
 
any symfony2 pro: stackoverflow.com/questions/17428987/… probably easy rep
 
@Jimbo I de activated fb, twitter is fail, I don't understand why it's so popular, LinkedIn sux and I am looking forward to build a better 1 like...
 
Google+ is my haven.
 
it's like just blabber world, show off your pics, show off your money and from inside actually they suck
 
Anonymous
@Jimbo I have only checked instagram once. Like, I checked the site if it was real or not.
 
3:12 PM
@Jimbo i will reword the question because i can see your confusion but i am not asking how to display a message to a user, but rather how to on redirect of access_controls
 
@CarrieKendall I updated with the 403 idea - your 403 page can have the flashbag check?
 
@Jimbo AFAIK it doesnt 403 unless the role is unauthorized. if you're anon, it redirects
 
@CarrieKendall I think @Jimbo 's link is a good solution using access_denied_url (symfony.com/doc/current/reference/configuration/security.html)
 
@CarrieKendall I presume the headers will be different if a redirect has occured? You could check the the Request class and see if any headers are different, if there is a redirect flag or something..?
 
PHPs DateTime, is it included from a specific version of PHP?
 
3:18 PM
http://php.net/manual/en/function.date.php
`(PHP 4, PHP 5)`
 
Oh not new at all
 
almost have it half running!
 
@Fabien DateTime came with 5.2.0
 
@Jimbo yeah, i am working on something similar to this, i was mostly curious if there was anything "built in" for access_control redirects
 
ty
 
3:22 PM
@Jimbo also, if i ever was redirecting to login for a different reason, this would fail. i am not entirely sure i ever would but.. never say never :P
 
3:35 PM
@CarrieKendall Well, it's a good question. There are two in there - how do you check if the previous request was a redirect(), and how do you check if the previous request hit an access_control rule. Neither one can be found anywhere on the interwebs or through quick scans of the docs, so I'd like to know this too :)
 
Anyone know the compile option for setting the php-fpm.conf location? i.e. the equivalent of --with-config-file-path=/etc but for php-fpm.
 
@CarrieKendall Have you seen this one: stackoverflow.com/questions/11968354/…
 
@CarrieKendall just out of interest, does this do anything for you?
 
@cheesemacfly reading
@Jimbo i will post my workaround in my question that involves the request status_code
> I could manage to have something working (long and hard :-) ).
2
Q: How to redirect to logout page in case of Authentication error in a Custom Security Bundle

fatbobi'm trying to create an custom security Bundle. I could manage to have something working (long and hard :-) ). Except that when I have an authentication error somewhere, i'd like to be rerouted to a "logout" page and not the login one. I thought changing the security.yml this way would send to...

 
3:53 PM
Hi, can someone explain me why this kind of things doesnt work with php
$arr[] = new AnyObject();
$arr[$arr->length -1]->someFunctionOfAnyObjectClass();

btw i'm new to php and w/e i read the manual sometimes i don't get the logic
 
@CarrieKendall That is bloody awful.
 
someFunctionOfAnyObject? -_-
 
You really going to make something that massive, a whole new security system?
 
What are you trying to do @JulienBreuil ?
 
@Jimbo LOL also, there's roughly 20,000 characters in the question
 
3:55 PM
i want to do something like that :
 
[$arr->length - 1] presumably should be [(count($arr) -1)]
 
someFunction($arr[ (count($arr) -1) ]);
 
i will take java as example of what i want to do ( i can choose an other if you want to)
List<Object> list = new ArrayList<>();
list.add(new Object());
list.get(list.length-1).functionofObject();
 
end($arr)->someFunctionOfAnyObjectClass()
 
4:01 PM
Thank you, it works. But i don't get it, i can't call function with this syntax : $arr[5]->function() ?
 
php.net/manual/de/function.end.php he just used end() to get to the last array element
 
@JulienBreuil You can do that, yes.
 
i can with a number, but i can't with a calculation?
 
you should be able to use calculations within []
 
wow i figure out why i was lost. i was thinking like i was using a domlistnode and misread the error message. Well sorry guys
 
4:10 PM
mistakes exit to be made no biggie
 
Hi guys, I wonder has anyone got any site/reading that can be done for unit testing views inside codeigniter or just unit testing front-end code?
 
4:25 PM
@cheesemacfly i found the solution with this, I'll post soon
 
Anonymous
4:36 PM
So, facebook changed their layouts ... again
 
4:54 PM
Hi all.
 
@AndrewCaulfield CI is not compatible with unit testing.
 
@hakre it should be possible to unit test portions of such a code base that are isolated from the framework.
 
user895378
@CarrieKendall I also had to google that. My initial reaction was, "I don't hang out with those kinds of girls!" lol
 
@rdlowrey the word was burnt into my mind by Michael Jackson and his alienlike black-to-white features :P
 

« first day (990 days earlier)      last day (3948 days later) »