Questions tagged as 'php5'

1
answer

Laravel, create record if it does not exist

I have a project in laravel with a database < a href="/ questions / tagged / mysql" class="post-tag" title = 'show questions with the tag "mysql"'> mysql and another with mysql to make a transfer of data from one system to another, the fiel...
asked by 26.06.2018 / 16:05
3
answers

Query about PHPMAILER

I wanted to know if the PHP setup I'm doing for the submission in a form is well-armed. From what I read in the documentation I have to download two PHP files, the Class.phpmailer.php and the SMTP.php and link them the way I'm doing with a requi...
asked by 16.11.2018 / 20:45
1
answer

Problem with Array Variables within an Include PHP

I am developing a master file that includes all the files (Classes, functions, etc.). The automatic inclusion is done as follows: $dir = "assets/php"; $funciones = []; function includes ($dir){ if ($gestor = opendir($dir)) {...
asked by 24.11.2017 / 14:06
2
answers

Header: location - Does not work

Perform a project that required the pages to have .php extension My problem is that when the page must redirect with the label: header("nuevapgina.php"); , it simply remains blank, and in the project I use it in 3 different occas...
asked by 05.03.2018 / 17:28
2
answers

Calculate assistances, faults, delays in PHP

I want to calculate the attendances, faults and delays of ALL the employees that return the function buscarEmpleados() from a date A and a date B which are received in $dates1 and $dates2 buscarEmpleados returns a...
asked by 06.04.2018 / 07:35
3
answers

Difference of exact hours between sumHoras and hrsDia, Excel PHP

I want to make the exact Difference between Time A and Time B. Ejemplo A HoraEntrada HoraSalida sumaHoras hrsDia Diferencia 06:51:27 19:51:00 12:59 08:00:00 4.98 The following query ret...
asked by 28.09.2018 / 23:32
2
answers

Get php variable from another file

I have 2 PHP files. The first one is called data.php and it has <?php $get = $_GET; if (isset($get['getBoxes']) && $get['getBoxes'] == 'what-we-do') { $boxes = array( array( 'title' => 'e-commerce',...
asked by 07.03.2018 / 15:03
1
answer

Problem checking if there is a directory with PHP

I'm trying to check if a directory exists and if not create it, but the page does not work for me when I use the functions "file_exists" or "is_dir". I've tried it this way: if(!file_exists( $path ) mkdir($path); And so: if(!i...
asked by 06.10.2018 / 20:00
1
answer

In php how to compress attachments to mail and encrypt them?

Let's see I have the script in php, it works very well for me to send emails, but I would like to compress everything and encrypt them I have seen a library for this as (phpzip and ziparchive) or (php-encryption); And I do not get to include the...
asked by 04.10.2017 / 12:24
1
answer

Array to string conversion. Modify mysql data with php

I have the following code that generates a table in php, returning the data saved in a database in mysql require("conexion.php"); $consulta = mysqli_query($conexion, "SELECT * FROM clientes"); if (!$consulta) { die("Fallo al realizar la...
asked by 19.05.2017 / 21:29