« first day (872 days earlier)      last day (4090 days later) » 

9:00 AM
Saved By The Bell, Reading Rainbow, Mr Roger's Neighborhood, Rugrats, Ren & Stimpy =oD
 
@andho who needs a TV on the Maldives anyway? Ocean FTW!
/me only knows holiday resorts so my views and opinion on the Maldives might be distorted
 
@andho how does the Maldives get electricity? I know the islands are small, so is there like a power plant on one of them, or is it solar, tidal, etc power?
 
Same question for internet :P I was looking at some resorts, and there is no internet connection.
 
@Gordon hehe.
 
@crypticツ they are surrounded by the ocean, so it's electric eels obviously
 
9:02 AM
@crypticツ Power plant on each one
 
each one??!
 
@webarto the resort I was at had internet. not too fast, but good enough for vacation
 
not a "plant" per se. it's a Power House. just a small facility
 
cia.gov/library/publications/the-world-factbook/geos/mv.html everything you need to know about the Maldives, or any country really. This was my number one source during high school papers.
 
@crypticツ drool, those shows... takes me way back!
 
9:06 AM
@Gordon we do have 10 MBPS, and Fibre to home in the Capital now
 
@andho random fun fact: my reputation graph clearly shows the time when I was the Maldives
i registered in Nov 2009 and would leave for vacation by the end of that month
there is a short increase of reputation before I left, then two weeks nothing. and then it takes off
 
@Gordon couldn't find it hehe
@Gordon oh
 
@andho right in the beginning
 
9:15 AM
@crypticツ pick a tag / tags you want to keep track of and add the feed to chat.stackoverflow.com/rooms/24727/php-tag-cleanup-feed
 
Mornings
 
Jo Dave\
 
9:19 AM
@PeeHaa I just add the URL to the feed into chat?
 
DaveMorning
 
@webarto Ohhhh I see what you did there!
 
Can one request question move to other SE site if they question was written by someone else?
 
@Eugene flags can do everything
 
9:24 AM
@Eugene Close-vote as off topic, and if it's not in the list of 5 (it often isn't) flag it as well
Keep in mind though that just because it's on topic for another site doesn't mean it's a good question. Consider whether it's worthwhile moving it before flagging, it may just require a comment saying "post it over there and make it better first".
@webarto yo
@PeeHaa yo
Did I miss anything interesting last night?
 
seems more suited for WP SE site, rather then SO.
No one seems to think same way. Huh.
 
Yeh, but as it stands that is NARQ.
 
?
 
Zero research effort (shown) and very vague in general IMO. Although I'll grant you I don't know much about Wordpress and it may be clearer what is being asked to someone who does, it still shows none of the classic "What have you tried" effort.
 
Hi there,i have one question....
 
Hi everyone. I have a table with data about categories of items (ID, ParentID, Data). How can i possibly get whole category tree for certain category. For example:
I bet its a classical problem, but still kind of difficult for me to figure out.
 
Fatal error: Call to undefined function phpinfo() in stackoverflow.com/questions/15243595/… how does that happen?
 
@DaveRandom Agreed.
 
disabling it? but does that even work
 
And offcourse it needs to be done in SQL - thats the catch.
 
9:39 AM
@Hiroto you can disable individual function in php.ini
 
@crypticツ disable_functions ?
Doesn't really apply to the question though, unless the guy has just lifted an ini file from another install with that config and not changed it
That question is OT tbh, probably belongs on SU
 
My site have 2 server & one domain..
For example server 1 is "so.me.thing.50" & server 2 is "so.me.thing.51"...
If a request from any user..server check which server is not busy & redirect to that IP..

My question...
If I logged in my site,on that time my server Ip is "so.me.thing.51" & now I am moved to any other page now my IP is "so.me.thing.50"...
In this situation..my logged in session is expired or remove & again its asking to login..

Is there anyway to share session ?????

Please help me :(
 
@rynhe - This is interesting too serverfault.com/questions/32421
 
@Ivan0x32 It is indeed a classic problem, and one that MySQL does not deal with well. The magic terms to plugin into Google is "recursive self-join" because that is what you are trying to do in order to deal successfully with arbitrary depth.
However, that kind of data structure is something that NoSQL is much better suited for, flat-table result sets don't represent that kind of data model very well, even when you get the data back into PHP you would have to parse it back into a tree-like structure probably.
PgSQL has the recursive WITH construct that would make this a lot easier as well.
 
9:44 AM
Thanks!
 
OK thanks @Gordon & @Rikesh
 
/braces
 
@gordon i meant would it throw undefined
 
@Hiroto Yes it does, confusingly
 
Handle it please ^ :)
 
It could definitely do with a more helpful error message
 
@DaveRandom I have seen things yesterday...
 
@PeeHaa Things? No things here. Things are banned. Stuff only please.
 
9:52 AM
anyone know by heart how PDO:fetchObject assigns the values? Will it foreach over the db values and do $obj->$key = $value?
 
@DaveRandom Prepare yourself for the worst thing you have seen this year: github.com/zurmo/Zurmo
 
hey every one ...
 
@Gordon What matters more is whether it calls the constructor, and no I don't. Why, are you considering using a class with magic setter/getters? I suspect that won't play nice.
Oh wait
Well it kinda would, but it wouldn't call your accessors
 
what $_SESSION contain default
 
@AnkurSaxena array() I guess.
 
9:55 AM
session data from the session ID mapped to a data directory
 
You know what, I'm going to stop telling you what I think it would do and go find out
 
like i have session_start(); then echo "<pre>";
print_r($_SESSION);
die("here");
 
oh, default
empty array
 
it will print array like this Array
(
[id] => 1
[username] => admin
[usertype] =>
)
here
 
That's because that data has been put in the session previously, before your page loaded
 
9:56 AM
i don't understand where it get id username usertype.
 
@AnkurSaxena Try deleting the session in your browser.
 
i don't understand sir...
 
@DaveRandom i am asking because of stackoverflow.com/questions/15211637/…. I figured I could create a Factory with __set collecting the actual values from the db and then create the actual objects in the ctor based on the collected values. but it really depends on the code flow.
 
session_start();
#include_once "db.php";
mysql_connect("localhost", "root", "") ;
mysql_select_db("library");

$tbl_name="admin_member"; // Table name


// username and password sent from form
$myusername=$_POST['myusername'];
$mypassword=$_POST['mypassword'];

// To protect MySQL injection (more detail about MySQL injection)
#$myusername = stripslashes($myusername);
#$mypassword = stripslashes($mypassword);
#$myusername = mysql_real_escape_string($myusername);
#$mypassword = mysql_real_escape_string($mypassword);
like this way i use....
 
@Gordon How would a factory work? You pass in a class name, not a factory object, unless there's some feature I've missed...
 
9:59 AM
@DaveRandom yup. Pass in the Factory class name. The default is StdClass, so apparently it will somehow populate the object.
 
@AnkurSaxena - nothing such in this files...show your "db.php" which you are including ..
 
@AnkurSaxena Well it's possible the information in the $_SESSION variable is there because of another script you ran before. And as it saves as long as the session is active it will keep showing until the session is deleted.
 
sir i commented out #include_once "db.php"; as i show earlier...
 
@Gordon And then what, call fetch() on the resulting object to get an object of the type you want?
 
hi
 
10:00 AM
@AnkurSaxena - Although If you just want to reset your session just code`$_SESSION = array();` after session_start(); ..
 
can any one help me in Symfony?
 
@Rikesh Or you could do that however the session will not be reset, only the variable in php.
 
i think rikesh sir you are right ....
 
@DaveRandom No. stm->fetchObject('Factory') and then magic
 
i am new at symfony2 and i need to know basic about how symfony2 flow and all...
 
10:02 AM
@AnkurSaxena But if you do that, what is the use of a session... Clearing it at the start of a script kind of removes the whole purpose of it.
 
@Viraj.S that's what the Sf docs are for.
 
you are also right ....what i will do....
 
@Gordon Yeh but then you get a new factory for each row, that make no sense, I don't see why you couldn't just pass in the desired class name
 
@DaveRandom Op claims that is not possible in his scenario
 
10:04 AM
Array
(
[id] => 1
[username] => admin
[usertype] =>
)
here
 
@Gordon yes i have read that but some topics there is i am not getting like security.yml how to login, how to work with session
 
@Gordon Well he's wrong. He needs to JOIN the tObjects table and select the target class name as the first column of the result set, then use $stmt->fetch(PDO::FETCH_CLASS | PDO::FETCH_CLASSTYPE)
 
here i need usertype becoz after above script there is if condition check ....
$_SESSION['id']=$row[0];
$_SESSION['username']=$row[1];
$_SESSION['usertype']=$row[3];

if($row[3]=="admin")
header("location:admin.php");
else if($row[3]=="user")
header("location:user.php");
else
echo "error in validate user";

}
else {
header("location:index.php?msg=Wrong%20Username%20or%20Password");
}
 
@AnkurSaxena Well if this code has been executed before its quite logical that the $_SESSION var is filled, it remembers everything in it during a session.
 
i am on another person code i don't understand how it work...
i think
$_SESSION[' '] contain values and it will pass to array $row[' ']; // my problem is that i need values but here i got Array
(
[id] => 1
[username] => admin
[usertype] => ///???????????
)
usertype is empty..
 
10:11 AM
0
Q: PHP Directory Iterator Constructor Issue

Antony DAndreaI am new to using the PHP Directory Iterator. My understanding is if I do: $dir = new DirectoryIterator(dirname("/var/wwwphp")); Then $dir->getPath(); should be /var/wwwphp and I can start using it in that folder. But instead, getPath just gives me /var. Furthermore, if I iterate over ...

too localized?
 
i am sorry if i disturb you a lot......
 
@AnkurSaxena If it's empty it has never really been set i suppose. Try debugging the part where you set it.
 
If a question you cv'ed was deleted, do you get your cv vote back? Two times I have ran out of votes and was at 0 and then within an hour my votes available showed up as 1 and I got an extra vote.
 
ya try to resolve the problem....any way thank for your cooperation...
 
10:24 AM
@crypticツ shouldn't be. I think you're special
 
@PeeHaa - happens with me too..
 
No way. /me is checking his memos
 
2
Q: How was I able to close a question after running out of votes?

cryptic ツTime is now 9:10am (local) and I ran out of votes at 4:33am. However this question created at 8:33am Undefined variable: where in joomla\libraries\joomla\database\database\mysql.php on line 582 shows me as closing it. The thing is the question was closed AND created hours after I ran out of vot...

I think the system knows we are helping it and is being kind =o)
@Rikesh you should post in the question so we know other's are having the same issue.
not that it IS an issue =oP
 
@crypticツ :)
 
@crypticツ bounty offered ;)
 
10:36 AM
Perhaps when a question is deleted, you get a cv back?
 
@DaveRandom funny. PDO will first assign the properties to the object, then call the ctor. I assumed it to be the other way round.
 
We can try it out, let me find a question I cv-ed today and we'll delete it.
 
Good morning all!
Got a new work laptop today ^^
 
why is @crypticツ still awake? it's 5.37 in Orlando
 
10:38 AM
@Jack I didn't vote on that one, been out for hours
 
Alright, curb your enthusiasm all - it's a Dell.
 
@Gordon because I'm drinking wine =o)
 
@crypticツ that statement would make more sense to me if you had said RedBull or Coffee instead of wine
 
Unless it's magic wine.
 
10:40 AM
@Gordon alcohol makes me busy, I do amazing house cleaning
 
caffeinated wine
"will clean house for booze"
 
fuck me my head is wrecked
 
@crypticツ I see job opportunities coming ;)
 
stupid selenium grid & IE driver
 
3
Q: Jquery adding span after click

zlipprHi how it is possible to add a new selector and replace the current one to a link that has been clicked? following are my link before the click: <a href="#">Date</a> link after click: <span title="" class="i-wrap ig-wrap-common i-sort-descend-common-wrap ig-wrap-common-r selec...

How do questions like that get 4 upvotes?
Actually ... probably 3 from those who answer and 1 sympathy auto-vote.
 
10:44 AM
@Jack I've heard there are "up-vote gangs"
 
Cool! I need to set up Jack's Legendary Badge upvote gang; accepts are paid extra.
 
@Gordon This is what I imagined: stackoverflow.com/a/15245183/889949
 
@Jack just don't cross paths with this user meta.stackoverflow.com/users/214002/gang-downvoted
he is a downvote magnet
 
Lol, I can imagine with such a screen name =p
 
@DaveRandom I still dont get how he determines the type so I cant tell
 
@Gordon As far as I can work out the Parameter column in the table is the object type (it translates to a class name in PHP). Although I agree the question is not hugely clear, I almost CVed it but I'm reasonably confident that's what he means so I thought I'd suck it and see, I shall wait and see what he says, if anything.
 
user652649
hello
 
Morning again @wes :)
 
Hey @wes
 
@DaveRandom fair enough.
 
user652649
11:03 AM
hey chaps
 
@wes Heya
 
user652649
zzup PeeHaa
 
user652649
 
11:08 AM
morning :)
 
stackoverflow.com/questions/15245551 - This dipesh in is my blacklist now..
 
user652649
hey @NullPointer morning :P how about your file recovery?
 
@wes ahh just dont remember that ..... i got some songs only .. :( and some wallpaper
 
user652649
@NullPointer ouch. :(
 
11:13 AM
@wes and thats why i have got very less time to come here ... just working on damn project ... however there is no profit
:(
 
thinking of picking up some C/C++
 
Why does this question have 3 upvotes?
1
Q: How to send message from my site to youtube?

vivekDragonI am currently working in YouTube API integration.I completed upload video from my site to You tube successfully.I need to send message from my site to YouTube.I googling to get a code with zend concept. I want to send message without zend concepts.I need to approximate answer without zend conce...

Please don't downvote on account of my linking it here, I honestly want to know
Is it a quality question and I'm just not seeing it?
Or might there be something fishy going on?
The first two upvotes came in when the question was still in its original form
 
Hi ...please advise me..i am waiting for your responsive answer... — vivekDragon Jan 31 at 16:47
 
:D
 
^^ that has +2, definite sockpuppeting
 
11:19 AM
will learning any other C-based language help my PHP?
 
@DaveRandom yeah, flagged.
 
user652649
@Pekka웃 also 2 favs
 
@wes yeah. His profile contains a couple of that kind of highly upvoted garbage
 
will learning any other C-based language help my PHP?
thinking of picking up some C/C++
 
user652649
another upvote lol... this guy must have dozens of accounts
 
11:20 AM
its kind of this type meta.stackoverflow.com/questions/170242/… comment needed question
@wes lol now its 3 :P
@iroegbu may be core concept like function looping and complexity of program
 
@Pekka웃 How to flag such question ? I mean what message should we write to mod?
 
user652649
@Pekka웃 how should i flag these rep-whoring questions (if it is useful) ? i don't think to have cv permissions... only flag
 
hi @Pekka웃....Its k....I need to some guidelines from u...do have some suggestion for this... — vivekDragon 20 secs ago
lol .. its ok
 
@NullPointer ok... thanks
 
@NullPointer oh, we can relax then!
:)
@Rikesh Generally, you can flag the question and ask for a moderator to look into it. (I did it already in this case)
 
user652649
@Pekka웃 there are various options when flagging... is "it is spam" correct in this case?
 
@wes I would pick "other" and manually enter the message
 
@iroegbu if you can brother bla style English you can see nptel.iitm.ac.in/video.php?subjectId=106105085 those are really awesome lectures ...
 
user652649
ok, good to know, thanks
 
11:28 AM
@PeeHaa In a giant hive in the sky, obviously. Where else you you think Bees made from Clouds would put stuff?
 
@crypticツ its closed :P and posted just before by @PeeHaa
 
wow that was fast
oh
 
@crypticツ you really need a nap :)
 
sorry, im having issues with chat
I'm opening a bug report
 
11:31 AM
@Pekka웃 Y U NEVA RUN FOR MODARATA???
2
 
@Gordon mainly because my life is so unpredictable right now :) I'm going to be in the States starting August, and might not be able to put in time daily
 
@crypticツ do you have interwebs in USA?
 
@Gordon they don't. They don't even know what that is
Trust me on this, I checked when I was there.
 
@Pekka웃 lies :P
 
http://stackoverflow.com/questions/15245793/how-to-send-message-from-my-site-to-youtube
 
11:34 AM
I've heard they have the internet on computers now.
 
@NullPointer thanks a million
 
Only when you also buy a gun
 
@Pekka웃 i know for sure they used to sell interwebs on AOL cds.
 
@Gordon but I think those got outlawed in 2003.
 
11:36 AM
@iroegbu yours very welcome ... check other computer science video lecture too ... specially maths lectures
 
I remember, back in the day, men were real men, women were real women, sheep were nervous.
 
@crypticツ lol
 
@Pekka웃 excuses!
 
Where is it said that only persons can run for moderator?
The entire PHP chat room should run next time.
6
 
@NullPointer that shouldn't be hard. I know some C++ already, just need to brush up and probably do a small project
 
11:39 AM
1. Andrew Barber        [ 3265] ( 21k rep and  9257 helpful flags)
  2. Flexo                [ 2449] ( 28k rep and  7390 helpful flags)
  3. minitech             [ 1985] ( 57k rep and  3171 helpful flags)
  4. animuson             [ 1715] ( 14k rep and  1573 helpful flags)
  5. Gordon               [ 1665] (110k rep and   562 helpful flags)
  6. ChrisF               [ 1537] ( 60k rep and   434 helpful flags)
  7. Lord Torgamus        [ 1306] (  7k rep and   573 helpful flags)
  8. JNK                  [ 1249] ( 26k rep and   324 helpful flags)
 
Nearly there!
 
@iroegbu yup sounds good idea ..
 
@PeeHaa pffff. <20k user still has more votes. you are still not doing good enough
 
@Gordon As head of your campaign team I have failed :(
 
11:42 AM
@Pekka웃 stop changing the subject! :D run for moderator next time! everyone wants you to.
 
:)
 
I met @DaveRandom last night at PHPNW, he doesn't look anything like his profile picture
 
@PeeHaa hey, no need to be saddened yet! This is a close call. Remember, there are 4 positions
 
@Jimbo maybe it was an imposter
 
Maybe I'm the imposter...
 
11:43 AM
@Gordon Maybe it was :o
 
@Gordon thanks! Yeah, I guess I will eventually run when I'm sure I can put in the time.
 
The ZCE talk was good, going to get revising the array/string functions tonight
 
@PeeHaa maybe it's the flag count. That's what you get when you dont have to flag because you have cv-ring to handle them without a mod
 
@Jimbo You have some good collected stuffs for ZCE ? If you can provide the same ? Or anyone else have.
 
11:46 AM
@Jimbo lol
 
@Rikesh Actually, we were told most of the stuff is on the internetz... but you need to revise each and every array and string function, their parameter ordering etc
 
Hey everyone!
 
@Appu hello =o)
 
Thanks @Gordon & @Jimbo .. I think all from php.net :p
 
@crypticツ Yo! How is it going? I have changed my profile pic from cat image and you have changed to cat image :D
 
11:49 AM
@ircmaxell Where do you stand on encrypting empty strings? On one hand I feel like I am giving an adversary a potential known plaintext and iv, on the other hand I feel like I should be obscuring the fact the field is empty.
 
@Gordon Heya! why does the starred one refers you as Uncle Gordon?
 
@Appu I love cats, they are the ninjas of the pet world.
 
@NullPointer We'd lose 1/3 of them =oP
 
@crypticツ I love snowbell(in Stuart little) type of cats much.
 
11:51 AM
@Appu yeah, I was curious about the same thing. Is this a Russian thing?
 
while(@crypticツ){ progress++; } :P
2
 
I think it's common in Russia to refer to any trusted older male as "Uncle", but I can be mistaken.
 
@Pekka웃 I don't know. It might be.
 
@NullPointer that's a great campaign slogan =oP
 
@Appu because my surname is an old word for uncle and when you run my website through google translate, it will refer to me as gordon uncle, which is funny because there is also uncle bob (a well known software engineer)
 
11:55 AM
@crypticツ :)
 
Where is your website? @Gordon
 
@Gordon Gordon Onkel? :P
 
user652649
:P
 
@Appu on the interwebs :P
 
11:57 AM
o_O Really. You made me realize which I didn't know :P
Onkel
gives me Uncle
Anyways I have starred it and gonna vote now.
 
@Appu :)
 

« first day (872 days earlier)      last day (4090 days later) »