Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by requinix

  1. Well you're going to need to take a crash course in learning your site's PHP and server configuration. Because if you attempt this upgrade and aren't aware of something important the site needs, you'll crash it. You need to know what configuration changes have been made from the base and what extensions are enabled.
  2. If you're the admin then hopefully you remember when you first set up PHP, right?
  3. You should contact your site administrator to do this.
  4. Is that the question? How to make a particular one the default? Add the "selected" attribute to the default <option>. Which you have to determine on your own. <option value='(role_id)' selected>(role_name)</option>
  5. Windows? Go to windows.php.net and read the instructions on the left.
  6. Unfortunately not. We used to have that ability, but the current version of the forum software doesn't offer it anymore. Replying that you have an answer is fine.
  7. The text file is probably not the right way to go with this. I'm looking for actual markup right now. What is it for the images, and for the modal?
  8. They're quite a bit different, but not as drastically different as some past versions were. This is a great time to set up a local environment for yourself to develop and test with. It would make doing this upgrade much easier for you.
  9. Okay. Then see the link in my first reply.
  10. https://3v4l.org/040Pe YOUR CODE WORKS FINE. WHAT IS THE PROBLEM?
  11. You want to do something. Your code already does it. What is the problem?
  12. Okay. Are you saying that code doesn't do it? Because it looks like it would do it. PS: If you want to remove a node, remove the node.
  13. It can't be both... It could be that some data was JSON-encoded, then put into a urlencoded request, like key=value&json=%7B%22a%22%3A%22b%22%7D but that would be silly.
  14. Where you store the data is up to you. But what about the images? Where are those coming from? Are they just written directly into the page? Wherever those images are coming from, that's where the headings, text, and video (URLs?) should be too. For the modal, do you already have the markup for it? What is it?
  15. That's JSON. Do you not know what you're doing?
  16. You don't. The data will be in $_POST. You know, like it normally is.
  17. To explain, the thing about converting to cents is because integers are precise while floating-point numbers (non-integers) are not precise. And when it comes to currency, being precise is very important. What DECIMAL does is give you something that looks like a non-integer, except it's precise. In exchange for the precision, you have to tell the database exactly how precise you want and you won't be able to store anything smaller. But that's perfectly fine for you because you don't care about anything more than two decimal places for cents.
  18. I don't put comments on classes. They tend to be somewhat self-explanatory just by reading the (namespace and) name alone. Unless there's something particular complicated about them... but most of the time any complexity is with what that happens inside a method. But definitely put comments on the methods.
  19. Looking for help with what part, exactly? Are you not sure what the SELECT query should be? Having problems integrating it into the code and displaying the results?
  20. Make sure you have something set up to handle errors on the server side of things. Like your Pusher::onError is empty.
  21. Have you tried running post.php twice? Does the second time work? If you restart the server and then don't do anything else, can you connect with telnet then?
  22. For the most part. The timeout is happening for one of two reasons: it can't connect at all, or it can connect but the server was there but somehow able to complete the handshake. The latter is unlikely. - Can you manually telnet to the port? To test whether you can connect at all. Run post.php and confirm the server received the message, telnet, and run post.php again. - What does the browser show for the WSS connection in its networking request monitoring thing?
  23. Are you running all this on your local server, or is any part of it deployed remotely?
  24. I may be misreading, but isn't post.php is connecting to port 5555? And over TCP without the SSL layer?
  • 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.