Jump to content

justsomeguy

Moderator
  • Posts

    31,575
  • Joined

  • Last visited

  • Days Won

    77

Everything posted by justsomeguy

  1. Well, you can, if you have the funding. I think ICANN charges $25,000 per year for the right to control a TLD, but that's only the yearly fee. You're also going to need to spend a couple million dollars on all of the equipment, infrastructure, and personnel to handle what ICANN expects from you (you'll outline all of that in your application to ICANN). You may need to wait for a window when they're accepting new applications, though. http://newgtlds.icann.org/en/applicants/agb
  2. Ajax is using Javascript to send a request to the server. So you send whatever data you need to send to the server, the server gets the data and does whatever you want to do there, and you send any data you might want back to Javascript.
  3. justsomeguy

    Hex to ASCII

    If you're looking for something you can copy and paste, yeah, you might not find that. If you search for how to convert hex to base-10 in general then you'll find plenty of examples that hopefully you can figure out how to write in whatever language you're using. Converting between number bases is very common and part of a first-year computer science education, you'll find plenty of examples.
  4. One of them runs in the browser and one of them runs on the server, so no. What you can do is create an ajax request in Javascript and send it to the server with whatever data you want to send to tell the server what to do, and the server sends the response back.
  5. You need to explicitly list each comparison. UPDATE crypto SET crypto_openssl_recommendation = 1 WHERE "%ECB%" LIKE UPPER(crypto_descr) OR "%RC2%" LIKE UPPER(crypto_descr) OR "%RC4%" LIKE UPPER(crypto_descr)... If your character set is case-insensitive then you don't need to cast to uppercase.
  6. You need more unions to select each level of children if you want to do it all in SQL. Obviously, you're limited to a maximum depth with that. There are other ways to design tables and store paths where you could easily select all descendants or ancestors of a particular node. https://www.slideshare.net/billkarwin/models-for-hierarchical-data You're using the first example he gives.
  7. Yes, each page should have a doctype to tell the browser how to handle it. I can't speak to how different platforms let you customize or integrate code, but in general anything that it sends to the browser should be valid HTML and CSS. Browsers don't care which platform you're using, they just get the code that the server sends and display it.
  8. It looks like this is the list of string functions you have available: https://devzone.advantagedatabase.com/dz/webhelp/Advantage7.1/supported_statements/string_functions.htm If it's not in that list, then you can't do it in SQL. If you are required to use that particular database for some reason then you need to do it in another language.
  9. justsomeguy

    XML Data

    You're wrong, they're using self-closing tags for cinema and session and all of the data is in an attribute.
  10. It looks like that's correct, the documentation isn't very clear on that: Parameters ¶ stmt Procedural style only: A statement identifier returned by mysqli_stmt_init().
  11. It's pointing out that "else" does not go after "case".
  12. justsomeguy

    XML Data

    Why do you think it's not well-formed? The only issue that an XML validator has is with the initial XML tag with the version.
  13. If you're not seeing error messages with that then there's a problem, because that query has errors. I would suggest picking either object-oriented or procedural and stick with it, don't mix them. mysqli_stmt_error expects a statement identifier returned from mysqli_stmt_init, not a mysqli_stmt object. There is a different way to get error information from a mysqli_stmt object, so start with the documentation and go from there.
  14. justsomeguy

    Hex to ASCII

    It's pretty straight-forward, there should be plenty examples online.
  15. justsomeguy

    pcre query

    If you're getting a 500 response, you need to find the error message from PHP. If it's not displaying error messages in the browser then it's probably using a log, check the settings in php.ini.
  16. You need to check for errors in PHP to see what the issue is. Maybe your database user doesn't have access to information_schema.
  17. justsomeguy

    pcre query

    I'm not sure if PHP will put a key in $_GET for that kind of thing, you may need to get the entire URL in the $_SERVER array and parse it yourself. If you're using reserved characters in the URL like that, you may see inconsistent behavior from browsers. The list of reserved characters in a URL includes # and @.
  18. You can do it both ways. You can have Javascript check that and show an error message before the form even submits, and you should also check it with PHP. With PHP, it's up to you as the programmer to fill the values back into the form if you display it again. On the Javascript side, if you have that as a submit event handler then you need to cancel the default submit behavior if you don't want the form to submit and the page to refresh.
  19. justsomeguy

    Hex to ASCII

    I'm assuming you're talking about VBScript and not Javascript. If you're talking about getting an ASCII character from an 8-bit number, you use Chr for that. I don't see a function to convert a hex number to int (I don't think VBScript recognizes hex numbers at all), so you would probably have to just write a function to take a string of hex digits and convert to integer.
  20. How do you think that's going to work, what exactly are you disguising the key from, and why? Rotating images would really only be useful or consumed by people, so if you're trying to disguise the key from people then I guess the first question is why that's necessary. A dedicated programmer can find out any data being used by Javascript, they can just put a breakpoint in your decryption code to see the original data, any keys that are being used, the decrypted data, etc. That being said, it sounds like you're talking about steganography in general, a lot of work has been done on that topic.
  21. Sounds like you've got an error stopping the other code from running. Make sure to check the console in your browser's developer tools. It might be the variable AmendForm, it doesn't look like it's defined. Pass this instead to pass the element where you have the attribute.
  22. I'll move this to Javascript since it doesn't have anything to do with PHP.
  23. Depends on what the browser vendors decide to do. I don't believe that method is part of the standard, so when you're talking about non-standard things you'll find that they work differently in different browsers. That will work in older browsers, sure. It might not work on mobile devices though, for example. https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault Note that those examples also attach the listener using addEventListener rather than using event attributes.
  24. The modern way to do that is to get the event object inside the event handler, and cancel the default action.
×
×
  • Create New...