Posts by talnun • 403 points
11 posts
-
1
votes2
answers38
viewsQ: Add user filter in a function
The function below issues tax notes automatically using This plugin (Electronic Invoice Woocommerce) when the order status is completed. function issue_automatic_invoice( $order_id, $from, $to,…
-
1
votes1
answer140
viewsQ: How to group and add JSON values in PHP strings
I have a file named json data. structured as follows: { "price_usd": [ [ 1588464000000, 10, 8 ], [ 1588464000000, 10, 8 ], [ 1588464000000, 10, 8 ], [ 1588464000000, 3, 2.8 ], [ 1588550400000, 3,…
-
2
votes0
answers128
views -
1
votes1
answer113
viewsQ: Use call only in batch files containing expressions from another file
I have a directory with files .bat named randomly within each file. bat of this directory have unique names like: nome1 Nome2 name3 ... I also have, within the same directory, a file only.txt. In…
-
3
votes1
answer51
viewsA: Remove a specific line in all files from a directory using PHP
<?php if ($handle = opendir('.')) { while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { // load the data and delete the line from the array $lines =…
-
1
votes1
answer51
viewsQ: Remove a specific line in all files from a directory using PHP
I have a directory with 5500 files named randomly without extension, for example: 4as6d4ad 4asd564ad 1mi3jh 019i43nmasf I need to remove the last row of all files in this directory. I found this…
-
1
votes1
answer429
viewsQ: setInterval does not work properly
I would like to perform a function infinitely every second, I am trying this way but the function is only executed once: Between the tag body <div id="map"><div…
-
12
votes3
answers808
viewsQ: How to calculate the difference between the server time and the user’s computer?
I need to adapt my code to calculate the difference between the server time where the site is hosted and the user’s computer time so as not to overload my system. I am mounting a table where I will…
-
0
votes1
answer56
viewsQ: Ordering paginate in Cakephp
I’ve never heard of Cakephp, I’m having a little trouble adjusting a purchased script where the developer doesn’t support it. This code is responsible for listing some records of images saved in the…
-
1
votes0
answers40
viewsQ: What would be and how to use Namevirtualhost *:80?
I am installing a new site pre-configured, but for it to be installed you need to create a configuration file as follows: This part of the documentation is vague for me, and I didn’t understand what…
-
3
votes1
answer705
viewsQ: Refresh page when user is missing and there are no videos on page
I need to refresh my website page when the user is inactive for 15 minutes and there are no embedded videos in it. if the user is inactive on a page of the site for 15 minutes the page should be…