Posts by Lucas Fellipe Mondini Pereira • 1 point
5 posts
-
-3
votes2
answers34
viewsQ: php variable scope resolution
I’m not able to understand how the scope of variables works in php, I try to use a variable, declared outside a function, inside this and it is null $DSN = $dsn; echo $DSN; function…
-
-1
votes1
answer55
viewsQ: PHP Notice: Undefined variable: Conn in C: Users Lucas php_Server DB manager.php on line 7
I’m having a problem connecting to the database, more specific to register a value I tried to make the connection here class Dbconnection{ private $conn; function __construct(){ $this->conn =…
-
0
votes1
answer781
viewsQ: Problem "the file is already being used by another process"
I’m trying to make a code to call windows function ping and use output stream to windows file, and while using the code that the program calls on windows console right, but by the program I have a…
-
0
votes1
answer133
viewsQ: Variable Node.js takes Undefined value
I am trying to pick up the answer of an API, within the function body receives the JSON but outside the function the value is set to Undefined async function getJSON(){ var options = { url:…
-
0
votes1
answer98
viewsQ: Using`await` out of asynchronous function causes syntax error
I’m trying to make a function that awaits the answer, but the console points out an error: var cota = await getJSON(); ^^^^^ SyntaxError: await is only valid in async function My code is: async…