Thread: problem setup
View Single Post
  #3  
Old 1st August 2017, 12:30
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
First error is showing because you're using PHP7.

For example if you have this class:
PHP Code:
class something
{
    function 
something()
    {
        
//your code here
    
}

then it should look like this:

PHP Code:
class something
{
    function  
__construct()
    {
        
//your code here
    
}

Change the line: function something() to function __construct() or you can even define an empty __construct method within the class.

Second error is showing because you have declared a function twice.

And the last error is showing because that the function array_keys() only accept an array as its first argument.
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote