Questions tagged as 'php'

3
answers

Dropdown-menu Bootstrap with PHP

I'm trying to send a data to a PHP page with AJAX, but I can not figure out how to make it work, I'll explain what I have so far! The dropdown menu has the following code: <div class="btn-group"> <button class="btn btn-danger btn-...
asked by 31.01.2015 / 04:16
1
answer

How to solve the problem of PHP 5.6 with obsolete PPA in Linux?

I ran the sudo apt-get upgrade command and received the PHP PPA discontinuation message. After updating the PHP version, when I run php -v , the following appears: PHP 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1 In th...
asked by 05.07.2016 / 15:17
2
answers

How can we get the execution time of a script? [duplicate]

Looking at the Comparing with DateTime class, is the date function more performative? and I did some testing with Daniel Omine's response , but I got results that did not seem to me to be reliable. How can I get the runtime of a PHP scri...
asked by 30.08.2016 / 11:54
1
answer

How to count touches (letters, spaces and symbols) in PHP?

I made a program that extracts my notes from my code and creates a txt file to be a little manual. I formatted to stay cool: +-----------+ | | | ESPECIAIS | | | +-----------+ It takes the SPECIAL line and formats...
asked by 26.03.2015 / 19:22
1
answer

Problem connecting multiple CodeIgniter databases

I have an application where it connects to multiple databases, initially I use the database settings database.php . When I connect to another database, it still loads the settings from the database.php file, so I make the following connect...
asked by 02.03.2015 / 19:41
1
answer

Foreach within Foreach PHP

I have the following code: $row = $twitterusers->selectUserAll(); foreach ($row as $fetch) { $users[] = $fetch; } var_dump($users); It takes all the users of the table, however when using var_dump I realize that it has ar...
asked by 25.07.2017 / 14:45
2
answers

How does pagination done with PHP + AJAX?

I was browsing through the site looking for a functional example of pagination with AJAX + PHP, when I found this example Sorry for my ignorance, but the 'asynchronous loading' of AJAX causes me doubts .. However, I had a question: In th...
asked by 20.01.2016 / 15:52
2
answers

Boleto bradesco PHP

I have a system and I use the Boleto PHP portfolio 25 without Bradesco registration, I received a call from the bank saying that this portfolio will stop exist only passing to portfolio with Registry. I use the Boleto PHP layout . The m...
asked by 22.12.2015 / 21:08
1
answer

How to get information from .torrent files?

I would like to know how to get information from a .torrent file using some of these classes: Torrent RW Torrent-parse
asked by 09.05.2015 / 22:20
1
answer

Explode in PHP returns Undefined offset: 1

function extrai($string) { $peca1 = explode('id="', $string); $peca2 = explode('">', $peca1[1]); return $peca2[0]; } The string is this: < ul class="artigo" id="artigo1"> < li> < p>Art. 1º Salvo dispo...
asked by 29.04.2015 / 05:43