Search results

  1. W

    Good Joke

    lol I really didn't see that ending coming. Here's another: Morris, an 82 year-old man, went to the doctor to get a physical. A few days later, the doctor saw Morris walking down the street with a gorgeous young woman on his arm. A couple of days later, the doctor spoke to Morris and said...
  2. W

    What is your Zombie Plan?

    I'd hide out at a law firm. Why? Vampires are more powerful than zombies :P
  3. W

    Unix Shell Password Check

    The passwords cannot be decrypted, but they can be compared to another encrypted password for verification. How else would you be able to login?
  4. W

    MySQL Error Message.

    You can type cast in PHP, so (int)$var and intval($var) are the same. I think using a type cast is slightly faster, though, since there's no overhead from a function call. Anyway, I'm fairly certain the problem is this part: $query = "insert into `thelist`...
  5. W

    Unix Shell Password Check

    I think I see what you mean now. I was a little confused. You want to use the unix login info for this then? In this case, like xPlozion said, you'll have to use the password file which is probably in /etc/passwd. If they're in /etc/shadow, then this makes it harder because the user needs the...
  6. W

    Good Joke

    Not to let a good idea go to waste, I'll continue it. This is one of my favorites: A young man wanted to purchase a gift for his new sweetheart for Christmas, but they had not been dating very long. After careful consideration, he decided a pair of gloves would strike the right note: romantic...
  7. W

    PHP Muilti-Language script

    You're setting $lang to $_GET['lang'], and then when the language file is included you're using the same variable name for the string array. The string keys equate to a numeric 0, and the first letter of each string is being placed as the first letter of $lang. That is, those "random" characters...
  8. W

    Unix Shell Password Check

    Assuming there's more than one user, you'll need to use some form of a database. A flat-file db would work fine, but a db like mysql could work as well. With a flat-file db, you'll need to look for a username/password match in the file. With mysql, you'll need to execute a query such as: mysql...
  9. W

    Problem viewing page in IE6

    Using the html/css files as they were before you updated them, I managed to fix the problem in IE by removing these parts: margin:0 25%; - in #main_content margin: 0 -50%; - in #head margin-left: -50%; margin-right: -50%; - in #main_menu margin-left: -230px; margin-right: -230px; - in...
  10. W

    zend optimizer

    Zend Optimizer is free, so I don't know why they don't add support for it. But regardless, there are tools/services to decode something encoded with Zend Guard. I've heard Dezend is one of the best among them, but I've never tried it. Most likely, you'll either get a completely working script...
  11. W

    Stop Form Values Being Equal

    Just an FYI, if you're expecting string values then you should use === for comparison. However in this case, array_unique() would be faster than making a function: if (count(array_unique($_POST['values'])) == count($_POST['values'])) { //no matches } else { //matches } But if you're...
  12. W

    500 error when running perl

    Perl scripts need execution permissions, so chmod it to 755. If there's still a problem, then you probably have an error in your code as well. However that link you posted no longer shows your code, so I couldn't check that out.
  13. W

    Multiple date & time support

    Well, I think that mysql converts times stored in a Timestamp field to UTC, and then to the relative time when selected. So I think if you used a "SET time_zone = timezone" query upon a user request, you wouldn't have to worry about it in php. However, the Timestamp field only has a range of...
  14. W

    Call to undefined function domxml_open_file()

    As I said before, you probably don't have DOM XML installed. The information you posted (assuming from phpinfo()) about DOM/XML, libxml, etc being enabled is for the DOM extension: http://www.php.net/manual/en/book.dom.php DOM uses the DOM/XML API, but the DOM/XML API is *not* the DOM XML...
  15. W

    Is there a list of installed Perl modules ?

    There was a link to manage perl modules in cpanel, but they removed it for one reason or another. You can still get to it if you login to your cpanel and go to: http://ixedix.x10hosting.com:2082/frontend/x3/module_installers/main.html?lang=perl Any modules you installed should be listed there...
  16. W

    New to PHP and very confused...

    Just a note, Register Globals isn't as big of a security risk as is commonly said. If you code with security in mind (as you should), you probably wouldn't run into any issues with it. However, since it promotes bad habits and can be misused by beginners, it's generally not a good idea to enable it.
  17. W

    Can I get help with this ..

    The problem is the 'mage towers' part. You can't have spaces in field names. Perhaps you meant mage_towers instead?
  18. W

    Call to undefined function domxml_open_file()

    Let me guess, it says "dom" above this phpinfo() output, right? The problem is the info is misleading. Even though it says "DOM/XML enabled", that information is for DOM, you need to install DOM XML. When you have it installed, you should see the info for "domxml" below the "dom" info.
  19. W

    Custom Markup Language

    Ah, so you just basically need to process a document for tags and replace them with relevant data. You could try to use an XML processor, but because you're integrating xml and html they may not work very well. How much experience do you have with regular expressions? Depending on how complex...
  20. W

    php problem?

    Get some sleep, that topic is 2 years old :P I just saw this in Free Hosting though: http://forums.x10hosting.com/free-hosting/76424-php-gd-library-not-installed-cannot-process-images.html So I guess that is the problem. You'd think they would have dealt with all issues in a testing...
Top