Posts by Estudante PHP • 191 points
27 posts
-
-3
votes2
answers28
viewsQ: Updating payment status using Cron in the Standard
I have the following scenario: I am using a payment api where each order expires in 15 minutes, how can I register a cron task for each payment order I have, bad I know where to start I am using…
-
0
votes1
answer54
viewsA: IMAP Certificate Failure for imap.gmail.com error
After searching deep I found a way to solve just use imap/ssl/novalidate-cert getting {imap.gmail.com:993/imap/ssl/novalidate-cert} however it is not recommended since you will be vulnerable to…
-
0
votes1
answer54
viewsQ: IMAP Certificate Failure for imap.gmail.com error
I am developing an application where I use Imap to connect to a client’s gmail, everything works properly on the spot but when I upgrade to the server and run the code I get the following error…
-
2
votes2
answers272
viewsQ: Filter information for the current day
I have the following variable in my View: Auth::user() ->LogsSearch() ->where('base', $linha->sigla) ->where('created_at', date('Y-m-d')) ->count() and I want to filter the results of…
-
-2
votes1
answer23
viewsQ: Configuration php monetary mask
I am developing an application and I have integer values, and in case I need to convert 95686448 to (0,96) cents but using number_format() I have a 95.686.448,00 return as I correctly configure the…
phpasked Estudante PHP 191 -
1
votes1
answer323
viewsQ: Copy table cell by clicking button
I am developing a system and I need each button to copy its information, but I am having problems with the command select() and document.execCommand("copy") as you can see in the image, where is my…
-
0
votes0
answers38
viewsQ: Error socket.io Node.js api changenow
I am developing a exchange system and need to receive in real time the status of transactions and exchange information, following the documentation changenow. but I always get the following error:…
-
0
votes0
answers66
viewsQ: Process in Ode being terminated alone
I am using blinktrade’s Ode documentation to receive deposit notifications on Bitcoins, but the Polling process is being terminated by itself thus disrupting the functioning of my system, how can I…
-
-2
votes1
answer113
viewsQ: How to convert money mask to php
I have the following value in real "513.40" wish that this value stay in full example 513.40000 with all rounding, how can I do this ?
-
-1
votes1
answer199
viewsQ: Error while deploying Laravel project
By doing the deploy of my application on a Linux machine returns an error stating that the view was not found "View [auth.login] not found." But the view is in the folder, and then the page reloads…
-
-1
votes1
answer1716
viewsQ: Calculation of percentage javascript
I am developing a project and need to calculate the percentage of spread (profit on sale) example: (1 Eth): 107.178552387 which in case is $107.18 with a 5% spread (ie 5% profit on top of the total…
-
0
votes1
answer42
viewsQ: Pass parameters
I am developing a system and I need to create an on/off button to update information in the database, but I need to pass the parameter ID by clicking the button to do the update, basically the…
-
0
votes1
answer655
viewsQ: Two arrays in foreach js
I have a Javascript function that sends requests with the content of a line textarea, is a looping that traverses an array and sends requests with the data of these indexes of the array, the problem…
-
1
votes1
answer67
viewsQ: Pick string by format
I have an array of 1000 indexes with texts and random numbers stacked together, I need to take this text snippets that are in particular formats that contain pre-defined amounts of characters, such…
-
1
votes2
answers287
viewsQ: How to monitor database changes without making abusive queries
I have a code that accesses the database every second and returns me the number of rows of a table, the problem is that an abusive number of requests and queries are made in the database to monitor…
-
0
votes1
answer337
viewsQ: Check database changes correctly
I need to check changes in my database and create a script that sends requests every millisecond by calling a function that returns the number of lines in that database, but I realized that it is a…
-
3
votes2
answers539
viewsQ: Keep script running
I wanted to know if there is a way to keep a php script running internally on the server even with the browser turned off. I’m not talking about scheduling tasks, I’m talking about keeping a process…
-
0
votes1
answer94
viewsQ: Pick up HTML with jQuery when pressing button
I have a simple system that takes the HTML of a file and puts it in a index unique and dynamic. Example: <a onclick="carregar('cartaonatal/natal.html');" href="#">Agradecimento</a>…
-
0
votes1
answer81
viewsQ: Find string character position and remove it
I have a complicated problem to solve, there are 3 types of variables that receive data via post example: $mes = "08"; $mes = "10"; $mes = "12"; In the case of 3 different types of string, I need 0…
-
2
votes1
answer633
viewsQ: How to fire a jQuery function after the user stops typing?
I have to do a search system that shows if an email is already registered in my database, but I do not know how to trigger a JS function after 3 seconds the user stops typing. I even tried with…
-
0
votes1
answer103
viewsQ: Automatic validation of inputs
I am creating a login area and came to me a question: I wonder if there is a way to check in my database if the email entered in the registration field is already in use on my site, but I want this…
-
0
votes1
answer140
viewsQ: Regular expression when there are equal strings
I need to take the value "R$ 0,00" in this string with a regular expression. I really don’t understand expressions, I only know the basics of the basic. There are several other values on the page…
-
1
votes2
answers384
viewsQ: How to create a regular expression
I have the following div with information <div class="endereco-item"> <h2 class="azulclaro identify">Casa</h2> <div class="entrelinha_0"></div> <div…
-
4
votes2
answers373
viewsQ: Concatenate variable into array
I have to requisition one json for a api, but I have to redeem data from a form to complement this json, the problem is that when rescuing the data into a variable I cannot put it in the correct way…
-
1
votes1
answer99
viewsQ: Slowness in restricted file
I have a file in php.php process that receives information in looping via jquery and makes a request to another page with Curl, this file does something around 4 to 5 thousand requests one by one,…
-
0
votes1
answer173
viewsQ: How to hide cookies.txt from the Curl
I have a php code that makes a request with Curl on a page, but it saves cookies in a cookies.txt text file, and anyone can have access to that file in a direct link "www.meusite.com.br/cookies.txt"…
-
0
votes1
answer79
viewsQ: Manipulate JSON with jQuery
I have a jQuery with $.ajax who sends a request to my config.php which in turn returns a json_array: function enviar(){ var bin = $("#bin_id").val(); var linhaenviar = bin.split("\n"); var index =…