Jump to content

requinix

Administrators
  • Posts

    15,266
  • Joined

  • Last visited

  • Days Won

    431

Everything posted by requinix

  1. You don't, and whoever created that WSDL was dumb to not consider potential situations like this. You can, however, use the magic __call method to intercept calls to methods that don't exist, and create a properly-named method to do the work. class MySoapServerClass { public function __call(string $method, array $args) { return match ($method) { "ProvideDocument-b" => $this->ProvideDocumentB(...$args), }; } private function ProvideDocumentB(...) { ... } }
  2. There is no alternative to AJAX. You don't have to use jQuery for it in this age of fetch(), but IMO it's great for the kinds of DOM manipulation you'll be doing anyway. First step: using your browser's developer tools, can you confirm that the AJAX request is sending the necessary data, to the right place, and receiving the necessary data in return?
  3. post_max_size is not part of the file upload system, so if the request is too large then $_FILES will not tell you - because the upload wasn't tried. You should be able to detect if the request was too large by looking at the Content-Length request header. If there is one, since it's possible the request won't use that. Without, you may be able to filesize the request body, which is accessible at php://input. Maybe. Otherwise the solution is simple: make sure post_max_size is always greater than upload_max_filesize. That way you'll always get an error if it's too large.
  4. Got multiple problems here, not the least of which is: I don't see where you actually output your $navigation.
  5. Obvious question: why isn't the first query returning what you want, instead of you faking the data yourself? Second question: How did you, as a human being, decide what to do with $array2 to get that merged version? Because I can't see how [ID=1,NumberOfTickets=21] [ID=2,NumberOfTickets=12] translates into [name=NumOfTickets,table=DatabaseModelTable].
  6. So with this, <a href="<?php print wp_kses_post($item['linkedin']); ?>"><i class="fab fa-linkedin-in"></i></a> the link is wp_kses_post(...) and you don't want to show the <a> if the link is empty. Get the value of the link into a variable, use it with the if statement, then only show the <a> if not empty. <?php $linkedinlink = wp_kses_post($item['linkedin']); if ($linkedinlink) { printf('<a href="%s"><i class="fab fa-linkedin-in"></i></a>', htmlspecialchars($linkedinlink)); } ?> Remember to use htmlspecialchars when you do not know if a value is 100% safe for HTML.
  7. Try adding back the @s that you had before.
  8. Don't know what an "elementor" is... You have decided that you need an if/else to solve a problem. What is the problem itself? What field, and why do you need to know if it's empty?
  9. java.com is Oracle. The open-source community made their own - at least two, even, but OpenJDK is the frontrunner.
  10. Homebrew invented their own terminology for things that everyone else had communally decided on. So that doesn't help. Plus, Java isn't just "Java" since Oracle took over, so there is no simple "java" to install anymore either. Assuming you want the JDK (for development) and not just the JRE (which isn't a thing either, technically, but it's the minimum needed to run Java programs), the "formula" you want is openjdk. https://formulae.brew.sh/formula/openjdk Java 8, aka 1.8, is the oldest anyone cares about, by the way.
  11. Short answer is there's probably no reasonable way. Upload the text file to a temporary location and then move it where you want. That way there's no partial file.
  12. They're the same thing. "master" and "HEAD" are both git terms, and the full explanation is too long, so suffice it to say that they'll both refer you to the most recent version of install.sh.
  13. No, no, I mean what's the problem with allowing text like ŝ̬ô̬m̬̂ê̬t̬̂ê̬x̬̂t̬̂? The forum's own software is doing it right now.
  14. Why is it a problem? If that's what the user entered then you should be showing it back to them...
  15. Forms only submit the data in their fields. Your form has no data in it at all. If you don't need anything else but the SID then forget the form entirely and go with AJAX instead.
  16. Any particular reason you aren't doing a normal form? Like <form method="post"> <label>SID: <input type="text" name="sid"></label> <button type="submit">Submit</button> </form> Because what you're doing is... I don't know? You've got bits and pieces of multiple paradigms going on in here, and none of them are going to work like that.
  17. More like PhpSpreadsheet doesn't support something that's... well, it's weird, to put form elements into a spreadsheet. That's not what spreadsheets are for. If you want better automation, have you considered VBA? Subscribing is half of it. Are your notification settings set up to send you emails? Check your spam folder, just in case?
  18. It sure looks like that function used to exist, but I can't find it anywhere in WP's history... It's probably a dumb function anyway: try replacing the line with $result = $theme_default_options[$name];
  19. It'll be fine if you do this in a way that isn't perfect. Namely, by not using jQuery and instead using inline Javascript events. First, take your link, make it open the content page in the frame if it doesn't already, and then add an onclick that calls a Javascript function. It should look something like this: <a target="content" href="doc1.htm" onclick="andAlsoDoc2();"> Inside the menu page (not doc1 or doc2) add the Javascript for that function. Its code goes like <script> function andAlsoDoc2() { window.parent.frames["menu2"].location.assign("doc2.htm"); } </script> That looks in the parent window (which is the one with the frames), finds the frame named "menu2", and makes it navigate to doc2.htm. Notice that the function does not "return false": doing so would prevent the original action (ie. browsing to doc1) from happening, and you do want it to happen.
  20. Normally you solve this problem by not using frames. Is that an option? How much work are you willing to put into this? The alternative is Javascript: make your link open one of the pages (I suggest the content page) normally, then use Javascript to "open" the discography page in the other frame as well.
  21. They all have some sort of HTML you can copy into a page that will display what you want.
  22. Frames? There's a few approaches here. What's the nature of doc1 and doc2, and why do you need to load both of them at once?
  23. I'm not sure why you're getting HTML warnings when trying to load an Excel file. And it's just a warning. Is there a problem?
  24. I mention Homebrew because it's the easiest way (so I hear) to install packages on a Mac. You know, so you don't have to deal with any of this stuff.
×
×
  • 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.