Questions tagged as 'php-7'

1
answer

Errors in mysqli, expected parameters [duplicate]

The following errors are appearing:    Warning: mysqli_query () expects at least 2 parameters, 1 given in C: \ xampp \ htdocs \ network \ profile.php on line 25       Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result,...
asked by 06.11.2018 / 02:45
1
answer

Finding null value with get in Doctrine Entity

Hi, how are you? I'm having a problem with NULL with Doctrine . What happens: I have some fields in a database table where I save some values for future validations, these fields are nullable = true . I'll give an example: Whe...
asked by 29.10.2018 / 18:00
0
answers

Rotast System

I saw a publication in Stack Overflow about what I'm asking, but it did not meet what I'm looking for. Reason for doubt is because I am doing a PHP course, but I do not know the problem is the version that was used, considering that the cours...
asked by 29.10.2018 / 13:27
0
answers

Error without explanation, Uncaught SyntaxError: Unexpected end of JSON input

I'm doing a chart and I'm using Chart.js, PHP and jQuery. I was able to run with the correct information, but after a while it stops working and displays the following error: Uncaught SyntaxError: Unexpected end of JSON input at JSON.par...
asked by 27.09.2018 / 14:47
1
answer

Change apache in Cpanel

I made an application in laravel 5 and need to upload to a server that is not mine, I only have an FTP account for it. The problem is that p server CPanel is configured for PHP 5 and laravel runs on PHP 7. The hosting mentioned above is with Eas...
asked by 04.09.2018 / 13:51
0
answers

PHPMailer AddAttachment does not work

Good evening. I'm trying to make an attachment in PhpMailer as follows: $arquivo = '../enviados/planilha.xlsx'; $mail->AddAttachment($arquivo); That way, the attachment does not go along with the email. But when I put the path of the dir...
asked by 29.08.2018 / 03:30
1
answer

Android app does not connect to local webservice

I'm studying webservices but I came across a problem, the API works, because I can already enter data in the database, I'm using wamp, but in the app, I follow several steps and it just does not send, always error sending, but not points out mis...
asked by 25.08.2018 / 18:49
0
answers

Release access ONLY to a file that is in root having others with the same name

Searching the forum here I found this feature if I do in .htaccess : <Files *.php> deny from all </Files> <Files "meuFicheiro.php"> Order Allow,Deny Allow from all </Files> Libero access to the...
asked by 26.06.2018 / 23:12
0
answers

redirect to index.php in .htaccess except for one page maintenance.php

I have .htaccess below and it seems to be working fine: <ifModule mod_rewrite.c> # LIGA O MOTOR DE REESCRITA (Rewrite) RewriteEngine on # BUSCA PELA BASE /teste/ NO HOST ACESSADO RewriteBase /teste/ # FAZ UMA ESCESSÃO DE...
asked by 23.06.2018 / 14:55
0
answers

problem with namespace

I have the following index.php <?php ini_set("display_errors",true); ini_set("display_startup_erros",1); error_reporting(E_ALL | E_NOTICE | E_STRICT); use CLASSES\UTIL\Constantes; use CLASSES\UTIL\Util; $util = new Util...
asked by 18.06.2018 / 22:44