Questions tagged as 'php-7'

0
answers

image does not appear per rule in .htaccess

I have my .htaccess as follows: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -t [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.$...
asked by 15.06.2018 / 18:11
1
answer

Failed to register NULL value in database - PHP7

Good night everyone, I'm a beginner and I'm developing a CATEGORY and SUBCATEGORY registration system in PHP7 and MYSQL; The logic I used to register for Categories and Subcategories is: All PAI CATEGORY is null and any subcategory has a v...
asked by 13.11.2017 / 00:13
1
answer

PHP7 does not work with SQL Server 2014

I have a project running on Xampp with PHP 5.6 and SQL Server 2014 Express. I am trying to migrate the project to PHP 7.1.0 but it is giving error as picture below. I copied the dlls to the PHP ext folder which is in c: \ php7 \ ext. Th...
asked by 13.12.2016 / 17:12
2
answers

function imagecreatefrompng () does not exist - error undefined function

I'm trying to save a png image, and when I run the error script: Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() But from what I've seen, this function is native to PHP: link     
asked by 02.05.2018 / 16:21
1
answer

Querying database using ORDER BY kills my search

My code displays a list of people and a search field at the top. everything works fine, including searching. but I need people to appear randomly. The problem is that when I use the ORDER BY rand () (or any other ORDER BY) my search stops workin...
asked by 09.06.2018 / 06:11
1
answer

GET 500 (internal error) PHP

Good morning, I wrote a PHP class <?php private $v; private $v2; private $v3; public function __construct(){ printf("Objeto criado com sucesso!"); } public function setValor(){ $this->$v = "valor"; $this->$v2 = "val...
asked by 25.03.2017 / 15:49
2
answers

Error trying to connect to SQL Server with CodeIgniter and PHP 7

Good afternoon, I started having problems with my CI when upgrading my development environment (windows + xammp) and production (ubuntu + apache) to the latest version of PHP 7.1.10. When trying to connect to Microsoft SQL Server I get the fo...
asked by 07.05.2018 / 22:00
1
answer

Doubt about autoload php

About autoload I studied about: Autoload for classes in the same folder function __autoload($nomeClass) { require_once ("$nomeClass.php"); } Autoload for classes in specific folders spl_autoload_register(function ($nomeClass) { if...
asked by 03.01.2018 / 14:14
1
answer

How to install PHP7 on * unix

I decided to test a unix-like system (Linux Mint) to learn more, and I need to install PHP7, because PHPtherightway sent . I have already installed apache2 via Terminal and Mysql. I know there is a way to install PHP7 via the terminal, but acc...
asked by 14.02.2016 / 01:23
1
answer

Printing directly to the printer

I have a system of passwords where the user clicks a button and a password is printed for it. I needed the impression to be direct, because using js window.print() a dialog box opens. How to resolve this in PHP 7?     
asked by 01.12.2018 / 11:33