« first day (678 days earlier)      last day (4270 days later) » 

12:01 PM
Hiya All
 
May I ask a WTF question?
 
can anyone here tell me whether or not its possible to set a static property to a function like public $table = get_class();
 
@youngcouple10 The code example you give does not map to your question - please re-phrase and try again.
 
Sem
@youngcouple10 If you want to do something like that, place it in the constructor.
 
`$tree` is a `RecursiveTreeIterator` and this happens:

Endless loop:

...
foreach ($tree as $key => $value) {
echo $value . "\n";
}
throw new Exception('Just for the fun.');

Works:

...
foreach ($tree as $key => $value) {
echo $value . "\n";
var_dump($key);
}
throw new Exception('Just for the fun.');

And again endless loop:

...
foreach ($tree as $key => $value) {
echo $value . "\n";
var_dump($key);
var_dump($key);
}
throw new Exception('Just for the fun.');

So for each even number of `var_dump($key)` calls inside the loop I get an endless loop. When I go there with a step-debugger (xde
 
12:07 PM
@hakra , what the hell are you doing ?!
 
using foreach with a RecursiveTreeIterator.
 
@youngcouple10 why the hell would you use a static properties to begin with ?!?
@hakra i was talking about the unformated crap-dump
 
Well I did format that but it didn't work well. Original code is here:
1
A: how to get a raw from a DOMNodeList

hakraPHP itself - even as there were announced improvements with PHP 5.4 - is not that good in displaying structural information for DomNode and DomNodeList. You can do something that I have outlined in a similar question Debug a DOMDocument Object in PHP: $doc = new DOMDocument(); $doc->loadXML(...

And it just worked a minute ago. Now I sometimes get this weird endless loop behavior.
Now this is even more weird. Using the echo or not in front makes the difference:
echo PHP_VERSION, "\n";

$doc = new DOMDocument();
$doc->loadXML($xml);
DomTree::dump($doc->getElementsByTagName('url'));
 
:5070808. @hakra @sem I have a main model class from which i extend my other classes. That class has in it a static method called find_by_id(). That method needs to know the name of the table that you want to select from. So until now on each extended class I created a static variable with the table name, and told the main model class to fetch the static::$variable name.
 
Sem
@youngcouple10 There is no such thing as a model class. (sounding like @tereško atm :/ )
 
12:21 PM
@youngcouple10 You do it wrong, stop using static and you do not run into these problems. You are just using the wrong tool for the job.
 
is there any way to get all JS error of web page using selenium?
 
Anyone has an idea why was this downvoted?:
-2
A: Safe way to fetch data with mysql/php

TruthIf you are certain that the data you're inserting is safe, it's fine to not use prepared statements. If you are the one generating $_SESSION["username"] and not the user himself, you can safely use it in a query. Also, instead of copying the row one by one, just add the entire $row to $products...

 
@Atin This is not the selenium channel, you might want to try the javascript channel.
 
ok
 
@sem @hakra Dont you guys use a static function that instatiates all that you take out the database?
 
12:23 PM
@Truth It is common to attack applications by modifying the session data from the outside, so you can never be sure that what you get from $_SESSION is what you put in there.
 
Sem
@youngcouple10 Are you trying to describe a factory?
 
@youngcouple10 No, why should I?
 
@hakra How could you possibly change the session from outside?
 
Because some kiddies thought that static is the hottest cheese on sliced bread?
 
All you can attempt to change is the session id
 
12:24 PM
@youngcouple10 no, we are not using statics at all
 
@Truth I'm talking about the data. E.g. by editing the session file on disk.
 
@tereško do you mean methods as well
 
yes
 
@hakra And how exactly would that be done from the outside?
 
@Truth You only need access to the default tmp folder that is often shared on shared hosts?
 
12:25 PM
mornin
 
I mean that is one of the first things you can try to attack users on a shared hosting situation.
 
@hakra , if someone can edit sessions directly on the server , then SQL injection would be the least of your problems
 
@NikiC Howdy
 
hi @NikiC. This weekend is Froscon ;)
 
@tereško So how do you get all your users from a database and have them back in objects
 
12:26 PM
@hakra I've never heard of that, care to expand on that?
 
@Truth php.net/manual/en/… - see the note about hjacking sessions
 
1
A: PHP - The best way to load Database object from Model, but to have only one instance?

tereškoYou are going in the wrong way about solving this. Instead of each time manually making a new "Model" and then configuring it, you should create a structure that does it for you ( extremely simplified version ): class ModelFactory { protected $connection = null; // --- snip -- publ...

 
@tereško Depends. Access to FS might not mean access to DB. But if you can use the access to FS (at that specific point which must not be globally) you could use SQL injection to manipulate the DB.
@youngcouple10 Short answer is: PDO, PDO is perfect for that.
 
@hakra What's that?
 
Another conference.
Btw on UnconfHH you were quoted in a talk.
Something about STUPID ;)
 
12:34 PM
3k! I can
 
Hey there, I can't ask a question. WHy?
 
@hakra what is the best practice? PDO? To return the values with PDO::FETCH_CLASS, 'classname' ?
 
-4
Q: Some General Questions

WaleedI want to know few things about web developing languages. Why shouldn't we use double quotes instead of single quotes? What is the best source for attaching JQuery to your website? Google API, Jquery.com or Downloaded JQuery.js file or any other? Should I use "DOC TYPE" in my web pages? Can...

@Waleed here is why
 
What?
 
have you even tried to read FAQ ?
 
12:39 PM
umm no
Where can I get FAQ ?
 
@waleed you can get some at the local newsagent :-)
 
Sem
@Waleed First babysteps on the internet. Hey there, meet Google. He can help you with your questions even if you can't express yourself properly in english.
 
@Waleed Generally, by clicking on THE FREAKING LINK TO THE FAQ THAT'S ON EVERY SO PAGE
 
@tereško for some reason i cannot ask questions, this is because i was not yet used to SO. Is it possible to unlock my ability to ask questions and perhaps then I can lay out my code and get some answers?
 
@Waleed Every new users has to tick the checkbox meaning he/she has read "How to ask". You failed to read it
 
12:42 PM
@youngcouple10 @Sem @SomeKittens Yeah yeah, I got it.
I am getting this when I click the "Ask Question?": Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more.
 
@Waleed Shoo
 
@PeeHaa -.-
 
@Waleed Why doesn't anyone ever click the link?
 
Go go Gadget tiny avatar
 
@PeeHaa Please don't show your self as a BOT
 
12:47 PM
@youngcouple10 you are making no sense .. at all
 
Are you serious? There's TWO people here who are banned and won't follow the link?
 
@tereško I started using this place a while and got banned cos my questions werent formulated well. Well now that I have gotten used to this place I would like to be unbanned, whats so hard to understand
 
@youngcouple10 How do you know you're banned?
 
@mikeb cos i cant ask questions!
 
12:50 PM
@youngcouple10 No, you know because you were given this message: Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more.
 
@MikeB well it amounts to the same thing, what can i do about it?
 
Click the f^&*ing link
There's 10 of you a day asking the same question on Meta
 
@mikeb what question on meta
 
"I'm getting a message with a link to learn more. Where can I learn more?"
rediculous
 
so , basically , @youngcouple10 and @Waleed , read the meta.stackoverflow.com/a/86998/161049
 
12:54 PM
@tereško You're too generous. If they can't follow basic instructions there's no way they've altered their behavior enough to warrant unbanning
 
heh
 
@tereško I have read it a thousand times, I have become a proficeint user on judaism.stackexchange.com but I cannot edit my questions to improve them, some of them are too bad. :-(
 
So what happens when there's five close votes, but for different reasons?
 
@SomeKittens , the top one is used as reason. If there are to reasons with equal amount of votes - the last one is used.
 
Ah, cool
 
1:00 PM
@tereško what can i do abou this, stackoverflow.com/questions/9488054/…
and no one explained their downvotes here stackoverflow.com/a/9481857/1085692
 
0
Q: How do I code a USSD in PHP to have an input box for a client reply?

SirBTI am trying to develop a USSD application. My menu displays just fine on the phones, however the form input box (for the client to put in his reply) displays as HTML code. Would you mind explaining how to make the USSD/phone render the form input box properly. Also some advice on how the sessions...

 
@youngcouple10 , because it is wrong : viperpad.com/fRgdKe
> Your example is not working because you have to put your code in braces after the while loop brackets, saying that each time a row is found, do something!!!
 
anyone know about USSD programming in PHP?
How do you render a form in USSD?
 
@youngcouple10 For example, if this does the job for you, you should prefer that. If not take a look at the Datamapper pattern which is most likely what you are looking for then. Which you can create based on PDO as well for the database interfacing then as well. But if you're still using static, you might first want to set properties of instances first.
 
@tereško finally, thanks a lot. See updated answer, not sure how to do line-throughs with html
@hakra thanks,so you say that static is bad practice for both properties and methods?
 
@hakra :)
@youngcouple10 yes
 
static variables a basically globals with optional visibility and static methods are namespaced functions
either way, you end up writing procedural code with object oriented tools
 
@tereško so you never use them?
 
no , i don't use them
 
1:29 PM
protip: don't peel potatoes with army knife
what's going on?
 
@youngcouple10 yes, you can say it that easily. Better work with object instances, you will create code that is easier to re-use and additionally you learn faster.
 
woah, thats new to me. so how do you get your database information into objects? Do you not need a static function for that to create a new self?
@hakra, thanks for the advice. Can someone unlock my account so i can ask questions, i tried to improve my answers and have since learnt how to use SO
 
no means no, never means never.
 
@youngcouple10 You mean the database connection or the data from the database?
 
@hakra data from the database
 
1:34 PM
@youngcouple10 , do you know what data mapper pattern is ?
 
hello :)
 
0
Q: Who should handle the conditions in complex queries, the data mapper or the service layer?

orourkekthis question did a very good job of clearing my confusion a bit on the matter, but I'm having a hard time finding reliable sources on what the exact limitations of the service layer should be. For this example, assume we're dealing with books, and we want to get books by author. The BookDataMap...

read both answers
 
@tereško not really i use something like this normally stackoverflow.com/questions/5603014/…
 
why would anyone think that it is a good idea ..
 
@youngcouple10 Instead you could fetche the arrays directly from the database. There actually is no need to wrap that into a class first.
You can then decorate the array with some class shell.
You then use the array as a normalization of object data (compare with value object) which is used as an intermediate format to (some) storage layer (that must not even be a mysql database then).
 
1:39 PM
@hakra after having an array, how to convert into objects automatically without a static function creating new self for each row
 
was that a question ?
 
@youngcouple10 I first of all meant one array per object. For an array of such arrays you would just iterate over them and apply that one by one.
 
Hey, any suggestions for tutorials for someone who's new to programming and wants to learn PHP?
(Bonus points for something that's project-oriented, rather than "here's a bunch of functions and how to use them")
 
I suggest you start with the beginning of the manual and read page by page. for everything new you learn, you play around with a bit.
Then after some time you might want to search for specific functions so you learn how to navigate the manual and pick functions you need.
 
@hakra @tereško thanks for all your help, gotta run.
 
Mhmm. Any online tutorials you recommend?
 
Hey
 
@PeeHaa bah
 
could there be a reason my my mysqli statcment fecth() always returns true when I know there is only one row to fetch?
 
1:49 PM
@MikeB ;)
 
What's the good word?
 
@ircmaxell > closevote
 
9 hours ago, by ircmaxell
blah
 
bird ?
 
yeah, I couldn't sleep
 
1:52 PM
:-(
$fetch = $statement->fetch(); always is true!
 
That's because $pet === "dog"
Set it to "cat" to prevent fetching. Don't set it to "Eagle" or it'll never return
 
....
 
since no one is ever in the ruby chat... anyone here have exp with capistrano, and rails?
 
@ircmaxell could you come to #php.pecl?
 
Haven't seen you in a while @gorelative
 
1:56 PM
@NikiC no, my bouncer is down
 
been hiding
 
Can noone help...? :-\
 
been exploring RoR, and hookers/blow. The life of a RoR programmer
 
@Neal The documentation on the return value of fetch is vague
> The return value of this function on success depends on the fetch type. In all cases, FALSE is returned on failure.
Doesn't really specify the behavior when no results are found
 
I can come to freenode...
 
1:56 PM
you know "the grass is always greener on the other side".
 
@MikeB but it always returns true! it should only return true once! my query has a LIMIT 1;
 
nevermind, on my way @NikiC
 
@MikeB it says to do this to fetch all the rows:
 
@Neal Sounds odd.. what fetch-type are you using?
 
while ($stmt->fetch()) {
    printf ("%s (%s)\n", $name, $code);
}
 
1:57 PM
infinite loop?
 
@MikeB thats what is happening for me... I am just following the docs...
 
> [09:58] == You are banned from this server- Temporary D-line 1440 min. - Blacklisted Proxy found. Visit spamhaus.org/query/bl?ip=173.213.212.233 for info. (2012/8/24 08.58)
perhaps not
@NikiC: context?
Ahh, I see
 
@ircmaxell any idea?...
 
what?
 
abt my mysqli fetch issue.
 
2:02 PM
Code or it didn't happen
 
@ircmaxell I am trying to use this code: php.net/manual/en/mysqli-stmt.fetch.php#72720
see the fetch_assoc method.
 
No, don't link to code samples. Show you exact code...
 
That is my exact code!
 
paste it
 
I just copied and pasted it
<?php
class mysqli_Extended extends mysqli
{
    protected $selfReference;

    public function __construct($dbHost, $dbUsername, $dbPassword, $dbDatabase)
    {
        parent::__construct($dbHost, $dbUsername, $dbPassword, $dbDatabase);

    }

    public function prepare($query)
    {
        $stmt = new stmt_Extended($this, $query);

        return $stmt;
    }
}

class stmt_Extended extends mysqli_stmt
{
    protected $varsBound = false;
    protected $results;

    public function __construct($link, $query)
@ircmaxell happy?
 
2:06 PM
Why the heck are you doing all that?
 
the while loop for fetch_assoc gets stuck
@ircmaxell I want to fetch_assoc for a prepared select query
if you have a better solution I would be glad to hear it :-)
 
Sem
The teachers at my evening study always say "A class is like a factory". And now the whole factory pattern thing looks like factoryception to me. Quite annoying. I prefer to call a class a blueprint.
 
$result = $stmt->get_result()->fetch_assoc()
 
I only want to get one row.
How would I do that? Do you have a code example? @ircmaxell
 
there you go
 
2:09 PM
But if there are hundreds of rows I only want to get one row at a time
that gets all of them!
 
No, that gets the first
 
and where would I put that in my code?
ooo u changed ur chat msg lol
 
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()) {
    //doStuff
}
 
ok one sec. lemme try
 
@ircmaxell jpauli wanted to have a chat with you :)
 
2:12 PM
chatting with him now...
 
:)
 
@NikiC: quick question: would you be able to come to Paris over a weekend in October?
 
I had a stupid issue.
I fixed it
I had $statement->execute() inside my while loop...
dumb...
 
there you go...
that's why I said to paste your code
yet you didn't...
Good luck next time
 
@ircmaxell sorry... My code was a bunch of functions working together. I did not realize that my fetch_row fn was inside the loop.... DUMB ME!
 
2:18 PM
0
Q: How can I pass a parameter in a custom Joomla button?

SomeKittensI can add a button that calls a function of my choosing with the syntax JToolBarHelper::custom('functionIWant', ... ); However, is it possible to pass a parameter along with that function? I've tried: JToolBarHelper::custom('functionIWant(0)' ... ); Which didn't work. Simply hard coding a...

 
This has turned out to be a very good week
 
@ircmaxell that could be problematic
 
Oh...?
 
osx is a piece of sh*t
lol
want to switch from webrick to thin for RoR? oh thats right you can't because it seg faults left and right.
 
Please open a feature request with owncloud and sponsor the development. Thank you! — hakra 12 secs ago
 
2:33 PM
@gorelative Preaching to the choir, my friend... Even Windows is better than OSX.
 
for RoR dev i'd agree
 
@gorelative yes, it is
 
Anyone attending ZendCon? zendcon.com
 
i have no probs using osx for php dev.. but when it comes to updating Ruby and using RoR/rvm... osx gets a trollface
 
2:35 PM
Hey I know, let's take BSD, a perfectly good operating system, and move stuff around and generally butcher it until it's totally unrecognisable. Then we'll stick a sexy GUI over the top of it, sell it to the general public for a fortune, then charge them an arm and a leg to fix it when it inevitably goes wrong.
Oh wait, someone already did it...
 
@hakra 17% accept, the only one is when he accepted his own answer
nice.
 
no ZendCon this year, I prefer keeping my 2500$ this year
 
yeah, for a conference it's quite a lot of money
 
well if I lived in Cali I'd probably go, but the flight and the hotel plus the conference... meh
without counting the unpaid week I spend there
 
I hear ya - I imagine employers foot the bill for a lot of attendees
 
2:38 PM
besides I already know everything about PHP ;-)
haha
@MikeB: yeah I went a few years ago paid by my employer
but I'm my own employer now, so...
 
just wait for the recordings :p
 
> I can't seem to find any good tutorials conserning databases
 
@ircmaxell Still chatting with jpauli?
 
@MikeB I turned on my computer and it didn't automagically take me to the exact thing I was looking for. Is there a jQuery plugin that can help me?
 
2:44 PM
@DaveRandom if it is about jquery, @webarto surely knows
 
I think I've got the ultimate solution to all problems
 
The off button?
 
Just imagine: if you combined both jQuery and regex!
could you image the possibilities?
 
Yes! let's parse HTML files using jquery and regex together!
 
@NikiC Make sure to create it using MVC design!
 
2:49 PM
...and throw some RewriteRules in there for good measure
 
Does anyone have ideas please: Apart sockets, what could I use for communication between several php scripts running on the same Windows server?
 
What's wrong with sockets?
And can you proc_open()?
 
@Jocelyn: Considering jQuery has a DOM parser, I think this is a great idea
 
@Jocelyn Shared persistence store + polling is an option.. but not ideal
 
nothing is wrong with sockets, I 'am looking for alternatives
I don't think proc_open is possible in my case, as all the PHP processes are busy and can't wait
 
2:52 PM
there's always shared memory, but you'd probably better off with sockets
 
Oh yeh you can't stream_select() handles from proc_open() on Windows, I always forget that
 
yesterday I had the idea of using a HEAP table + polling but it is not good for performance
thank you for the ideas
I had already tried with sockets but it wasn't working very well, I will need to do some debugging
 
@Jocelyn What is the exact nature of the messages you need to exchange? Do you have a master script or do the children need to be able to communicate with each other directly?
 
@DaveRandom no master script, each process sends its data to all the others. The processes are several IRC bots running the same game on différent IRC servers.
 
7
A: set text in jquery

webarto $('#error').text('Test message here');

if I was answering jQuery question, I would pass 20k long time ago
 
3:03 PM
@Jocelyn The thought occurs that a controller process would be a good idea, that way all the slaves can just have a single client socket that you can periodically select() to check for messages, relay all outgoing messages over that single socket and you only need to implement the complicated multi-socket handling stuff in one place.
 
@NikiC yup
 
@DaveRandom that's right, the clients would have less data to send, and would need only one socket for that
 
jesus I'm getting spammed for the comments left with the review tool for LQPs
out of the ~100 I did, about 50 tried to defend themselves
 
@Jocelyn Another bonus is that you only need one listening socket to deal with the whole lot
 
@netcoder: same here, I got several replies from people disagreeing with me trying to delete their low-quality questions, answers or comments
 
3:07 PM
I cant use foreach loop inside echo ?
 
@KuldeepDaftary no you can't. Use echo inside a foreach loop instead
 
@KuldeepDaftary no but you can use echo in a foreach loop ;-)
 
I'm already echoing something. And there are few dynamic rows which i want to echo inside..
 
yo dawg, I heard you like echo, so we opened up RFC, so you can echo, while you echo.
 
@KuldeepDaftary codepad.org/pIg1V0Jl
 
3:10 PM
ohh I see :)
Thanks DaveRandom
 
using echo more than once is bad practice
 
@DaveRandom : there are currently 6 clients running on the server, so even without a master controller the number of open sockets is not huge. But your idea is good anyway. I will modify my code and try that. Maybe it will happen to solve some issues I have with sockets too.
 
@webarto How so? Or do you like excessive memory consumption? :-P
 
hi there, ive been told to learn datamapping. Is that the same as ORM or singleton
 
webarto how would u approach such problem? dawg!!
 
3:13 PM
@DaveRandom I thought I read it somewhere here github.com/php-fig/fig-standards/blob/master/accepted/… but it's gone :P :P :P
 
Thanks @DaveRandom ! Works fine..
bye!
 
echo 'start', eval('foreach(array(1, 2, 3) as $value) echo $value;'), 'stop';
 
Ahh I See
 
eval()? Seriously? What's wrong with string concatenation if you're going to stick to the "only one echo" approach?
 
eval = evil :-p
 
3:17 PM
$var = 'start'; foreach(array(1, 2, 3) as $value) $var .= $value; $var .= 'stop'; echo $var;
 
@ircmaxell If there's anything of interest to me, could you send me the log later? got to go now
 
Very much of interest
 
@DaveRandom u r legend!
 
can someone tell me if ORM and datamapping are the same?
 
but let's talk soon about it (rather than sending the log raw)
 
3:19 PM
 
@youngcouple10 no. One can be used as the other, but in general no
 
@DaveRandom jk dude
 
@ircmaxell thanks a lot, and what about singleton
@ircmaxell can you point me to a decent tutorial where I can learn datamapping
 
tutorial? no, not really.
 
3:21 PM
lol
 
@ircmaxell and what about singleton
 
@youngcouple10 This is why you're not allowed to ask questions
 
or you know, wikipedia or something
 
@MikeB those tiny avatar people
 
what a waste of wodds when you could have told me in one word
 
3:25 PM
singleton in a singleword? crap
 
whether it is the same thing as datamapping? Takes one word for me but maybe youre too slow for that
 
one word: idiot
 
Do you actually want help with something or did you just come here to start a fight...?
 
@MikeB: don't waste your words, we only have a handful of them :)
 
@DaveRandom came with a question, but unfortunateky instead of saying I dont know people want to fight. If they are as dumb as me just admit it
gotta roll, enjoy yourselves!
 
3:29 PM
f* I give are lower than the downvotes
 
@youngcouple10 You dug up a two year old answer?
...wow. That's the height of arrogance
 
Speaking of which
 
@netcoder I don't know, I have a plentiful supply. Two of them rhyme with ducking brick.
 
@SomeKittens thats what i love about SO, everything is rememberd
gotta run fellas, been great!
 
3:31 PM
yeah you said that 5 minutes ago
 
my answer is a valid one, question was edited 12 times...
 
Nothing like a fight on a Friday evening. I might go to town in a bit a punch some pedestrians in the face.
Maybe kick a few pigeons.
 
oh f*, it's Friday ... better clean up my AK47
@DaveRandom gotta git push -f origin on Friday, it's Friday, Friday
 
ROFL
 
of course the -f here is for Friday
 
3:37 PM
-funk it, willfix on Monday :P
 
OMG PHP4 sucks so hard. How is there no self? How have I not remembered that?
 
Anyone knows a good CHM reader plugin for Chrome?
@DaveRandom Why are you using PHP4?
 
hahaha
 
@Truth Don't even go there. Suffice it to say that I am in the situation in which I periodically find myself where I need to convert one of my beautiful, lovingly crafted classes to something that will work on PHP4, and it sucks. Like, really sucks. I just actually had to write these lines:
$className = get_class($this); $var = new $className();
 
@DaveRandom: call_user_func_array(array(get_class($this), 'method'), array('args')); ;-)
 
3:46 PM
@DaveRandom :o I'd quit
And duck whatever company that uses PHP4
 
and I was mad because of 5.2 :P
 
@DaveRandom: you can't new $this in PHP 4?
 
It's a PBX that is great in every other respect. Most of the time I can just use bash scripts but occasionally I need to do something that bash can't handle.
 
@webarto He was special
 
Good point, I don't know. 1 sec
 
3:48 PM
@DaveRandom I mean really, PHP5 was realeased officially 8 years ago
Anyone still using PHP4 deserves whatever bugs they get
 
I have no patience for people who ask "Why am I receiving this message: Sorry, we are no longer accepting questions from this account. See goo.gl/C1Kwu to learn more."
 
Fatal error: Cannot instantiate non-existent class: object in ...
 
@MikeB Who asked you this?
 
@DaveRandom: ah well
 
@netcoder That would also fail if you override the __toString method in PHP 5.
(I think)
 
3:50 PM
@Truth There were 2 earlier today at the same time
 
@Truth: it won't
 
3 hours ago, by Waleed
I am getting this when I click the "Ask Question?": Sorry, we are no longer accepting questions from this account. See http://goo.gl/C1Kwu to learn more.
3 hours ago, by youngcouple10
@tereško for some reason i cannot ask questions, this is because i was not yet used to SO. Is it possible to unlock my ability to ask questions and perhaps then I can lay out my code and get some answers?
 
when new is passed an object, it simply does a get_class($obj) behind the scenes, it doesn't convert it to string
 
And then youngcouple10 inquired about the subtle differences between DataMapper, ORM, and a Singleton
 
lol
@MikeB I wish I was there
 
3:53 PM
@MikeB i was there , and i somehow missed it
oh ... right ... hakra was handling that part
 
lol, I couldn't tell if I was going insane or not because I seemed more upset about it than you @tereško :D
 
@Truth You know what the best part about that is, the system I am running this on is a beta that was built yesterday. I been leaning on the manufacturer about this for ages but they keep telling me they can't build PHP5 on the type of MIPS processor the system runs, which is nonsense - the real reason is that there is no way to obtain an IonCube loader that runs on the system with PHP5, and they don't even have any protected scripts in the current distribution - haven't for over 6 years.
 
@DaveRandom if (count(explode(" ", $post)) > 80) { $is_rant = true; }
 
I'm using php form to send Emails!
 
<seeths quietly>
 

« first day (678 days earlier)      last day (4270 days later) »