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
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 559
Pomógł: 6315
Dołączył: 27.12.2004




Ignorujesz to co pisze viking i masz czelnosc jego chamskim nazywac.... no cos tu jest nie tak o to raczej nie z zachowaniem vikinga. Ok, mozesz czegos nie rozumiec, ale to nie powod by ignorowac czyjes odpowiedzi na twoj problem i latac z tym samym co 5 razy.

Cytat
Nie zmieniałem nic w tej linii. Ta linia jest tak ustawiona w tym kodzie od początku.

Linii moze i nie zmieniales. Ale zmieniles jej LOKALIZACJE co ladnie widac na kodzie oryginalnym i kodzie po twoich zmianach. Teraz ta linia jest poza funkcja wiec zamiast mnie poprawiac zacznij czytac co sie do ciebie mowi. I kto tu znowu jest "chamski"? (IMG:style_emoticons/default/wink.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 13.10.2025 - 05:34