Jump to content

requinix

Administrators
  • Content Count

    11,068
  • Joined

  • Last visited

  • Days Won

    209

Everything posted by requinix

  1. I use TrueCrypt (before it went bad) to keep a hidden volume on a USB stick, and that's where I keep my assorted SSH keys and other stuff. And I bring that USB stick with me everywhere because it also has non-private stuff like a variety of (portable) programs.
  2. requinix

    Need help with this script

    That doesn't quite seem right. Why are you storing this... whatever it is, in the session? Surely the decision to update the password does not depend on the session but on what the user is trying to tell your system to do - ie, what's in $_POST?
  3. requinix

    MLM Special genealogy tree view

    Nope. Take your MLM stuff somewhere else.
  4. Isn't "looking for other PHP developers to work for" another way of saying you're looking for a job? Some of the job hunting places also offer the reverse - like you put up a resume and employers look for you.
  5. Parse each line with a regular expression. According to that log, it looks like ([\d.]+) (\S+) (\S+) \[([^\]]+)\] "([^"]+)" (\d+) (\d+) "([^"]+)" "([^"]+)" Remote IP address Likely a hyphen HTTP Basic username if given Date/time Request URI HTTP response code Response length HTTP Referer if present HTTP User-Agent if present
  6. requinix

    Need a dynamic Subform

    There are two basic ways you approach this: either you have the subform as a "template" in your Javascript and you keep adding copies of it as needed, or you use AJAX to load a new subform from the server. Which makes more sense to you?
  7. It would probably take less than five hours to try it and find out.
  8. requinix

    variables in CSS...

    Use inline CSS, be that written into the HTML or applied through Javascript. It's okay.
  9. requinix

    which wingpg you would suggest?

    Again, if you can tell me how GPG the concept works then I can tell you who will (hopefully) know whether you can transfer keys between applications.
  10. requinix

    which wingpg you would suggest?

    If you can explain to me the concept of GPG then I'll tell you who to ask for an answer.
  11. requinix

    Help with video watermark clarity

    Have you learned how the filters work yet? They can be very complicated. You will need them to be a little complicated in order to do this with one command. If you don't then you'll need more code and commands, like to resize images or identify video dimensions.
  12. requinix

    which wingpg you would suggest?

    There is only one "WinGPG".
  13. If you don't want to use PHP 7.0 then you should probably totally uninstall it.
  14. requinix

    Best Practice for searching on a website

    AJAX is a way for the browser to get something from the server without having to refresh the page. An API is merely what tells two things how to talk to each other. Since they won't want to put every location onto the page (probably), yes: they will use AJAX to ask the server for a list of locations matching what the user types. Something like that.
  15. requinix

    target a particular box of an input array

    Are you not using PHP? If you needed to add or remove fields after the page loaded, that's one thing, but if you know ahead of time then you should do all the work in PHP and deliver the completed result to the browser without it having to perform additional work.
  16. requinix

    Best Practice for searching on a website

    They have a big database of locations. Probably purchased from and/or subscribed to a service that tracks stuff like that so they don't have to try to stay up to date themselves. They know the latitude and longitude of an address, also probably from a third-party service (eg, Google Maps). A postcode has a location too, though it's obviously not quite as precise. Then they can do some pretty simple math to estimate the distance between the two points.
  17. requinix

    target a particular box of an input array

    map, each, same difference. First: why are you creating everything through Javascript?
  18. requinix

    target a particular box of an input array

    Before that, you know you're wrapping each input in its own form, right? Separately? You're creating the inputs and forms dynamically. Add an event listener to the form you make so that when it's (attempted to be) submitted that it checks the input against the item in the array. The only awkwardness is the array variable being reused so you can't use it in a closure, so instead of that try Array.map() like a.map(function(value, key) { // ... });
  19. The list is wrong? You could also try deleting it manually and re-adding it.
  20. If you already have one with the same name then you probably don't want to make another one, right?
  21. So did you answer your own question or what?
  22. requinix

    Click a form image, run a query

    Eh, alright. You know how normal inputs with names, those names are what show up in $_POST? That's not the case for image inputs because what the browser sends is not the input name but instead where inside the image that you clicked, as name.x and name.y. PHP translates those names into name_x and name_y. So you need to be looking for like retired_x. But, better would be to not use an image input. It's just weird. Use a submit <button> and put an <img> inside it. If you weren't aware, <button> is like an <input> button except it's much better because it allows you to do things like have stuff on the button (such as an image) instead of just text.
  23. requinix

    Click a form image, run a query

    Wherever you put this new PHP code that didn't work, you can't put it there because it doesn't support PHP code. It needs to go in books.php. Yes I know the stuff to detect that the image was clicked isn't working, and in order to figure out why I'm saying you need to have that new bit of code run. So put it inside UpdateAllShowBooks, but not inside any of those if blocks. Then you try clicking the image like normal, except this time you should get some output that shows you the POST array. It still won't work. Don't care, just want the output for now. If UpdateAllShowBooks isn't running at all then you have some other problem, but I don't think that's the case.
  24. requinix

    Click a form image, run a query

    Did you put it in books.php? That's where it needs to be, since that's where the form is going.
  25. requinix

    Click a form image, run a query

    Use a function like print_r or var_dump on $_POST, then do a View Source of the page so you can see the raw output (which won't be nicely formatted HTML... probably).
×

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.