[01:47:17] <SlashLife> Well... print is a language construct that almost completely resembles a function.
[01:47:29] <slim80> ekneuss: I keep reading that but I'll get back to you on that
[01:47:33] <SlashLife> It takes a parameter, it has a return value, ...
[01:47:50] hal3 [n=hal5@host86-149-60-88.range86-149.btcentralplus.com] has quit IRC: Connection timed out
[01:47:59] <SlashLife> The only difference is that you are allowed to omit the parenthesis around the parameter, as ekneuss said.
[01:48:11] <slim80> because its a lang construct
[01:48:13] <slim80> I got that part
[01:48:26] <Wolfpaws> slim80: As said, you can look on language constructs as special functions. VERY special functions.
[01:48:29] <ekneuss> some language construct require parenthesis in some cases though
[01:48:52] <Wolfpaws> Yes. Like if() or for()
[01:48:53] <SlashLife> However, while you can do $x = 5; $func = 'sin'; $sin_x = $func($x);, you can't do $func = 'print'; $frunc($x); to print out $x.
[01:49:02] <SlashLife> Because it's a language construct and not a function.
[01:49:42] <Wolfpaws> print is an odd... Construct... It *can* act as a function, tho
[01:49:44] <slim80> give me a second to write
[01:50:00] <SlashLife> And that's why they stress that it's a language construct and not a real function in the "function reference".
[01:50:15] <ekneuss> language constructs are simply things that get handled in a specific way by PHP, and those are recognized at the time of the compilation.
[01:50:30] <SlashLife> Yeah. Also I think it'd be better it print was a real function.
[01:50:39] <erflynn> is there a way to put in a callback when an event happens, such as calling a method?
[01:50:41] <Wolfpaws> SlashLife: Whyt?
[01:50:43] <Wolfpaws> *why
[01:50:50] <SlashLife> erflynn: Define "event".
[01:51:02] <ekneuss> erflynn, you can overload undefined methods by __call (php5)
[01:51:08] <caffinated> i agree - the fact that print is a function or not is irrelevant. nobody uses print's "function like" behaviour to begin with.
[01:51:09] Athfar [n=Chris@pool-71-244-53-237.dllstx.fios.verizon.net] has joined ##php
[01:51:20] <SlashLife> Wolfpaws: So you wouldn't have to write your own callback in case you'd want to print it out.
[01:51:21] <Wolfpaws> true
[01:51:36] <erflynn> SlashLife: Something that php does. Like session handling--you can set callbacks when events happen
[01:51:45] para [n=para@wikimedia/para] has joined ##php
[01:52:02] <Athfar> how are babies made?
[01:52:09] <erflynn> Athfar: your mom
[01:52:12] <Wolfpaws> Cold fusion
[01:52:16] <Athfar> lol
[01:52:34] Sypher [n=Sypher@host243-17.pool8252.interbusiness.it] has quit IRC: Read error: 113 (No route to host)
[01:52:40] MatBoy [n=MatBoy@wiljewelwetenhe.xs4all.nl] has quit IRC: Nick collision from services.
[01:52:48] slide [n=slide@68.225.97.148] has quit IRC: Read error: 110 (Connection timed out)
[01:53:02] <caffinated> Athfar: read up on forking
[01:53:12] <Wolfpaws> hahahaha!
[01:53:30] <SlashLife> caffinated: "nobody"?
[01:53:45] <SlashLife> Oh, I get what you want to say: "Nobody as professional as you."
[01:53:55] NekoKun [n=chatzill@200-180-5-228.fnsce703.dsl.brasiltelecom.net.br] has joined ##php
[01:54:19] <caffinated> SlashLife: if you want to be an insulting fucktard, i'll just deal with you. i have little time or patience at the moment.
[01:54:31] Athfar gasps
[01:54:32] Caboobs [i=Caboobs@ool-182f7192.dyn.optonline.net] has joined ##php
[01:54:44] <SlashLife> <...>
[01:54:46] <Wolfpaws> SlashLife: He means "the sane ones".
[01:54:47] rjaym [i=rjokei@ip72-195-136-143.ri.ri.cox.net] has joined ##php
[01:54:59] <Athfar> </profanity>
[01:55:10] <para> hi. I'm running Apache+PHP on two different computers, which query the same MySQL server. One needs utf8_encode() in php for the query to work, the other won't work at all with 'special' characters. Any pointers?
[01:55:39] <erflynn> Versions?
[01:55:45] <Athfar> mod / cgi?
[01:55:47] <exaboy> hi caffinated, long time no see... well over a year
[01:56:13] <NekoKun> guys... how do I get the path of the file being parsed? I forgot it completelly... was it path(__file__)?
[01:56:21] <SlashLife> Ok, so today I've been called unprofessional, a dumbass, a nobody, an insulting fucktard and insane. And been threatened to be "dealt with" for simply having my own opinion while not insulting anyone.
[01:56:32] <SlashLife> Isn't that a nice result for a single day?
[01:56:36] <abstrakt> NekoKun, i think it's just __FILE__
[01:56:37] <slim80> is it safe to say that the parser is the php engine?
[01:56:42] <abstrakt> SlashLife, quit while you're still ahead/not banned
[01:56:43] <exaboy> so get to the point then SlashLife
[01:56:49] <Wolfpaws> SlashLife: You should get out more often :)
[01:57:01] exaboy ducks and hides
[01:57:13] Wolfpaws dogs
[01:57:21] <Athfar> discussions in #php are always exciting
[01:57:23] markg85 [n=mark@ip216-29-212-87.adsl2.versatel.nl] has joined ##php
[01:57:24] <caffinated> SlashLife: and you're about to end it with a +q - so keep digging
[01:57:42] <markg85> hey all
[01:58:03] <markg85> how are things going
[01:58:06] <SlashLife> abstrakt: If the price for having my own opinion and not bowing to the first best "professional" who solves his personal problems by reflecting them and banning unrelated people, then that's worth being banned.
[01:58:17] <caffinated> exaboy: i do apologise, i don't actually recall our last meeting :) we get a lot of people through
[01:58:22] <exaboy> lol... enter william wallace :P
[01:58:36] teds [n=chatzill@140.136.149.91] has quit IRC: Read error: 104 (Connection reset by peer)
[01:58:42] <exaboy> yeah thats no problem caffinated, i didnt expect you to remember.
[01:59:04] <Athfar> I remember
[01:59:18] <exaboy> remmeber what?
[01:59:25] <Athfar> remember my name
[01:59:26] Mr_Sako [n=Mr_Sako@24.163.113.48] has joined ##php
[01:59:37] <caffinated> SlashLife: i wouldn't be banning you for having an opinion - as a point of fact, i've let you have your opinion all day. i'd be banning you because you're trolling.
[01:59:44] route [n=skarecro@64.62.195.91] has quit IRC: "BitchX-1.1-final -- just do it."
[01:59:58] <caffinated> SlashLife: and i won't tolerate it. so you can make a decision.
[02:01:17] <ss2cire|MBP> thanks for the help, cya
[02:01:17] <SlashLife> Wait. It's considered trolling if I'm repeating something you've said all day?
[02:01:19] ss2cire|MBP [n=ss2cire|@static-65-127-35-34.inet.willitsonline.com] has left ##php
[02:01:35] <exaboy> who here works in Brisbane Australia
[02:01:37] <caffinated> SlashLife: you're purposefully trying to start an argument. yes, that's trolling.
[02:01:48] <exaboy> for MySql or PHP?
[02:01:48] ecoleman [n=ecoleman@cpe-76-50-132-99.buffalo.res.rr.com] has joined ##php
[02:02:09] <exaboy> you two need to get a room... ;)
[02:02:15] <caffinated> i have one.
[02:02:17] <caffinated> i'm in it.