Search results

  1. W

    XML parsing error

    If you change it to "fr", then it's no longer an entity. So it just becomes country="fr" instead of "country="France"(the expected result). I'm guessing you're using Firefox, stalkio? Unfortunately, Firefox doesn't currently support parameter entity subset dtd's, and hasn't for a while. It was...
  2. W

    GeIP Script Help

    Upgrading is actually the same advice he got in this topic :P I agree, though, that his php level *might* not be the cause. It looks like the fopen() function failed somewhere, but I don't see that in the errors. If errors are being suppressed on it, then it's possible there was a "function...
  3. W

    Problem with an include script.

    That's probably because your localhost is Windows, which ignores letter case in file names. The file is actually: http://wolfmagic.x10hosting.com/Info.php The uppercase "I" matters on linux machines, which is what the x10 servers are. I recommend renaming the file to info.php, especially if...
  4. W

    What is your favorite line in any movie?

    It's "I'll be back". And yeah, that has to be one of the most memorable movies lines. Off the top of my head, I would say my favorite is "Zed's dead, baby. Zed's dead." said by Butch(Bruce Willis) in Pulp Fiction. Also interesting to look at are the choices for the American Film Industry's top...
  5. W

    [PHP] Showing data with multiple lines from database

    I'm assuming you mean you want the newlines to be noticeable in the output. The newline characters are there(if you view the source you'll see them), but of course newlines have no real meaning in html. To solve this you need to use nl2br() on the string: echo nl2br($row['UserInput']);
  6. W

    CSS randomly not working

    An em is a browser/OS-dependant unit of measurement which is based on the default font size. For example, Firefox has a default font size of 16px(I think), so 1em = 16px, 1.5em = 24px, etc. But regardless, you're right about using px since an em can vary from user to user.
  7. W

    SQL return data type

    Try using: $sql = "DESCRIBE Table_Name_Here Field_Name_Here"; $values = mysql_fetch_assoc(mysql_query($sql)); $values = explode(',', substr(str_replace('\'', '', $values['Type']), 4, -1)); This should set $values to an array containing each of the possible set values.
  8. W

    Best SNES moments!

    Nice, that brought back a lot of memories. I really wanted to see the end of that Killer Instinct match though :P SNES was/is the best console ever.
  9. W

    Simple AJAX help

    There's a difference between a proxy and merely getting content from remote servers. The OP may very well just need to get data from a few sites(similar to that cpanel script you were using before). Yes, it could be possible for a user to use the script to get data from any server if it wasn't...
  10. W

    Simple AJAX help

    As far as I know, you can't make requests to remote servers through AJAX, at least not in any popular browser. It's considered a security weakness to allow that. Apparently they're alright with JS being able to redirect users, load iframes to any url, and not to mention create infinite loops and...
  11. W

    Multiple choice answers sort of....

    One table is possible, but sloppy. Two tables is more flexible, but having to add more columns to add more answers isn't really good practice. Plus you'd have to store the answer text in the value of the (assumed) radio buttons and compare that rather than numeric ids, which is again not good...
  12. W

    [PHP] Forum Spam Check D:

    I'm not too sure about what the problem is. But I did notice a few things. For one, you've got a typo in your <br /> here: print "<strong>Content</strong><br /. Second, why do you call it fetchArray() and store the return value in variables with names like $arrflood or $newarray when the...
  13. W

    redirect with .htacess

    Is there any more to that .htaccess file? Or are there any .htaccess files in a parent directory? Also, if /fr is a real directory, is there a .htaccess in there? I don't see anything wrong with the rewrites you showed, I've even used the same ones myself. The only thing I can think of is that...
  14. W

    Multiple choice answers sort of....

    Personally, I think the best set up would be 3 tables. One to store the tests, another to store the questions, and a third to store the answers(both right and wrong). This would provide the most flexibility and make it easy to edit tests from an admin section. The tests table would have to...
  15. W

    Iframes and delays

    There are a few ways to do this. The easiest would probably be: <iframe src="http://www.google.com" onload="setTimeout('document.getElementById(\'frame2\').src=\'http://en.wikipedia.org\'', 5000);"></iframe> <iframe src="" id="frame2"></iframe> This would load google in the first iframe, and...
  16. W

    php mail

    Your main problem is enctype="text/plain". It would be enctype="application/x-www-form-urlencoded"(unless you're uploading files), but that's the default so you don't need to specify it. You can delete that attribute. Another small problem is that you need to have print or echo before...
  17. W

    What's wrong with this?

    Well, you also said that the index.html source from the function didn't match the source code you saw from your browser. So I'm not sure what's going on there, maybe you have a different return string than I do. But even still, strip_tags() *should* strip any html tags regardless of if they're...
  18. W

    What's wrong with this?

    I don't believe strip_tags() needs a closing tag to strip an html tag. I just tested it even and it works fine.
  19. W

    Cron / Perl problems

    Are you sure you used that code as a mysql query? Maybe you missed a quotation mark or something. That error sounds like it's trying to read it as perl code instead of just a string. I can assure you that the query is valid mysql. Try using the code marshian provided.
  20. W

    What's wrong with this?

    Wow you're a guy. I completely forgot Ashley can be a guy's name too. Sorry about that :P Anyway, nice job. I was completely blind to that. Just use strip_tags() on the return value or in parseIndex2() on the value before it's returned. That should fix it.
Top