Questions tagged as 'php-7'

2
answers

Empty function return

Could anyone tell me why my insert2 function is returning null after insertion? it should be returning the string with the success message. <?php require_once 'conexao.php'; $con = new Conexao(); function insert($dados, $tabela, $campo_uni...
asked by 14.09.2017 / 19:11
1
answer

Error in PHP ... Fatal error: Uncaught Error: Call to a member function modify () on boolean

Personal I have a PHP script that adds another 10 days to a date. The script was working wonderfully well, however, a few days ago I started getting the following error:    PHP Fatal error: Uncaught Error: Call to a member function modify ()...
asked by 31.10.2018 / 13:43
3
answers

After "apt-get dist-upgrade" command was installed PHP 7. How to get back to 5?

I use Ubuntu 14.04. And when I ran this apt-get dist-upgrade command here on my machine, it installed PHP 7. I've already removed PHP 7 like this: apt-get purge php.* But when I do this: apt-get install php It reinstalls PHP...
asked by 04.01.2016 / 16:08
3
answers

Find Strings in Text Files in PHP

I have a file named "test.txt" inside it has several words, I have an input where I get the inserted word and would like to check if this word is contained within this ".txt file". Does anyone know how to do this?     
asked by 19.10.2017 / 14:30
1
answer

Problem installing OCI8 on a vm of Vagrant

I've created a VM with Laravel Homestead I need to install OCI8 on it: Run the command sudo pecl install oci8 as reported here But I get this error:    ERROR: '/ tmp / pear / temp / oci8 / configure    - with-php-confi...
asked by 30.01.2017 / 19:33
1
answer

Self invoking functions in PHP 7. What are the advantages?

I know that in javascript it is very useful to use self invoking functions , especially when it comes to variable scope protection. I was doing tests on PHP 7 and I see that we have the same possibility of using Self In...
asked by 16.09.2015 / 17:41
1
answer

Error using FuelPhp in version 7

I would like to know if anyone has encountered a similar error when using the FuelPHP framework, in version 1.7 with PHP 7. You are bursting the following message before entering the application: Fatal error: Uncaught Error: Call to undef...
asked by 19.06.2018 / 23:57
1
answer

Doubt about IC Sessions

According to: $config['sess_expiration'] = 7200; The session will be destroyed after 7200 seconds, however I was wondering if when I refresh the page or access another page of my system, is this time renewed? If not, is there any configurat...
asked by 28.09.2016 / 21:33
1
answer

How to return a collection of data using Doctrine ResultSetMapping?

I have the following script that is functional: SELECT r.coluna_1 as Coluna_1, e.coluna_1 as Coluna_2, FROM produto r INNER JOIN empresa e ON r.id_empresa = e.id_empresa WHERE r.id_tipo = 'N' AND r.data_devolucao <= :dataDevolu...
asked by 12.09.2018 / 18:53
2
answers

Prevent refresh after submitting on PHP pages

Good evening, everyone! I have a question and would like help, tips and more. I have a basic HTML form that sends the data through the POST method to the same page, ie I submit it to the page itself. Since this page has actions in Javascript, af...
asked by 27.08.2018 / 05:44