Posts by dmg Geronimo • 65 points
5 posts
-
0
votes1
answer132
viewsQ: Data synchronization, mysql and Promise
I’m a beginner in Node.js and I’m trying to understand why I can’t bring the expected result of my API. I have an application that sends an array of data to an API on Node to be saved to the…
-
1
votes1
answer1200
viewsQ: Blocked cross-origin request - PHP
Hello! I know there are several questions on this subject, but even reading the answers I’m still in trouble. I already tried to put Access-Control-Allow-Origin in the file header. php, I’ve tried…
-
1
votes0
answers54
viewsQ: What does "@" mean before a variable in PHP?
I’m looking at a code and I came across the following: $dom = new DOMDocument; @$dom->loadHTML($html); I thought @ was a mistyping, but when I remove the arroba I get a Warning:…
phpasked dmg Geronimo 65 -
1
votes1
answer3156
viewsQ: doubt Array.push() Javascript
Hello! Could anyone tell me why the push method is only saving the last item in the array newArr? My goal is to extract an array with the permutation of past and console.log() it comes out right,…
-
2
votes3
answers732
viewsQ: Recursive function with for
I’m studying recursive functions and I came up with a question when I was looking at some algorithms that use recursive function and for. I decided to create a simple example and print some values…