Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Uruchomienie Prediction Football na PHP 7
jwr
post
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 28.06.2014

Ostrzeżenie: (0%)
-----


Witam,

Posiadam oprogramowanie Prediction Football, które kilka lat temu było rozwijane przez John'a Astill'a. Tego projektu już nie ma w sieci. Musiałem zwiększyć wersję PHP na serwerze na PHP 7 i niestety to oprogramowanie przestało działać. Pojawiają się takie błędy:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserType has a deprecated constructor in /home/xxx/websites/mojadomena.pl/typer/usertypeclass.php on line 9

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; User has a deprecated constructor in /home/xxx/websites/mojadomena.pl/typer/userclass.php on line 9

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Message has a deprecated constructor in /home/xxx/websites/mojadomena.pl/typer/msgclass.php on line 2

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; MessageList has a deprecated constructor in /home/xxx/websites/mojadomena.pl/typer/msgclass.php on line 36

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Dbase has a deprecated constructor in /home/xxx/websites/mojadomena.pl/typer/dbasefunctions.php on line 8

Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in /home/xxx/websites/mojadomena.pl/typer/dbasefunctions.php:123 Stack trace: #0 /home/xxx/websites/mojadomena.pl/typer/dbasefunctions.php(55): Dbase->connect() #1 /home/xxx/websites/mojadomena.pl/typer/dbasedata.php(7): Dbase->Dbase() #2 /home/xxx/websites/mojadomena.pl/typer/index.php(11): require_once('/home/xxx/w...') #3 {main} thrown in /home/xxx/websites/mojadomena.pl/typer/dbasefunctions.php on line 123

usertypeclass.php:

  1. class UserType {
  2.  
  3. // Contructor for the user class.
  4. function UserType() {
  5. }


userclass.php:

  1. class User {
  2. // The basedir for this league
  3. var $basedir;


msgclass.php:

  1. class Message {
  2. // The message type e.g. Error, Warning, Info
  3. var $type;


  1. class MessageList {
  2. // Array of current messages.
  3. var $currentMessages;


dbasefunctions.php:

  1. class Dbase {
  2.  
  3. // MySQL Version number
  4. var $mysqlver;


Czy jest możliwe, aby to oprogramowanie działało na PHP 7?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 21:43