Posts by Humberto Lopes • 167 points
17 posts
-
-2
votes3
answers4410
viewsQ: How to remove whitespace from a string with Regex in PHP?
What a PHP Regex would look like to eliminate more than one blank space from one string? For example, <img src=' smiley. gif'> I’d like you to stay <img src='smiley.gif'>.…
-
-1
votes1
answer41
viewsQ: Remove div that contains a specific class in html with php
Example: $string = '<div class="teste"> Hello word </div> Hello pessoal'; I intend to remove the div that contains the test class and its contents.…
phpasked Humberto Lopes 167 -
2
votes3
answers3857
viewsQ: Catch the last occurrence in a javascript string
I have a string containing the following: xx_xxxxx_0001_ABCDE_TESTE_INTRODUCAO_VIDEO How would I ever catch the last word after the underscore "_" ? The expected result would be: VIDEO…
javascriptasked Humberto Lopes 167 -
0
votes1
answer33
viewsQ: Inline vuejs edition
When you click on the note column all inputs will appear. I wanted each input to appear when clicked on the corresponding row. new Vue({ el: '#app', data: { nota:'nota', edit: '', myclass: 'before',…
-
1
votes1
answer302
viewsQ: How to use jquery plugin in vuejs2
I am faced with difficulty when setting settings for the component that uses jquery in vuejs2. <div id="app"> <date-picker @update-date="updateDate" timepicker= "false"…
-
0
votes2
answers650
viewsQ: How to create a javascript array in json format
Example of how to declare in php: Array ( [0] => http://i.vimeocdn.com/video/637696211_200x150.jpg [1] => http://i.vimeocdn.com/video/637696227_200x150.jpg [2] =>…
javascriptasked Humberto Lopes 167 -
1
votes2
answers798
viewsA: Take value of variable in function return
gets like this $scope.fetchData = function (param) { var defer = $q.defer(); var url = param; var thumb; var imgid = get_numbers(url); var hash = ("http://vimeo.com/api/v2/video/" + imgid +…
-
1
votes2
answers798
viewsQ: Take value of variable in function return
$scope.fetchData = function (param) { var url = param; var thumb; var imgid = get_numbers(url); var hash = ("http://vimeo.com/api/v2/video/" + imgid + ".json"); $http({ method: 'GET', url: hash…
-
1
votes0
answers24
viewsQ: Wordpress Access plugin file in url
I have a wordpress plugin installed in the following path: site_wordpress/wp-content/plugins/meuplugin Inside my plugin I have a file parameter.php that I have access through the wordpress admin…
-
0
votes1
answer595
viewsQ: How to use $wpdb variable in wordpress
I have this code in a php file inside the wordpress installation, does not work I do not know what is wrong. global $wpdb; $tableName = "wp_posts"; $result = $wpdb->get_results("SELECT * FROM…
-
2
votes2
answers1623
viewsQ: Query delete with Join mysql
People I have problem with this query do not know what is wrong: DELETE FROM mdl_forum_discussions WHERE id IN ( SELECT mdl_forum_discussions.id FROM mdl_forum_discussions LEFT JOIN mdl_forum_posts…
-
-1
votes1
answer461
viewsQ: How to print cable with dynamic values in mpdf?
Personal I have a function that returns a $html containing a list of users, until here this working. my problem and when trying to generate pdf I printed header with last user of the list, not doing…
-
0
votes2
answers38
viewsQ: Function to form hours
I set the function below that returns me hours in this format 4:5:3 (hour, minute, second). I would like to return in this format 04:05:03(hour, minute, second). function converter($time) { if…
phpasked Humberto Lopes 167 -
2
votes2
answers63
viewsQ: Moving from one function to another
I have two functions in one class, how to do to take the value of a variable that is within a function and take advantage of that same variable in another function of the same class. I want to make…
phpasked Humberto Lopes 167 -
1
votes1
answer51
viewsQ: Ssh connection between computers
How to make a connection via ssh between a local pc and a server, with key authentication method.
-
-4
votes1
answer153
viewsQ: Extract values from an array and mount one or the other
Array ( [0] => Array ( [0] => DDF [2] => 00001778BRASILIA [25] => 00032433NORTE (AGUAS CLARAS) [44] => 00000000 [68] => RUA [102] => 00655588MANACA [124] => R MANACA [145]…
phpasked Humberto Lopes 167 -
0
votes3
answers9533
viewsQ: Remove whitespace between array values
Staff I have a array that is returning the following data as shown in the following example: Array ( [0] => Array ( [0] => DDF 00001778BRASILIA 00052442VILA FELIZ (PLANALTINA) 00000000…
phpasked Humberto Lopes 167