Questions tagged as 'php-7'

1
answer

error in wordpress query

Good morning everyone! I have the following query: <?php $footerlocal = array( 'numberposts' => 2, 'post_type' => 'page', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'zona'...
asked by 23.11.2018 / 11:27
0
answers

I need to create a message history that updates in real time [closed]

I created a chat, where 2 people can chat. besides the option to write a new message, the chat presents the user with a message history that shows the messages exchanged between him and the other user. as soon as a user writes a new message, it...
asked by 25.12.2018 / 22:40
0
answers

use .htacces properly for links

So, I have the following condition in my .htaccess: RewriteCond %{REQUEST_URI} !.(jpe?g?|png|gif|css|js) [NC] That tells me to release the above extensions in the case of the redirect below RewriteRule .* index.php [NC,L] Full .htacces...
asked by 29.06.2018 / 15:30
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
1
answer

Class not found on remote server

I have the following file index.php <?php require_once 'global/erros/erros.ini'; require_once 'vendor/autoload.php'; use CLASSES\INIT\Init; new Init(); ?> And the following class Init.php <?php na...
asked by 19.06.2018 / 15:50
0
answers

Error connecting PHP 7 (Debian) with Sybase 16

I have the following difficulty: I need to configure the PHP environment to connect to a Sybase 16 base. I am not a PHP programmer and I am helping another colleague. Everything that has been tried so far does not work. The code is: $connec...
asked by 14.12.2017 / 15:16
1
answer

Create Dockerfile for Zend Expressive

Hello everyone, I'm having a hard time running zend expressive with docker. I have other projects that work perfectly with docker but when I try to develop with zend expressive, I can not, it gives error saying that can not find the file vendor...
asked by 20.11.2016 / 19:31
2
answers

Emphasis problem when migrating to PHP7

I'm using collation latin1 in the bank columns and iso-8859-1 in the pages, while it was in PHP5 it worked normal, but when migrating to PHP7 the accents started to give problems appearing this � instead of each accent. Has PHP7 ch...
asked by 10.04.2017 / 00:23
1
answer

Error in anonymous function does not allow compilation [closed]

I'm studying a PHP OO book. You have an example of an anonymous function, but it is giving error: # FUNÇÂO ANONIMA $remove_acento = function($str) { $a = array( 'à', 'á', 'â', 'ã', 'ä', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ñ', 'ò'...
asked by 16.09.2016 / 16:40
3
answers

Doubt - Array php return [duplicate]

I'm new to php , and I came across the following problem. I have a function that returns an array that comes from the database. $teste = dados($conexao); And I do: print_r($teste); It returns me the following data: Array (...
asked by 26.09.2018 / 16:36