Questions tagged [php-5.5]

PHP 5.5 is the successor to PHP 5.4. It was released on June 20, 2013. Use this tag for version-specific issues relating to specifically to PHP 5.5.

The key features of PHP 5.5.0 include:

  • Added generators and coroutines.
  • Added the finally keyword.
  • Added a simplified password hashing API.
  • Added support for constant array/string dereferencing.
  • Added scalar class name resolution via ::class.
  • Added support for using empty() on the result of function calls and other expressions.
  • Added support for non-scalar Iterator keys in foreach.
  • Added support for list() constructs in foreach statements.
  • Added the Zend OPcache extension for opcode caching.
  • The GD library has been upgraded to version 2.1 adding new functions and improving existing functionality.
  • A lot more improvements and fixes.

See Migrating from PHP 5.4.x to PHP 5.5.x for more information.

Information

  • If you want to talk about PHP or if you have a question, you can come to Chat Room 11: PHP.
  • For global question on PHP, please use the generic tag:
527 questions
-2
votes
2 answers

'cannot access empty property' error in php

I am confused where i made mistake in my php code below. Although, i looked numerous time on my code but couldn't find why i am getting this error 'cannot access empty property' . class DBTest{ //declare variables private $servername =…
Avnish Tiwary
  • 2,188
  • 22
  • 27
-2
votes
1 answer

how to convert input date to unix (php) time

How do you convert an input date like 01/16/2013 to a time format similar to 1422424719. Whats the best way to compare these two time stamp.
user836910
  • 484
  • 2
  • 9
  • 22
-2
votes
2 answers

PHP OOP - Passing object to function is not working

I have a problem here on PHP OOP. I try to do something that I always do in .NET - pass the whole object to the function. Unfortunately, the script didn't appear to work and when I try to debug (using Netbeans) it stopped here: $ud = new…
FirdhausKM
  • 85
  • 1
  • 9
-3
votes
1 answer

How to solve error 60 ssl certificate for symfony

I'm trying to install symfony 2, but when I copied the symfony.phar file and I tried to upload it with the cmd it wont work: C:\wamp\www>php symfony.phar new Symfony [GuzzleHttp\Exception\RequestException] cURL error 60: SSL certificate…
Samar
  • 53
  • 1
  • 2
  • 8
-3
votes
1 answer

Generate an array with specified keys

I have a big question. I have this array : Array ( [2] => 566 [9] => 1946 ) I need to generate an array, for this example, the key for array need to be from 1 to 7 random... So for this array the result should be : Array ( [1] => 566 …
Harea Costicla
  • 797
  • 3
  • 9
  • 20
-3
votes
1 answer

How to base 64 encrypt and base 64 decrypt image file in PHP?

I have one form field called file upload,here i moved one tmp_folder after that i stored in Database,from here working fine,but my requirement is i don't want to move in tmp_folder,i want to encrypt the filename and directly insert the DB,i think i…
kasthuri S
  • 39
  • 1
  • 7
-3
votes
1 answer

My Codeigniter project showing header error

I am facing a problem. So please don't mention other solution. So far i found many solution like white space before A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started…
joseph
  • 13
  • 2
-3
votes
1 answer

PHP Generator Yield keyword with FTP

I am using php ftp function to get the filename => filecontent associative array from ftp . And then I loop over this array and perform my operation . There are many files on server . I just want to know if I can use yield keyword to reduce memory…
yantrakaar
  • 374
  • 3
  • 15
-3
votes
1 answer

php flattening nested array

I have an array like this $array: { name : xyz version : Array[2] { 0 : Array[2] { id : 1 batch : 1 } 1 : Array[2] { id : 2 batch :…
lucky me
  • 73
  • 1
  • 7
-4
votes
4 answers

PHP array_search trouble

$data = Array ( [68315163] => Donnie1 [68328887] => Donnie1 [68353339] => Donnie1 ) I want to get the all the keys for Donnie1 value it is showing only the first one $datum = array_search('Donnie1', $data); print_r($datum); Where am I…
anon
-4
votes
4 answers

whilelopp not properly while fetching two table values

I have two table,i want fetch two table values,this code should working fine but count=2 means loop running 2 times,return the output of 2 times,like count=3 means loop running in 3 times return output 3 times,what i did mistake.... OUTPUT { …
yuvi
  • 1
  • 5
-4
votes
3 answers

Can't get code to work in PHP 5.5.9

This code works fine in PHP 5.3, but I can't figure out what to do to make it working in PHP 5.5.9 on a LAMP server. I have tried searching around, but haven't found any solution. Any ideas of to fix it? So; the users sees the from correctly,…
Adrian
  • 13
  • 1
  • 8
-4
votes
2 answers

Get the city by ip adrresse in php

I have a biig problem with get the city by ip addresse in php, the code work yersteday but now I got an error: Limit Exceed, my code: public function getCityAndCountryByIp($ip){ //get the city $tags =…
Menfis Menfis
  • 63
  • 1
  • 3
  • 11
-4
votes
1 answer

Shouldn't CodeIgniter stop using mysql_* functions given that they are deprecated in PHP 5.5?

For example they are used many times in this file: https://github.com/EllisLab/CodeIgniter/blob/develop/system/database/drivers/mysql/mysql_driver.php
celwell
  • 1,634
  • 3
  • 19
  • 27
-5
votes
1 answer

update PHP 5.5 to 7.0 with Avada ThemeForest and WordPress

I need to update PHP version to 7.0, but how can i do that? is it possible to update it manually? i use avada ThemeForest and WordPress. and my Web Host can upgrade it from controlpanel like Cpanel. Is it possible to update it in FileZilla? I have…
Christian
  • 3
  • 2
1 2 3
35
36