Posts by tadeubarbosa • 424 points
10 posts
-
1
votes0
answers484
viewsQ: PHP - How do I find the wampserver ipv4 address in online mode?
What happens is that I am using websockets and accessing in other devices by wampserver online mode, I access in different networks, with this every time it changes ipv4. Is there any way to grab…
phpasked tadeubarbosa 424 -
3
votes1
answer671
viewsQ: Run functions within variables in PHP
In a certain project I am in error when trying to create a variable as a function, for example: namespace Classes; class Teste { public static function abc() { return 'teste'; } } Calling the…
phpasked tadeubarbosa 424 -
2
votes2
answers848
viewsQ: Problems with array in Angularjs
I have a certain problem filling an array and then returning it. For example: JS var my_array = {'teste':{'name':'Teste 123'},'lorem':{'name':'Lorem Ipsum'}}; // Esse valor é preenchido pelo…
-
3
votes2
answers1497
viewsQ: Error: $injector:modulerr Module Error
In a project I’m developing, I’m including the files: app js. angular.module('app', [ 'app.controllers', 'app.services' ] controller js. angular.controller('HomeController', function($scope,…
angularjsasked tadeubarbosa 424 -
1
votes1
answer234
viewsQ: Javascript: Master Tab
I need a certain function in a project, I need some functions only run in a tab of my site, for example... The user is in the tab HOME but the flaps SOBRE, CONTATO are open and on this site plays an…
-
6
votes2
answers9442
viewsA: How to catch the JSON return via jQuery?
Using the $.getJSON(). For example: $.getJSON("http://192.168.0.6:8080/G4FlexWS/rest/flexuc/clicktocall/ext/telefoneOrigem/telefoneOrigem/telefoneDestino", function(data) { alert( data.acctid ); });…
-
1
votes8
answers1132
viewsA: Can you use a variable above when it is declared below?
It is not possible to call a variable before it is declared. This is applicable to any programming language (as understood by the author himself; some information about variable declaration in PHP…
phpanswered tadeubarbosa 424 -
1
votes2
answers330
viewsQ: Class not found, but in another project worked
I had already inserted the Class Agent in another project using the Laravel 4, everything was working correctly, but now that I’m trying to put in another project the Laravel is returning the error:…
-
10
votes4
answers4814
viewsQ: Get value from external HTML TAG "<link>"
I need to take the value (or values if you have more than one) from the TAG <link> of an HTML from another site. Trying: $url = 'http://localhost/teste/'; $content =…
-
2
votes1
answer144
viewsQ: Set "currentTime" audio in HTML5
I need to play parts of some songs on something I’m doing. For example: var audio = new Audio('musica.mp3'); audio.play(); var interval = setInterval(function() { if(audio.currentTime) {…