Questions tagged as 'php7'

1
answer

Connect database site php5 to php7 [duplicated]

I'm trying to move my site to a server with php7 with mysqli: I have a conexion.php file that I modified and now looks like this: <?php $hostname_conexion = "localhost"; $database_conexion = "opentach"; $username_conexion = "root"; $p...
asked by 12.01.2018 / 12:50
1
answer

Laravel 5.4 and Centos 7: storage / logs / laravel.log (Permission denied)

I'm using PHP 7.1 on Apache and I just installed a Laravel 5.4 project on Centos 7, and I get the following error: My user is "root", the permissions of my directory are the following: I have executed the following commands:...
asked by 11.12.2017 / 18:28
2
answers

How to put data in input, depending on the value of a combobox?

I have a combobox where I select a table called 'sites', within this table I have the columns (Reference, Site, Address, Phone, City) and the column "Site" are the data that are displayed in the combobox . What I could not do is that depending...
asked by 10.12.2017 / 03:56
1
answer

Problem with $ _SERVER ['PHP_SELF']

I have the following code for a login form, from a previous page I sent by POST method the variable id_modulo and I recover it in the login page, but if the user miswrites the password or the name of user the system stays in the same page...
asked by 06.12.2017 / 23:10
2
answers

Problem with jquery in a select

I am using the model MVC with PHP v7. , HTML5 and SQL server 2008 , I have a page where I display a certain list and for each record I have a button to update.  Pressing the button calls a function in JS , which t...
asked by 04.09.2017 / 18:06
1
answer

"apc_fetch" error, but with php-apcu installed and running

I am installing on a ubuntu server 16.04 a site with apache / php7 / mysql for a symfony application, which currently works on another server. When trying to access this new server, the log gives me: [2017-04-26 11:45:16] request.CRITICAL:...
asked by 26.04.2017 / 11:57
1
answer

I have this problem: Warning: count (): Parameter must be an array or an object that implements Countable in ... any solution?

<?php $datos = array("idUsuario"=>"", "idProducto"=>$infoproducto["id"]); $comentarios = ControladorUsuarios::ctrMostrarComentariosPerfil($datos); $cantidad = 0; foreach ($comenta...
asked by 09.05.2018 / 18:00