Questions tagged as 'php7'

1
answer

Laravel create a multidimensional array

I have a query in mysql that returns a row of records like this, the first field is the marca and the second the modelo , what I try to do with PHP is to mount an array with the following structure to pass it in view of blade grou...
asked by 01.08.2018 / 15:01
1
answer

Execute a PHP Script

I have a script that imports data from one system to another so it is a system that requires time since it passes almost 300,000 records. For this I have created a class with PHP using the laravel framework but I get an error 504 when executi...
asked by 25.06.2018 / 10:09
1
answer

How to make redirects in Apache2 in Ubuntu 16.04?

I have the domains mycompany.com & mycompany.com.co Goal : I want all traffic to go only to www.mycompany.com Doubts : In which file should the redirect be located in the Virtualhost directly or in an .htaccess file? If it i...
asked by 08.04.2018 / 12:52
1
answer

Error using file_get_contents in PHP7

When I upgrade from php 5.6 to php 7 I get this error:    Warning: file_get_contents (): http: // wrapper is disabled in the server configuration by allow_url_fopen = 0 php / admirss.php on line 26       Warning: file_get_contents ( link ):...
asked by 26.11.2017 / 11:56
1
answer

Query to add does not give me the result

I'm trying to add the amounts of a column, I have this query, but when I show it on the Web it does not show me the result. <td> <?php $query = mysqli_query ("SELECT SUM(importe_total) FROM consumobar"); $result = mysq...
asked by 30.10.2017 / 18:00
1
answer

Help with handling a closing of a PHP session

Guys, I have the following case: To start session in PHP I do the following: <?php session_cache_limiter('private'); session_start(); and to close the session I do the following: <?php if (isset($_GET['logout'])) { session_dest...
asked by 20.11.2018 / 16:30
2
answers

Help with PHP function to discard a MySQL data

I have the following: $verf = "SELECT nro_transf FROM pedidos WHERE nro_transf = '$nro_transf'"; $result = mysqli_query($db, $verf); $rows = mysqli_num_rows($result); $verf2 = "SELECT nro_transf FROM pagos WHERE nro_transf = '$nro_transf'";...
asked by 16.11.2018 / 16:49
0
answers

Function PHP Yes Send mail but sometimes Do not save the data in MySQL

I have the following function: function pedido(){ global $db, $username, $usua, $logo, $footer_correo; // Datos recibidos del Formulario $monto = $_POST['monto']; $banco_emisor = $_POST['banc...
asked by 10.11.2018 / 13:17
0
answers

Import a CSV file to MongoDB with PHP

I am trying to import a csv file into a mongodb collection, I have seen that it can be done through the mongoimport command, however I need to do it through php because I want to validate the entered data afterwards. So far I have managed to ope...
asked by 05.11.2018 / 22:54
1
answer

Problems with array_push PHP 7.2

Greetings as they are all, I have a problem and I do not really know what happens, these are my versions: Server version: Apache / 2.4.18 (Ubuntu) PHP 7.2.11-4 + ubuntu16.04.1 + deb.sury.org + 1 (cli) (built: Nov 4 2018 05:10:57) (NTS)...
asked by 09.11.2018 / 16:15