Posts by Daniel Vieira Junior • 95 points
15 posts
-
0
votes0
answers137
viewsQ: How to check if it has not already been inserted, in PDO?
I need to check if it has already been registered before entering it in the database, as you can see, I get an array of software and I need to validate all of them before inserting. Basically it…
-
2
votes1
answer153
viewsQ: Which Response default in a Rest api when partially executing an action?
#define API http://localhost:80/api/v1/resources. When making a POST in resources, the user(dev) can register/include an N number of Resources. Suppose some (ones) record could not be entered, but…
-
0
votes0
answers248
viewsQ: How to Install API REST?
Is it good practice to use our API’s? ex: (http://localhost/api/v1/Resources) If so, what best practice is there for you? I’m using Apache server with Silex PHP micro framework, could I create a…
-
4
votes1
answer210
viewsQ: Is it possible to give Insert with select?
I have two tables: hardware(ID, DEVICEID, NAME, ...) and softwares(ID, HARDWARE_ID, PUBLISHER, NAME, VERSION, ETC ...). I need to give insert in the software table, but I do not have the…
-
-2
votes1
answer396
viewsQ: Telegram bot without webhook
I’m using the Telegram api Telegram bot to create a bot. I can already send messages, files, etc. I am creating commands for the "/setcommand" bot and I want this command to do something, a routine,…
asp.net-web-apiasked Daniel Vieira Junior 95 -
-1
votes3
answers343
viewsA: How to check if the timestamp is today?
Solution: public function validAlert(array $alerts){ $alertsValid = array(); $today = new DateTime(); for($i=0; $i < count($alerts['alertList']['alerts']); $i++){ $timestamp =…
-
-4
votes3
answers343
viewsQ: How to check if the timestamp is today?
I have a JSON obtained from an API that returns a list of events like this: Array ( [alertList] => Array ( [alerts] => Array ( [0] => Array ( [id] => 145392039 [name] => Failed…
-
0
votes2
answers86
viewsQ: How to choose date in timestamp
I have the following line of code: round(microtime(true) * 1000) in order to catch the timestamp in milliseconds of the current time. I need to pick a future date, example, 10 or 5 minutes ahead.…
-
1
votes1
answer2561
viewsQ: How to catch an http GET replay using Httpurlconnection java.net?
I have the following class: package com.akamai.edgegrid.auth; import java.io.*; import java.net.*; public class C { public static String getHTML(String urlToRead) throws Exception { StringBuilder…
-
1
votes1
answer86
viewsQ: How to give querySelector in attributes with space?
Ex: I have a <div arvalue="Teste Novo">, and document.querySelector("div[arvalue='Teste Novo']").style.backgroundColor = "green"; If I take space from the arvalue and put TesteNovo and change…
javascriptasked Daniel Vieira Junior 95 -
0
votes0
answers190
viewsQ: Selenium, automation for web system
Good morning friends, I am facing a difficulty, where my goal is to automate a process of opening petitions on an intranet, the system does not have captcha but the way it was developed I can not…
-
0
votes1
answer36
viewsQ: Doubt in consultation of domains
Speaks guys, I need information granted through whois, various domains, which can end in . com, . br, . net, etc. With our provider br the nicbr no problem, I’m already using their rdap that returns…
-
0
votes1
answer596
viewsQ: Whois de dominios php api en json?
I need to do domain queries, get the information about it, dns, ip, responsible, etc. I can do it for registration.br using the nicBr api https://rdap.registro.br/domain/ but need for domains . org,…
-
0
votes2
answers3681
viewsA: How do I get JSON from a URL to use in my PHP file?
use this function string file_get_contents ( string $filename [, bool $use_include_path = false [, resource $context [, int $offset = 0 [, int $maxlen ]]]] ) <?php $json_url =…
-
1
votes2
answers2283
viewsA: Search data in MYSQL and show in Highcharts chart
flow, html+js(defined graph structure), ajax request to a php file, php select file in the echo json_encode(data) database, back to the js where the graphs are the object structure you implement the…