Posts by Hemerson Prestes • 655 points
63 posts
-
0
votes2
answers59
viewsQ: PHP Personal how to list array that are with the limit less than 30 min
Staff I commented in the code below what I need I hope you understand me if someone can give a force here thank you I know very little of php thank you ! <?php // Fazemos o Comando que queremos…
phpasked Hemerson Prestes 655 -
-1
votes1
answer215
viewsQ: Calculate with comma and dot with Jquery
Personal as I calculate example 1.400 + 1.400 would like the result to be the following result = 2.800 and not 2.8 someone can help me there ? $('input[type="text"]').keyup(function(){ var val =…
jqueryasked Hemerson Prestes 655 -
0
votes1
answer94
viewsQ: Take external json data, list, and save to webstorage
Personal I am trying to get the data via json besides to list I want to save in the browser, more I am not getting if someone can help me follow the code <!DOCTYPE html> <html…
-
0
votes1
answer234
viewsQ: Wordpress display post Author photo image url
Anyone here knows how to tell me how to get the image url of the photo from Author or post administrator in wordpress ?
-
0
votes2
answers90
viewsA: Php error api youtube
<?php $arrContextOptions=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), ); $video_list =…
-
0
votes2
answers90
viewsQ: Php error api youtube
I was using until 2 weeks ago the code below to list the name of the video through the API youtube. Code: <?php $dados ="Roberto Carlos"; $video_list =…
-
0
votes1
answer911
viewsQ: Integration with Asaas boleto API
Someone around here has already made integration with the Asaas billet system follows the link in case someone wants to take a look there https://asaasv3.docs.apiary.io I was kind of wondering if…
-
0
votes1
answer25
viewsQ: Wanted to separate some data in php
<?php if(isset($_GET['acao'])){?> <?php $acao = $_GET['acao']; switch ($acao) { case 'buscar': $dados = array( array( "video" => 'LWzwjcgh7_A', "imagem" =>…
phpasked Hemerson Prestes 655 -
0
votes1
answer333
viewsQ: Get the last json data in php
Galera follows the code below that lists all. need only the last given latitude and longitude $conteudo =…
-
0
votes1
answer654
viewsQ: collect data json print php
People like I get the data in php of latitude and longitude of this url below…
phpasked Hemerson Prestes 655 -
0
votes1
answer81
viewsQ: Separate email body from within php tag
I want to separate the simple quotes from the PHP tag: I have a code that sends an email to clients. I’ll just put here the part of the code where I want to separate the simple quotes that is this…
-
2
votes0
answers131
viewsQ: Create a responsive website, and encapsulate inside a webview for slow internet
I need to create a layout for a lightweight mobile client, because he lives in the interior that only works internet with 384 kbps of speed per residence. my question and the following for me to…
-
0
votes1
answer249
viewsQ: Is it possible by latitude and longitude to know if the direction?
Guys, I’m sorry if you don’t mean the question ! It will be possible by the latitude coordinate, longitude know the direction of the example vehicle if it is to the north or south or east or west…
-
0
votes1
answer43
viewsQ: How to format the number in php by removing fractions
Guys below I put the code just to understand what I want I want the following value 27.588877333333 print only 27 removing the other numbers as could do this with php <?php $numero =…
phpasked Hemerson Prestes 655 -
-2
votes2
answers678
viewsQ: PHP convert kilometers/hours by nautical miles / hours
Galley how I convert a km/h value into nautical miles ? Example: I have a value of 49km/h need to convert this value to nautical miles time "Mn/h" someone knows how to do this function to convert…
phpasked Hemerson Prestes 655 -
-2
votes1
answer642
viewsQ: Calculate speed Km/h latitude and longitude
People if every 5 minutes I cover 10 kilometer how many miles per hour I am traveling ? If anyone can help there thank you follow the code: function distancia($lat1, $lon1, $lat2, $lon2) { $lat1 =…
-
0
votes0
answers496
viewsQ: Google maps measure mileage between two points per hour
Next galera: has how in google maps measure speed (mileage) between two points by the time of each point example: Point A (Lat and Long + time type 10:00 hs) Point B (Lat and Long + time type 11:00…
-
1
votes2
answers409
viewsA: Access denied error 403 when not using https
Create a file at the root of your hosting . htaccess and put this code RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://italorodrigo.com.br/$1 [R,L]…
-
0
votes2
answers6727
viewsQ: Day of the week by php variable
I want to take the date in full. The code below is getting right, however, the current date of the computer. I would like it to be as I put the date coming from a variable type 01/09/2017. <?php…
-
1
votes1
answer1105
viewsQ: Split array with comma?
I thus receive the data Array ( [0] => php [1] => python [2] => javascript ) how do I receive so comma? Example: php, python, javascript…
phpasked Hemerson Prestes 655 -
0
votes4
answers2194
viewsQ: Subtract one hour from Current time
How do I subtract an example time: <?php $hora = "00:12:00" eco $hora; ?> How do I get like this : 11:12:00
phpasked Hemerson Prestes 655 -
0
votes2
answers1364
viewsQ: Retrieve xml data with php
I never worked with XML. Below I put the XML code as I get from a URL. I would like to take the latitude and longitude data and move on to a PHP variable. <?xml version="1.0"…
-
0
votes2
answers125
viewsA: Check Internet connection, if not add modal
I got so now I need him checking every 5 seconds without refreshing the page below as it was <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>…
-
0
votes2
answers125
viewsQ: Check Internet connection, if not add modal
Hello I have this code below that checks if there is an image in the url, if it does not exist. I would like that in the place of Alert that he called a modal informing that this without internet…
-
0
votes0
answers17
viewsQ: Help with api Error Parse error: syntax error, Unexpected
<?php $service_url = 'http://coversat.localize.cc/api/statuses'; $curl = curl_init($service_url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $headers = ['X-Client-Id: XXXXXXX',…
phpasked Hemerson Prestes 655 -
2
votes3
answers1503
viewsQ: Separate values from a variable
Hello friends I need to separate values from a variable I receive values like this: -4.08768, -63.141322 23/04/2017 22:00:00 need separate values each with a variable type like this: -4.08768,…
-
0
votes1
answer692
viewsQ: Get print data json in real time
Hello friends good night ! I have this code working perfectly I just need it to print the variable type every 5 seconds told me I had to do this with ajax more I do not know how to do this ! json […
-
0
votes2
answers233
viewsQ: Search for data in Json and display time in time and move on to javascrtipt
I need to get the data that are in json format example: {"latitude": "-3,3462, -60,6790"} I need to display the results time in time type every 5 seconds and move to javascript without refreshing…
-
0
votes2
answers80
viewsQ: Php value in javascript?
The idea is this below, but it is not working when I put the value of the php variable in javascript, for example-3,3462, -60,6790 It works, you know what it could be? <?php $variavel = "-3,3462,…
-
1
votes0
answers584
viewsQ: Retrieve data from an external url by source page code
Ola need to get the latitude , and longitude that is in a url In the source code of the url, there is a table below, what I need is these values -22.96555, -43.17969 that is in (TD 4 of the table) I…
-
0
votes1
answer50
viewsQ: Check Interval between time on a given day of the week
Hello guys good night ! I am with this code in php working his function is to inform if the current time is in the range between 8 to 12 Good is working the problem and I need him to report only…
phpasked Hemerson Prestes 655 -
1
votes3
answers391
viewsQ: php doubts how to generate ten random password
Hello, I have this code that looks like what I want. well it generate number from 1 to 10 and second type: 12 and there goes. I wish instead of the number, it would generate random passwordsguy:…
phpasked Hemerson Prestes 655 -
1
votes0
answers154
viewsQ: List json data in <ul> <li>
Guys, I have a system here that it takes the data in a JSON and lists in an HTML page, but it has the list as follows: it displays only one title and every time I update my browser it displays the…
-
0
votes2
answers1310
viewsA: How to display item that has been added to shopping cart with javascript?
<!DOCTYPE html> <html> <head> <style> div { text-align: center; } table { …
-
1
votes2
answers1310
viewsQ: How to display item that has been added to shopping cart with javascript?
Hello people a hangman here to modify a following script: when executing the code below I have a system where I click the + on the right side, that adds up the value below then everything working…
-
2
votes3
answers28262
viewsQ: Update DIV Automatically (autorefresh) without updating whole page
I wonder if there is a way to update only one div automatically at each x seconds without having to update the entire page this would be possible?
-
4
votes2
answers103
viewsQ: How to insert a set time into a function
The function of this code below and next after I click on a form Ubmit it redirects to another page this worked now just need it to redirect to another page after, 5 seconds someone knows how to do…
-
1
votes1
answer552
viewsQ: Problem with modal registration form
In the registration form I call a window modal which is the same page of listing entries. When I click on submit of form it sends to my beauty database and closes the modal. However, for me to see…
-
0
votes0
answers37
viewsQ: Format javascript value
Hello friends I’m having trouble putting the values in real with javascript below this the code where this the price value preco = parseFloat (preco.replace(",",".") );the amount is R $ 60.90 with…
javascriptasked Hemerson Prestes 655 -
0
votes2
answers592
viewsA: Accept cents in javascript
<script> total = 0; function adiciona(id) { calcula(id,"adicao"); } function…
javascriptanswered Hemerson Prestes 655 -
0
votes2
answers592
viewsQ: Accept cents in javascript
I would like this code to take the cents of the value coming from the javascript variable preco = parseInt(preco); I’ve put nothing like that preco = parseFloat(preco); Complete code below total =…
javascriptasked Hemerson Prestes 655 -
0
votes1
answer55
viewsQ: Problem with accents when inserting a personified field in the wordpress panel
Hello friends when I put there "Hemerson Assuncao" sends more when I put with acetos type Assunção does not send example add_post_meta($id, 'full name','Hemerson Assunção'); Someone of that force…
-
0
votes1
answer735
viewsQ: Help to pass values from the table inside php via form
Hello friends I need a gallows here next: I receive a table with the values inside php I need to take the full table and send via the form via post I am not able to send the tebela putting there in…
phpasked Hemerson Prestes 655 -
1
votes2
answers228
viewsQ: Accept pennies in a javascript code
Hello I’m not getting to make the Code accept cents follow the javascript code someone gives a light there <script> total = 0; function adiciona(id) { calcula(id,"adicao"); } function…
javascriptasked Hemerson Prestes 655 -
0
votes2
answers116
viewsQ: Take values from a post form and forward to an html table
I am layman in PHP and JSON, I have this code below that is working. It brings the values of a form, but all in the same PHP tag, I would like to separate and put in an organized table, for example:…
-
1
votes1
answer155
viewsQ: Form submit is not targeting and shaving the value to the php file
I’m having a problem here with the transfer when clicking on Ubmit was to pass to another php file, the values coming from a php loop, tested without the loop goes... more searching the Wordpress…
-
0
votes1
answer520
viewsQ: I need to add a cell phone of an html table dynamically
Hello I’m with a code I would like it to sum between the cells of a table and display below in total according to the code below. -more would like dynamically as you add another column below the…
-
0
votes1
answer354
viewsA: Wordpress Insert Featured Image wp_insert_post
Hello people who look for the same already solved follows the code below` <form method="post" action="" id="quick-post-form" enctype="multipart/form-data"> <input name="Nome" value="Titulo…
-
0
votes1
answer354
viewsQ: Wordpress Insert Featured Image wp_insert_post
Hello I’m with this code below that inserts a post in Wordpress. In addition to the title, I would like to insert a highlighted image someone knows how to do this ? Follow the code below I’m using:…
-
1
votes1
answer839
viewsQ: Cron on Linux minute and day of the week
I would like a force with a Linux Cronjob. Follows: */1 * * * * wget http://192.168.6.80/sistema.php I would like to see this process run every minute, from Monday to Friday, from 18 to 06 o'clock…