Posts by Edgar • 66 points
8 posts
-
2
votes0
answers38
viewsQ: Make all prototype functions inherit another prototype
I’m starting my studies with javascript prototypes, as soon as I started, I came across a problem that I couldn’t solve. Follow the code var ComponentAction = function(component){ this.comp =…
javascriptasked Edgar 66 -
1
votes1
answer521
viewsQ: Create dynamic html through javascript
I am developing a system (for study) and I came across a situation and thought about the different possibilities of doing it. On my website, when clicking the "Create Box" button a div with images,…
-
-1
votes1
answer152
viewsQ: How to protect a php page that runs something
I am developing a very basic system, just for study. During the development, I had a question. In my system I have a page called register Customer.php that when submitting a form, it will execute an…
-
1
votes1
answer352
viewsA: Fetch data from an external page with file_get_contents
You can capture this information using the function preg_match(), the code would look like this: $url = "https://api.micetigri.fr/player/Leow%239880"; $contents = file_get_contents($url); (bool)…
-
0
votes1
answer174
viewsA: Connection undoing while running php socket script
I made a change in the code and ran, logically it was a gambiarra and that can give problem at any time because I realized that the strange symbol " Ú" returns 8 bytes by the socket_recv function,…
-
0
votes1
answer174
viewsQ: Connection undoing while running php socket script
I am setting up a socket server in php, a simple chat. When I send a message or close a page, the following error appears: "Warning: socket_recv() Unable to read from socket[10053] An established…
-
1
votes0
answers51
viewsQ: Event click multiplying
I have a directory listing system that displays files and folders, when I click on an item, it displays a (single) menu that is already set on the page and can be used by all files. In this menu,…
-
0
votes1
answer138
viewsQ: Problem with PHP and Html5 Sockets
I have a problem, I have a page called server.php and another client.php, the client code is as follows: <script src="scripts/jQuery/jquery-3.2.1.min.js"></script> <script> var…