Questions tagged as 'php7'

0
answers

Prevent a foreach from doing a duplicate INSERT INTO

I have the following code: <?php function entregar_pedido(){ global $db; $id_pedido = ($_GET['id']); $user = ($_GET['user']); //$lote = $_REQUEST['lote']; $lote = "1 1111 1111 1111 1111 1111111111111111 2 2222 2222 22...
asked by 22.09.2018 / 19:51
0
answers

Function within an if else

I have the following function in PHP function verificar_status(){ global $db, $username, $usua, $ci_nro_cuenta, $monto, $nro_transf, $banco_emisor, $banco_destino, $fecha_transf, $status_pedido, $fecha_pedido, $status_pag...
asked by 08.09.2018 / 17:53
0
answers

the file_put_contents function does not work ... from php

Hello, good night, I would like to know why I do not believe the file gente.txt ? I was told that it may be permissions to create or edit files, but how would that be in wampserver? Thank you very much here I put the code. $fichero = 'gente.t...
asked by 24.08.2018 / 03:30
1
answer

Blade - Go through two arrays

I have a function that collects the data of a user and also collects the rols that are in the system, the idea is to compare what is in the system with the user is assigned and check them with a checkbox The method that collects the roles of...
asked by 08.08.2018 / 12:14
1
answer

Go through an array of a model (laravel)

I have a class Roles where I define a static array like this <?php namespace App; use Zizaco\Entrust\EntrustRole; class Role extends EntrustRole { public static $roles = [ 'admin1aaa' => [ 'name' => 'admi...
asked by 07.08.2018 / 14:40
2
answers

Error updating data #image

Help when updating the fields, the image that is already saved is deleted and the name is replaced by another one. I leave the code public function actualizarEventosController(){ $ruta = ""; if(isset($_POST["descripcion"])){...
asked by 07.08.2018 / 02:26
0
answers

I can not access my site with www mounted on ubuntu 16.04 with virtualhost

for example if I put example.domain.com if it manages to load the site, but if I put www.example.domain.com it gives me the following error Forbidden You don't have permission to access / on this server. In the virtual host file I have the...
asked by 07.08.2018 / 19:32
0
answers

php function odbc_fetch_obect

I have a problem using the odbc_fetch_object function, when executing my query it shows me the error    PHP Fatal error: Allowed memory size of 546308096 bytes exhausted   (tried to allocate 4294967320 bytes) in   C: \ inetpub \ wwwroot \ aja...
asked by 05.07.2018 / 22:14
0
answers

Error new relic plesk extension

After disabling the plesk newrelic extension The error appears to me of aletaria form: A PHP Error Was encountered Severity: Core warning Message: PHP startup; Unable to load dynamic library '/opt/plesk/php/7.0/lib/php/modules/newrelic.so' -...
asked by 13.06.2018 / 17:09
0
answers

Change PHP7 Each gives me warning

Hello, I have inherited a web in php, when I change to PHP7, I get it: Warning: Variable passed to each() is not an array or object I want to paint a table with the schedules for each day of the week. When it has data, the past value paints...
asked by 08.06.2018 / 14:03