Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Daniel0

    XAMPP

    I don't know. You'll have to consult XAMPP's manual.
  2. You need to find the correct user. Seeing as login forms usually use the username as mean of identification you would do WHERE memberName = ?
  3. What an ignorant statement. If you're a good developer then you will not write everything from scratch each time but rather reuse things. This is what a framework essentially helps you with. You're probably going to end up having about the same application layout in almost all of your projects anyways. Nevertheless, I don't like CodeIgniter either.
  4. http://images.apegaming.net/image_warehouse/Jm8bMjHq.png
  5. Try to add this to the end of the backup script: find /path/to/files/*.sql -mtime +30 -exec rm -rf {} \;
  6. I wrote something myself when writing the login system for the main site here which uses our SMF database. You can do something like this: SELECT passwd, is_activated FROM smf_members WHERE memberName = *username_here*; Then you can check if the password matches and if the user is activated (after checking that the user exists of course): if ($user['is_activated'] != 1) { // user is not activated } else if (sha1(strtolower($username) . $password) != $user['passwd']) { // password doesn't match } else { // everything is fine }
  7. C or C++? VB Found this on Google.
  8. Actually, PHP is written in C, not C++. Also, you cannot write extensions in other languages than C because you'll need some header files and the compile extension binaries will not work with VB (why would anyone use that horrible language anyways?).
  9. Daniel0

    XAMPP

    They shouldn't be "corrupt", but if it somehow doesn't work then try to to use clean or purge instead of install in the above command. Then try to install again. Also, make sure you got rid of that XAMPP thing before trying to install it using aptitude.
  10. Daniel0

    XAMPP

    The username for root is... root. However, on Ubuntu root's password is locked so you have to use the command sudo. If you run sudo -i then it'll ask you for your current user's password. You can also just prepend sudo to the command above. There is not really any administrator account so to speak; there is root and then there are the regular users.
  11. Daniel0

    XAMPP

    Don't use XAMPP. You should rather use the built-in package system in Ubuntu to install that software. Run this from the terminal (as root): aptitude install apache2 libapache2-mod-php5 mysql-server mysql-client Your document root will then be /var/www
  12. Tell her to ask Google or her lawyer(s) if she cannot understand the legal terms...
  13. [quote author=Derleek link=topic=106377.msg986965#msg986965 date=1221006467] **off topic** jeebus this thread is long, just curious, have there been any longer in phpfreaks forums? lol 190+ responses... wow lol [/quote] Yes, the longest one is 563 (that's 38 pages) and it's a discussion about a single thing. It's not available for you to read, however. Besides the one I mentioned, there are two other which you can see here: http://www.phpfreaks.com/forums/index.php?action=stats
  14. haku, he did not edit his original post. It's not possible to do that without adding the "Edited by" line.
  15. http://maps.google.com/help/terms_maps.html http://code.google.com/apis/maps/terms.html
  16. There is one available however when you copy the code, you also copy the line numbers! The mod is available here. It Works fine with 1.1.6 just tested it. Hmm... I don't like the way that mod handles the line numbers.
  17. If there is a readily available mod that's compatible then I won't mind installing it. I'm not going to dive into the code and do it myself though.
  18. "The Pragmatic Programmer - From Journeyman to Master", Hunt, Thomas "Design Patterns", Gamma, et al. (Gang of Four) "PHP Objects, Patterns and Practice" "Patterns of Enterprise Application Architecture", Fowler Not all of those books are specifically about PHP though.
  19. Which language is better? Spanish or French?
  20. Corrected.
  21. Except ActiveX. It sucks always.
  22. The issue in question was whether Python was faster than PHP. I suppose this is for real-world usage instead of tiny benchmarks only covering a confined amount of structures and features of each language in a sample script that wouldn't be used otherwise. The only thing tested in the above benchmark was loops, integer addition and the MD5 algorithm.
  23. No, but on a large scale project with many files, having an opcode cache can improve the performance considerably. Besides, if we say that we run a small script like the above ones a thousand times then you should see a noticeable difference by saving 999 interpretations. A site like The Pirate Bay gets many thousands of hits each minute so caching is crucial for system performance regardless of the script's complexity.
  24. Blame the tool if you can't use it properly. Right... Seriously, nails and hammers are completely useless; I always hit my thumb instead of the nail (or you could say I hit the wrong nail).
  25. I'll second (fourth?) that Gecko 1.9 works fine for me.
×
×
  • 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.