Questions tagged as 'php-7'

1
answer

Doubts in the PHP float function

$valorBaixa = (float)$this->input->post('valorBaixa'); I have this float function where the same one transform a string in float value, only that it is cutting the values. Example: If you enter "8.75" the function converts to 8 wh...
asked by 04.12.2018 / 20:58
1
answer

class does not open

My structure localhost/sistema localhost/sistema/.htaccess localhost/sistema/composer.json localhost/sistema/composer.lock localhost/sistema/composer.phar localhost/sistema/App localhost/sistema/App/mvc/ localhost/sistema/App/mvc/Controles loc...
asked by 12.06.2018 / 23:21
2
answers

Install the composer on Windows 2012

My operating system has two Apaches running two phps (5 and 7.1 respectively). I'm trying to install the composer for PHP7, but it's giving the following message:    The PHP exe file you specified did not run correctly: C: \ PHP7 \ php.exe  ...
asked by 02.05.2018 / 19:05
1
answer

concatenation error when instantiating PDO

I have the connection PDO with mysql below: $dsn = 'mysql:host=' . self::$hostname . '; dbname=' . self::$dbname; $opcoes = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8'); self::$conexao = new PDO(...
asked by 20.06.2018 / 13:00
3
answers

Call PHP file in HMTL form

I want to call a .PHP file, but I can not. I have this script: ======== <html> <header> <title>Home Page</title> </header> <body> <form method="post"> <fieldset> <leg...
asked by 26.05.2017 / 19:27
1
answer

Silex can not find routes

I have a Silex 2.0 application with PHP 7.0 and Apache 2.4 (on port 8080) with the following structure: silex/ | - vendor/ | - web/ | - index.php | - composer.json | - .htaccess composer.json { "require": {...
asked by 11.01.2017 / 22:02
0
answers

basename (__FILE__) on internal pages

I have the following structure on my pages: for example, site.php <?php require_once "config.php"; $livre = true; ?> <!DOCTYPE html> <html> <head> <title><?php echo $constantes->getTituloSite();...
asked by 05.01.2019 / 12:24
1
answer

Class "PDO" not found after upgrading from PHP 7.2.13 to PHP 7.3.0 in Debian 9

On a server with Debian 9, I upgraded PHP from version 7.2.13 to version 7.3.0, but now the PDO does not work anymore. Fatal error: Uncaught Error: Class 'PDO' not found. Libs are already installed: root@/# apt install php7.3-pdo Reading...
asked by 13.12.2018 / 23:51
1
answer

Heroku downgrade php 7.3. * to 7.2. *

I do not know how I upgraded the version of php in heroku to version 7.3, however this version (7.3. ) is causing several bugs in the application, so I can downgrade to version 7.2. ? I've tried to change the version in composer.json to: "r...
asked by 17.12.2018 / 13:23
1
answer

PHP SOAP - SOAP-ERROR

Good afternoon Guys, I'm doing a WEBSERVICE to consume an API from a company. But with the code below the return is always "SOAP-ERROR: Encoding: object has no 'Active' property" I do not know what else to try anyone can give a tip. <?php...
asked by 24.10.2018 / 20:34