Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. You can load the pecl extension.
  2. Daniel0

    Fonts

    You could also just read the entire topic before posting.
  3. It depends on how you do it and where you live. Depending on how severe the depression is, receiving bad advice may be fatal so it's best that the treatment is handled by a medical professional. I would imagine that many places you're not allowed to act as a psychiatrist if you don't have some sort of license. Gathering resources about depression or discussing depression wouldn't be illegal, but I would imagine that you could get in trouble some places if you make a "come to me and get free advice on depression" kind of web site. I guess it would also depend on your Terms of Service on the web site, but you also need to consider that a contract clause is not necessarily enforceable and especially not if it contradicts the law. You should always consult a lawyer if you need legal advice though. First of all, the law is different in all countries so asking on an online forum isn't ideal. People answering here might also be misinformed; they may think that the law is in a particular way because it seems logical to them, or they may talk based on past experience while the law has been changed in the meantime. It would be unfortunate if you get in trouble because of bad advice on the internet. "Some dude on the internet told me that..." isn't going to cut it in a court room.
  4. thanks daniel but u know anywhere free i could download war games? Well, there are some free games, such as America's Army, but most people want to, you know, get paid.
  5. You can try Steam or Direct2Drive.
  6. You could do like: $max = 0; // just because we need something to start with foreach ($array as $elem) { $max = max($max, max($elem)); }
  7. I don't play on a Playstation, but if I play a game on my computer it'll typically be something that has some sort of good story. It can also possibly be "just" a shooter. Some games I've enjoyed was the KOTOR games, the GTA games (though I've only played Vice City, San Andreas and GTA IV), the Splinter Cell games, Batman Arkham Asylum, Assassin's Creed, Mass Effect, Fallout 3, the Half-Life games, Portal, Star Wars Jedi Academy, Star Wars Jedi Outcast. I rarely play online multiplayer games. I don't have the time to become really good at it, so I'll just keep getting owned. I think Team Fortress 2 was good, though it's a long time since I played it. I need to be able to put the game away for some time and pick up from where I stopped. That's easier with a single player game. I'm looking forward to SWTOR even though it's an MMO, however. Mostly because it's a continuance of the KOTOR games. Hopefully they haven't ruined it by making it an MMO.
  8. How you would traverse it depends on what you want to do with it.
  9. You'll have to do if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') because the HTTPS index in $_SERVER is only present if you're actually on HTTPS. Otherwise you'll get that E_NOTICE about undefined indices. Also note that you've negated it, so you'll get the opposite.
  10. If you're running a standard config, HTTPS is on port 443, so you can just check if the port isn't 443. if ($_SERVER['SERVER_PORT'] == 443) { echo 'SSL'; } else { echo 'Not SSL'; } I also believe that $_SERVER['HTTPS']='on' evaluates to true if you're on HTTPS (in Apache at least).
  11. So what is your problem?
  12. Daniel0

    Fonts

    That's not entirely true. CSS3 has something called @font-face. Example: @font-face { font-family: foo; src: url(foo.ttf); } p { font-family: foo; } It's not very widely supported though. It works in FF, however. There is also sIFR and Cufón.
  13. MIME type checks are fine, but you should figure out the MIME type yourself and not rely on the MIME type you're given by the client. http://php.net/fileinfo
  14. It doesn't happen on Apache 2.2.9 on Debian. root@daniel0:/var/www/daniel0.net/htdocs# cat test.php.flv <?php echo 'hello world . ' . $_SERVER['REMOTE_ADDR']; http://daniel0.net/test.php.flv doesn't execute anything.
  15. Quoted for Truth.
  16. Daniel0

    VPS Trial

    I'm sure that if you contact the sales department, you will be able to figure something out most places.
  17. So have you checked that it is? I.e. making sure that phpinfo() has info about xdebug and making sure that NetBeans is listening to the correct port.
  18. My guess is that it isn't installed in a database hence the reason why it would redirect to a script called install.php.
  19. Obviously it's your code that is programmed to redirect.
  20. No, that does not make 'computer' sense. After you have a few thousand lines of data, you should migrate it to a database and let the database engine do the work for you. That might not be applicable. What if he is writing a script to analyze Apache access logs for instance? What if he is writing the script that is migrating to a DBMS? Check this out: [daniel@phpfreaks logs]$ wc -l access.log.2009-09-25 681486 access.log.2009-09-25
  21. Use natsort. By the way, there were ordered correctly before, in a sense. The standard way of sorting string a is using lexicographic ordering and a . (a period) comes before a 0 in ASCII. A period is 46 and a zero is 48 in ASCII.
  22. Yeah, you can use substr.
  23. Well, how much money do you think your time is worth? It also depends on your skills, your experience and where you live.
  24. Neither is better.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.