-
Posts
15,229 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
Upgrading PHP from 7.2.7 to 7.2.24
requinix replied to jbeitler's topic in PHP Installation and Configuration
Windows? Go to windows.php.net and read the instructions on the left. -
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.
-
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?
-
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.
-
Okay. Then see the link in my first reply.
-
https://3v4l.org/040Pe YOUR CODE WORKS FINE. WHAT IS THE PROBLEM?
-
You want to do something. Your code already does it. What is the problem?
-
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.
-
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.
-
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?
-
That's JSON. Do you not know what you're doing?
-
You don't. The data will be in $_POST. You know, like it normally is.
-
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.
-
Docblocks recommended for a class and for the methods
requinix replied to block34's topic in Application Design
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. -
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?
-
Make sure you have something set up to handle errors on the server side of things. Like your Pusher::onError is empty.
- 18 replies
-
- php
- websockets
-
(and 1 more)
Tagged with:
-
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?
- 18 replies
-
- php
- websockets
-
(and 1 more)
Tagged with:
-
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?
- 18 replies
-
- php
- websockets
-
(and 1 more)
Tagged with:
-
Are you running all this on your local server, or is any part of it deployed remotely?
- 18 replies
-
- php
- websockets
-
(and 1 more)
Tagged with:
-
I may be misreading, but isn't post.php is connecting to port 5555? And over TCP without the SSL layer?
- 18 replies
-
- php
- websockets
-
(and 1 more)
Tagged with:
-
header('Content-Disposition: inline; filename="imagename.jpg"');
-
Do you have a WebSocket-enabled server ready on port 8443?
- 18 replies
-
- php
- websockets
-
(and 1 more)
Tagged with:
-
When submitting a form, how to make it appear the chosen content?
requinix replied to alexndrre's topic in PHP Coding Help
That is the wrong way to redirect a user. Don't do that. Then do that. I've told you how to redirect (properly) so now you have to figure out where to redirect them to. Because I can't possibly how your application works. -
Yeah. Because they're not your problem, and there's nothing you can do about them.