Questions tagged as 'php-5'

1
answer

How to install php-5 on ubuntu? [closed]

I am new user in Ubuntu , and I am not able to install PHP-5 via apt-get, since the stable version is PHP-7 , I get an error saying that no packages were found. I tried to use the following commands sudo apt-get install php sudo apt-get i...
asked by 28.09.2016 / 13:10
3
answers

Empty multiple tables in a single run

Via PDO , I can do the TRUNCATE (English) of a table as follows: // Matriz de definições $dbcon_new = array( "host" => "localhost", "dbname" => "bubu", "username" => "super_dragon", "password" =>...
asked by 17.02.2014 / 17:25
1
answer

Ternary operator "?:" [closed]

I recently got into a discussion with coworkers about the more compact functionality of the terabyte (x?: 10) and some of them said that it would be removed in php 7. I did a web search and found nothing related to that. Is there any informat...
asked by 04.08.2017 / 19:44
2
answers

How to use REST to validate the receipt of XML via POST

I have an application in Delphi that sends an XML with a code via Post . I have to develop an application in Symfony that needs to validate the receipt of this XML via post. Listening to say it would be via Rest but I've never used Rest. I w...
asked by 11.07.2016 / 14:09
2
answers

Class active in the include menu

In my pages PHP I use a include to call a file that contains my menu: <?php include("menu.php"); ?> Menu file: <li class="current-menu-item"><a href="#">Hosting</a> <ul> <li><a href=...
asked by 28.01.2017 / 02:38
1
answer

PHP - Take a value and modify the day of the date

Good morning guys, I'm having a question about date manipulation. I need to get a value (given by the user) and turn this value into day of the month. Example: $Valor_Usuario = 30; $Data = 12/10/2018; $Resultado = 30/10/2018; What I'm...
asked by 15.12.2018 / 17:31
0
answers

ZFTool does not work, returns the application html [Zend Framework]

Hello, I'm trying to use zftools (terminal) to create modules for Zend but unlike expected it would be an error message or success zf.php prints on the screen the HTML of the application, as if I were in the browser . Commands used:    comp...
asked by 23.07.2016 / 20:28
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
0
answers

API returns error sslv3 alert handshake failure

I am trying to run the code of an API that is in the address below. It's been 3 days since I've been on this code and I have not made any progress. Already tried to create everything again and nothing to work. link I created a project in...
asked by 09.11.2018 / 19:54
0
answers

Problem with iterating an array in php

I have the following code. $array = array(1,2,3); $arr1 = array(3, 4, 5); $data = []; for($i = 0; $i < count($array); $i++){ $data["ca"] = $array[$i]; for($k = 0; $k < count($arr1); $k++){ $data["ser"] = $arr1[$k];...
asked by 18.06.2018 / 21:14