Jump to content

requinix

Administrators
  • Posts

    15,229
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. Unfortunately that's quite wrong. The "options" needs to be an array where the keys are what you want the value of each to be, and the value is what shows up as the label for it. What you're doing is 1. Taking the array of categories 2. Making another array where each value is a string of PHP code 3. implode()ing the array so that it's only one string with comma separators 4. Sticking that into an array The $cityArray needs to be formed correctly. $category->slug should be the key and the translated $category->name should be the array value. $cityArray[$category->slug] = __($category->name, 'woocommerce');Then don't do anything else to it. Just use it as the "options". No array(), no implode().
  2. It's a good way of getting the default virtualhost, which could have assorted tools (like phpMyAdmin) installed.
  3. That's a normal temperature. If you must do something, check the thermal paste and fan. If you still have a stock parts, consider buying an aftermarket cooler.
  4. Oh. Then they're probing for vulnerabilities. Outdated WordPress installations, an accessible phpMyAdmin, etc. Every server on the internet gets probed like that.
  5. Yes, that will be effective. Is the host a full URL like "http://forums.phpfreaks.com/topic/297006-block-http-host-spoofing/"? They're checking if your server can act as an anonymous proxy.
  6. Sent you a PM.
  7. Not allowed, huh? How about now?
  8. Can you PM me some information about your other account? Like the display name and email address? And I assume you've already checked the spam folder?
  9. When calculating the 25, remember to round up: ceil($number_of_respondents / $number_of_scenarios).
  10. Output buffering is another option. ob_start(); ?> stuff <?php $MesBody = ob_get_clean();
  11. Another thing to check is what exactly the API is returning, and whether the line break is a plain \n (that's being preserved as a newline) or a .
  12. What's the code for that? Is there a line break in the code's file at that point?
  13. You can't just stick a ".json" at the end and assume it will work. API documentation
  14. You can combine 1-3 by constructing the whole HTML, rather than starting with the and modifying it with jQuery. " " + navArray[keyValue] + " "The URL isn't going to be HTML-unsafe so you don't need to escape it using something like .text(). Step 4 can be done with just one listener on the parent element. $("#navMain ul").on("click", "li", function() { window.location = $(this).children("div#value").text(); });Otherwise you're creating event listeners for every element and you don't need to do that. Plus this can be executed before adding the LIs so you don't have to worry about that. And by the way, the ID on the DIV is wrong: IDs need to be unique across the entire document, but fortunately you don't need an ID in the first place because there's just the one div so .children("div") would be just fine. But more important than all this: (1) why aren't you using just plain links and (2) why are you doing this in Javascript when it's just a static set of links?
  15. Sounds like a problem with margins. Any configurable options with the PDF converter?
  16. Well, you are putting the text in a table. How about not doing that?
  17. Apparently you figured it out already, but those $types need to all use "image/".
  18. I could, but it seems you've disabled right-click to prevent your code from being "stolen".
  19. Still working. https://jsfiddle.net/s9c34k71/ Check if your browser is reporting errors. See what CSS is being applied to the rows. Poke around and see what you can find. Unless this is somewhere we can inspect?
  20. Ah, I'm wrong. LIMIT...OFFSET is perfectly legal. Someone should have RTFMed. That thing you linked mentioned strings being bad. Try $offset = (int)$_REQUEST['page'];
  21. Use date_default_timezone_set to make PHP use whatever timezone you want.
  22. Invalid SQL. SELECT Syntax
  23. CloudFlare is using a mechanism that is specifically designed to prevent people from doing the kinds of things you're trying to do. You're out of luck.
  24. https://jsfiddle.net/a9enhzp9/ Works for me. Have you checked the silly things, like not using the table-striped class, or other CSS overriding the striping?
  25. What's your HTML markup? Are you using a ?
×
×
  • 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.