Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: pafiledb
Forum PHP.pl > Forum > PHP
filgra
Mam problem i prosbe dotycz±c± pafiledb. Zacznijmy on prosby:

Moglby mi ktos pomoc przy pewnej modyfikacji do pafiledb? Na stronie http://www.slask-wroclaw.com/pafiledb.php jest ono juz zmodyfikowane, ale nie podlicza ile jest w sumie plikow w kategorii "Filmiki z meczów". W php jestem zielony wiec raczej nic na to nie poradze, a wierze ze moglby ktos zrobic t± mal± modyfikacje nawet za free.

A teraz problem:

Otó¿ chce przenie¶æ ten system downloadu na inny serwer, wiec zgrywam pliki ze starego serwera na nowy (bez bazy.baza mi nie potrzebna), modyfikuje pliki config.php i mysql.php tak jak maj± byc, a przy instalacji, w pierwszym kroku pojawia sie taki b³±d:

Cytat
Fatal error: Call to undefined function: adonewconnection() in /home/slask/public_html/includes/config.php on line 56


O co chodzi? Moim zdaniem z plikami wszystko jest w porzadku.

Bardzo prosze o pomoc

pozdro[code]
kossa
B³±d ten informuje ¿e w pliku config.php w lini 56 jest wywo³anie funkcji której system nie mo¿e odnale¶æ. Sprawd¼ czy skopiowa³e¶ wszystkie pliki, mo¿e jaki¶ plikz funkcjami który jest includowany do systemu zosta³ pominiêty albo zrobi³e¶ literówkê w nazwie funkcji.

£ukasz
filgra
plik config.php wygląda tak:

  1. <?php
  2.  
  3. /***************************************************************
  4. * paFileDB 3.6  *
  5. * *
  6. * Author: PHP Arena <http://www.phparena.net> *
  7. * File Version 3.6  *
  8. * Copyright Š2005-2007 PHP Arena. All Rights Reserved.  *
  9. * *
  10. * THIS FILE MAY NOT BE REDISTRIBUTED. *
  11. * For more information, please see the PHP Arena license at:  *
  12. * <a href="http://www.phparena.net/license.html" target="_blank">http://www.phparena.net/license.html</a>  *
  13. ***************************************************************/
  14.  
  15. /* Database Configuration */
  16.  
  17. /* Database driver to use. Any ADOdb driver can be used, however, only mysql and 
    mysqli have been tested and included with paFileDB. If you don't know what to put here, you should leave it as mysql */
  18. $dbDriver = "xxx";
  19.  
  20. /* Database server to connect to. */
  21. $dbServer = "xxx";
  22.  
  23. /* Username to use to connect to the database. */
  24. $dbUser = "xxx";
  25.  
  26. /* Password for the above username. */
  27. $dbPass = "xxx";
  28.  
  29. /* The name of the database to use. */
  30. $dbName = "xxx";
  31.  
  32. /* Table name prefix. Anything entered here will be added before the table name, 
    allowing multiple installations of paFileDB in the same database */
  33. $dbPrefix = "xxx";
  34.  
  35. /* Set to true to use persistent connections, otherwise set to false. This should
     be kept as true unless you experience problems with the database connection, the
    n it should be set to false.*/
  36. $dbPConnect = true;
  37.  
  38. /* Other settings */
  39.  
  40. /* Disallowed extensions for file uploads. If anyone gains unauthorized
  41. access to your admin center, or one of your admins decides to go 
  42. the-internet-equivalent-of-postal, they can upload a script file using 
  43. the Add File function and run it in their browser, which can allow them 
  44. to do very, very bad things to your paFileDB, website, and entire server.
  45. You can use the disallowed extensions to prevent the uploading of various 
  46. script types, such as PHP. It is recommended that you do not remove any
  47. of the extensions in this list, and if you want to upload a script for 
  48. others to download, it's best to zip it first.
  49.  
  50. Separate extensions by a space, and do not add the period before them.
  51. */
  52. $disallowedExtensions = "php php3 php4 php5 phtml shtml fcgi cgi pl asp aspx jsp py sh cfm";
  53.  
  54.  
  55. /* DO NOT CHANGE ANYTHING BELOW THIS LINE */
  56. $db = &ADONewConnection($dbDriver);
  57. if ($dbPConnect) {
  58. $db->PConnect($dbServer, $dbUser, $dbPass, $dbName);
  59. } else {
  60. $db->Connect($dbServer, $dbUser, $dbPass, $dbName);
  61. }
  62. ?>
PiratNowegoPokolenia
$db = &ADONewConnection($dbDriver); :?:
ADONewConnection - Nie masz tego zdeklarowanego ... mo¿e dodajesz plik config.php na pocz±tku a plik zawieraj±cy t± funkcje czy co to jest dopiero potem ...
filgra
wgralem domyslny plik config.php na serwer i dalej to samo

i co, nikt nie jest w stanie mi pomoc? sad.gif
To jest wersja lo-fi g³ównej zawarto¶ci. Aby zobaczyæ pe³n± wersjê z wiêksz± zawarto¶ci±, obrazkami i formatowaniem proszê kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.