Jump to content

requinix

Administrators
  • Content Count

    11,141
  • Joined

  • Last visited

  • Days Won

    211

Everything posted by requinix

  1. Maybe it's just me but why not SELECT entry_id, user_id, votes FROM contest_entries WHERE contest_id = :contest_id AND category_id = :category_id AND e_status = :e_status ORDER BY votes DESC LIMIT 1
  2. Find the configuration and change it to allow your extensions. If you don't want to bother because you don't happen to remember exactly what it is you need to change or where then give up and do something else with your time.
  3. mod_php and php-fpm work differently. For the former it's in the server configuration, for the latter it's in the site configuration.
  4. Apache doesn't magically know that .php files go through PHP. That has to be configured. And the very same configuration that says the .php extension goes through PHP can be modified to say that other extensions do too.
  5. What is the code to come up with the original data? Might it be easier to adjust that to not return/include the zero values?
  6. WSDLs are also helpful on the server side for much the same reasons, so it'd be surprising if they didn't have one. It's also fairly standard for SOAP to publish them because they're so helpful. Does http://legit.com/endpoint/givenlocation.asmx?wsdl happen to work?
  7. requinix

    background-image failure

    You're using a relative URL. Don't do that. They're relative. Use an absolute URL.
  8. I know only slightly more about SOAP than a squirrel, but I believe normally these things work by you providing a WSDL for SoapClient to read from.
  9. Your request is missing the namespace. It's not literally the name "username" that the SOAP endpoint wants to see but an element with the local name "username" in the "http://givenNamespace.com" namespace. These would all work: <functionCall xmlns="http://givenNamespace.com"> <username>...</username> </functionCall> <foo:functionCall xmlns:foo="http://givenNamespace.com"> <foo:username>...</foo:username> </foo:functionCall> Or similar versions - as long as an xmlns with the right URI is in the hierarchy.
  10. What happens if you go to http://legit.com/endpoint/givenlocation.asmx manually? Errors? Redirect?
  11. Sounds like a problem with VueCSV. Considered looking for another package that does CSV?
  12. What happens if you do that install command it suggests?
  13. So if you do it one way, one thing is undefined, and if you do it the other way, the other thing is undefined? If you're using app.js to bundle everything then try using it to bundle everything.
  14. ...the one you're including after VueCSV?
  15. If that the app.js you're including after everything else?
  16. Where is Vue being loaded from?
  17. requinix

    How to achieve AddToCart Without quantity?

    How can you have something in a (shopping?) cart without a quantity? Could you just assume a default of 1?
  18. In the Fiddle, VueCSV is defined automatically because the source script is included through a <script>. You don't have that. But you do have something else...
  19. requinix

    Why use json_encode() on a string

    Maybe. And if you don't know all the cases where it might error, all the more reason to check for an error after. Because the string might not be valid for JSON.
  20. requinix

    Issue with PHP

    Sounds like something the query could fix.
  21. requinix

    Issue with PHP

    Set aside that foreach... thing for the moment and just do a json_encode of $data.
  22. requinix

    Secured folder

    Well, your script explicitly disables caching so the solution would be to, you know, not. I imagine that once a file is uploaded it won't change. Maybe deleted or hidden, but not changed. Right? Set your Expires header to a date in the future, and fix Cache-Control to allow caching. And remove Pragma, it doesn't matter anymore.
  23. requinix

    Strange outcomes with $stmt->fetchColumn()

    fetchColumn() returns an array or false. It does not return a number.
  24. Are there other applications writing to the database besides your own? Do you have any control over them?
  25. requinix

    request()->path() incorrect during testing

    Yeah, I got a little confused about when you wanted the scope. It's about the admin routes, not about whether it's doing testing. Having stepped away from the computer for a couple hours, public static function boot(){ parent::boot(); if(!request()->is('admin/*')){ static::addGlobalScope(new IsActiveScope()); } } The model will only be booted once, and it'll probably happen early. Like for the very first request. Which doesn't help with testing - unless you're requesting against the web server, but it doesn't sound like it. The admin/* check would have to be inside IsActiveScope when it's being applied. So basically what I said before, except instead of the middleware and flag (which I still recommend) you're testing the request() path.
×

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.