I am trying to complete a connection using Long Polling, where the browser sends a request to the server and is waiting for a response.
To prevent this port from being infinitely open, I created a routine so that every 10 seconds the server send...
How could you send the following Json to Php without missing the " tabs " part, where you have an array !? The original Json is made up of a single line, so I put it here just to improve the view:
{"csTipoPagamento":"20",
"csClassificacao":"14...
I want to get the last query executed by CakePHP
Example
$data = $this->Ticket->find('all', array('conditions' => $conditions, 'order' => array('Ticket.id' => 'DESC')));
$this->query = $this->Ticket->getLa...
I'm trying this way
libxml_use_internal_errors(true);
//pegar o conteudo de um pagina web
$doc = new DomDocument();
$doc->loadHTMLFile('http://www.astralsaudeambiental.com.br/');
$div = $doc->getElementById('sidebar');
$string_div = '';...
Script1.php
Here script1.php calls the function that is in script2:
sendData($variavel);
Script2.php
The function receives the value and includes the script 3 to receive the values of the arguments:
sendData(){
$getFirstAr...
I would like to know how I can call opening a modal window in the bootstrap by passing a parameter. The idea is to open the inserted invoice item to edit the quantity.
I have the variable $peso that oscillates between 1000 and 50000 (grams)
There is a freight table that I have as
1000a2000 => 10,00
2000a3000 => 20,00
...
9000a10000 => 100,00
kg_adicional => 2,25
I have i...
Hello, I went to access cPanel and saw through the browser that some script was being loaded from another site. When viewing the source code, I came across the following code:
<script src='http://grugol.com/prog/landing.php?app=MjAtODktODQt...
I created a relationship between my tables using ManyToMany and I currently need to return a Json with the information, but my tables are found like this;
// 1. Produtos
+-------------+
| id |
| name |
| description |
|...
I have this code in javascript:
$(function() {
$("#calendario").datepicker({
changeMonth: true,
todayHighlight: true,
changeYear: true,
showOtherMonths: true,
selectOtherMonths: true,
date...