Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. If you're talking to me, the link is in my profile.
  2. You're probably unlikely to write a program for voice recognition unless you have a solid background in mathematics and computer science.
  3. Whatever you say buddy. The posts are displayed in chronological order though, and the time stamps on the posts denote when they were submitted, not when they were approved.
  4. Heh... sorry to let you down, but "Guru" is manually assigned to people who've shown themselves worthy. You can find more info here: http://www.phpfreaks.com/forums/index.php/topic,232740.0.html
  5. The most effective solutions seems to be using sophisticated AI and machine learning algorithms to analyze and detect the content of spam messages like I would assume is how Gmail's spam filter works. That's way over the head of most web developers though. There are some services such as Akismet that offer an API for content based spam detection.
  6. Evaluating CSS and Javascript wouldn't be necessary for specialized attacks. The developer of the bot could simply check the Javascript algorithms and the CSS rules to determine what to do with the served HTML, and write his bot accordingly. Relying on Javascript could in some countries be regarded as violation of disability discrimination laws. As an example, if you are blind you would have to rely on screen readers, and these cannot use Javascript. Then there are of course all the normal users like me browsing with Javascript off who you would piss off.
  7. Best thing would be to serialize the array.
  8. I could easily create a script that would circumvent all of those things... Except maybe the "ask a question". It would sort of depend on what the question is.
  9. Well, you need to give a better sample then. These dashes do not belong there, and what you are posting is not well-formed XML, so it could never be parsed by SimpleXML in the first place. When you are viewing an XML file in e.g. Firefox then you need to view the source. It provides things such as code folding for your convenience. We can't use that for processing data though. We need the raw XML.
  10. Locking you to one connection per process is a bad idea in general because you cannot know if you at a later point will need to open another connection. If that turns out to be the case then that will be impossible without extensive modification of the existing code. If you've locked yourself in then your code is not portable.
  11. Could you please post the raw XML? The XML you have there isn't well-formed.
  12. You need to make sure the correct character set is used throughout the entire process. This means in the database, in PHP and in the HTML.
  13. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Make Table</title> </head> <body> <table> <tr> <?php for($l = 1; $l <=7; $l++): ?> <td align="center"> <?php if($l > 5) {echo "yes";} else {echo "no";} ?> </td> <?php endfor; ?> </tr> </table> </body> </html> Will output: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Make Table</title> </head> <body> <table> <tr> <td align="center"> no </td> <td align="center"> no </td> <td align="center"> no </td> <td align="center"> no </td> <td align="center"> no </td> <td align="center"> yes </td> <td align="center"> yes </td> </tr> </table> </body> </html>
  14. "Compatible With: 1.1.4" vs. "Powered by SMF 2.0 RC1"
  15. There probably is no referrer then.
  16. if($l >= 5;) should be if($l >= 5) It'll give you 4*no and 3*yes though. If you want 5 and 2 then you can change it to if($l > 5)
  17. Dude, you need to format your code. It's really difficult reading your code. while (list($key, $value) = each($_POST)) { if(!empty($value)) { $set = 1; } $message = $message . "$key: $value\n\n"; } if ($set !== 1) { header("location: $_SERVER[HTTP_REFERER]"); exit; } What do you mean with "the correct code" though?
  18. Add unset($rows[0]); before the foreach. Also, please read the part of the manual that covers syntax. $vars[Venue] etc. is not the correct way to access array indices.
  19. No, you cannot. You'll have to pass the name you want to the object manually.
  20. http://php.net/manual/en/simplexml.examples-basic.php
  21. Well, first of all, HTML IDs are not allowed to start with numbers. Secondly, they aren't "clicking" the button. They're just looking for the action attribute in your <form> tag.
  22. http://www.google.com/search?q=define%3Ajoke
  23. That won't be "before they use his site" though...
  24. http://wiki.php.net/rfc/session_upload_progress
×
×
  • 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.