
Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
No, both BSD and Linux are based on Unix, but neither of them are based on each other.
-
Your computer guy doesn't know what he is talking about. OS X is based on BSD, not Linux.
-
http://www.phpfreaks.com/forums/index.php?action=profile;sa=subscriptions
-
You can put (almost) whatever you can put Apache's httpd.conf configuration file in .htaccess files. See: http://httpd.apache.org/docs/2.2/
-
Since when did explaining something become the same as giving a solution? Teacher: Find x in: 5x=10 Student: How do you do that? Teacher: 2
-
Are you serious?? Yes. All the PHP Freaks staff was at the funeral as well.
-
what ever happened to [ php ] [ /php ] ?
Daniel0 replied to dezkit's topic in PHPFreaks.com Website Feedback
Not possible. Mono- = alone/single/one. Space = space. I.e. a font where all glyphs have a single amount of space. Could for instance be Courier. That's opposed to for instance Helvetica where e.g. m is wider than n. -
what ever happened to [ php ] [ /php ] ?
Daniel0 replied to dezkit's topic in PHPFreaks.com Website Feedback
Read the above posts: 1) No monospaced font face 2) People do use them for large amounts of code which result in a very long page Both of those two points make it more difficult to read the code. -
In a moment someone will tell you that you shouldn't use PHP4-style OOP. They'll also tell you that you should use the setter methods you've created and that you should just set default values instead of doing it in the constructor. Moreover, you'll be told that instead of tracking "changes" you should just use preg_replace_callback() to replace matches.
-
I just wiped the HD with my Vista install, so it's the default with a couple of icons. I haven't got grub back up yet so you can't get my Ubuntu desktop. [attachment deleted by admin]
-
All of them are perfectly intact. They will, however, not be restored. The ones that were mangled were the ones we temporarily converted to forum posts. Those are gone now.
-
With CS4 out, don't you think that buying something for 8 Pro is a bit stupid?
-
Just quickly glancing over it, this is where you got it wrong: $artnr[] = secureFormInput($_POST['artnr[]']); $antal[] = secureFormInput($_POST['antal[]']); $_POST['artnr'] and $_POST['antal'] are arrays, so what you'd do is: $artnr = array_map('secureFormInput', $_POST['artnr']); $antal = array_map('secureFormInput', $_POST['antal']); That'll sanitize the arrays using your function. You can try to print_r($artnr); and print_r($antal); after you've done that to get an idea of how it works.
-
Uh... dude, we only allow humans to login. Locked.
-
What does it take to be called a MVC Framework
Daniel0 replied to Liquid Fire's topic in Application Design
Traditionally a model represents an object. E.g. an instance of Person could be me and an instance of Book could be one of my books. If I have more books then I have more Book objects. You can save resources by using lazy loading and thus only initializing the objects in the book collection when needed yet still fetch all of them from the database. -
What does it take to be called a MVC Framework
Daniel0 replied to Liquid Fire's topic in Application Design
If he has five items he has to load? -
I believe it's getting washed and I'm quite sure it's alive. It was just a picture I found on the intertubes.
-
Or: http://speaklolspeak.com/page/LOLcat+Odyssey
-
Uglier...
-
http://www.youtube.com/watch?v=FdpqH1_EC7A Should've done it that way
-
why doesn't this work (if else statement in a query
Daniel0 replied to jeff5656's topic in PHP Coding Help
Executing $fu==$fu+1; will simply just evaluate to false. It does, however, not do anything because the return value is not stored nor used anywhere. Syntax-wise it's perfectly legit. -
Users cost YouTube $1Million per day in bandwidth
Daniel0 replied to dreamwest's topic in Miscellaneous
Right, that's what I'm telling you. It's the only reason why they allow you so much space and bandwidth, because you don't use it. Considering they have 179724 accounts hosted that means a total additional of 1.7 PB per month... -
Users cost YouTube $1Million per day in bandwidth
Daniel0 replied to dreamwest's topic in Miscellaneous
Lamez, I challenge you to use it all. Just write a script that will repeatedly download large files thus use both a lot of space and bandwidth. Damn overselling companies. Only reason why they can sell it is because they know that people don't use it. Like with airplanes, sometimes they expect that not everybody will show up so they oversell. When everybody then actually shows up they're screwed. It's when you actually need to use a lot of bandwidth like YouTube does that it gets really expensive. I mean it's pretty easy to sell you a bazillion-million-gillion gigabytes because I know you won't even use all that within the fair use/tos conditions. Check this out in your TOS for instance: If they suddenly cannot live up to what they've promised then they can just drop the rates on all accounts. There is nothing you can do about that because you agreed to the TOS when you signed up.