problem s php a sql ,zacinam

7 příspěvků

Archiv diskusního fóra

Fórum je uzavřené a slouží pouze ke čtení. Některé informace mohou být zastaralé.

  1. Zacal jsem s php ,mam ucet na www.wz.cz s subdomenou www.radina.unas.cz ale nak mi nefunguje kontakt databaze.Asi mam spatne nastaveny config.php pomuze mi nekdo ho nakonfigurovat? Zde je zdroj config.php : (melo by se zmenit localhost atd. ale nevim presne) <?php ###################################################################### # PHP-NUKE: Advanced Content Management System # ============================================ # # Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) # http://phpnuke.org # # This module is to configure the main options for your site # # This program is free software. You can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License. ###################################################################### ###################################################################### # Database & System Config # # dbhost: SQL Database Hostname # dbuname: SQL Username # dbpass: SQL Password # dbname: SQL Database Name # $prefix: Your Database table's prefix # $user_prefix: Your Users' Database table's prefix (To share it) # $dbtype: Your Database Server type. Supported servers are: # MySQL, mysql4, postgres, mssql, oracle, msaccess, # db2 and mssql-odbc # Be sure to write it exactly as above, case SeNsItIvE! # $sitekey: Security Key. CHANGE it to whatever you want, as long # as you want. Just don't use quotes. # $gfx_chk: Set the graphic security code on every login screen, # You need to have GD extension installed: # 0: No check # 1: Administrators login only # 2: Users login only # 3: New users registration only # 4: Both, users login and new users registration only # 5: Administrators and users login only # 6: Administrators and new users registration only # 7: Everywhere on all login options (Admins and Users) # NOTE: If you aren't sure set this value to 0 # $subscription_url : If you manage subscriptions on your site, you # must write here the url of the subscription # information/renewal page. This will send by # email if set. ###################################################################### $dbhost = "localhost"; $dbuname = "revxt_nuke2"; $dbpass = "VMXsZrWKoMN0"; $dbname = "revxt_nuke2"; $prefix = "nuke"; $user_prefix = "nuke"; $dbtype = "MySQL"; $sitekey = "SdFk*&kUTRpOiDVMXsZrWKoMN0+e9"; $gfx_chk = 7; $subscription_url = ""; /*******************************************************************/ /* You finished to configure the Database. Now you can change all */ /* you want in the Administration Section. To enter just launch */ /* you web browser pointing to http://yourdomain.com/admin.php */ /* */ /* Remeber to go to Settings section where you can configure your */ /* new site. In that menu you can change all you need to change. */ /* */ /* Congratulations! now you have an automated news portal! */ /* Thanks for choose PHP-Nuke: The Future of the Web */ /*******************************************************************/ // DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING $reasons = array("As Is", "Offtopic", "Flamebait", "Troll", "Redundant", "Insighful", "Interesting", "Informative", "Funny", "Overrated", "Underrated"); $badreasons = 4; $AllowableHTML = array("b"=>1, "i"=>1, "a"=>2, "em"=>1, "br"=>1, "strong"=>1, "blockquote"=>1, "tt"=>1, "li"=>1, "ol"=>1, "ul"=>1); $CensorList = array("@!#$", "cunt", "fucker", "fucking", "pussy", "cock", "c0ck", "cum", "twat", "clit", "bitch", "fuk", "fuking", "@!#$"); $tipath = "images/topics/"; if (eregi("config.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } ?>
  2. Proč nezkusíš hledat? http://www.webzdarma.cz/forum/read.php?f=2&i=20717&t=20717
  3. kdiz si neumis ani nastavit cfg tak radsej ani nedelej web .
  4. PHP-NUKE? Zadej tu složku s dalším "add" install/ a on by se ti měl spustit "instalačák"
  5. no jasny ty jsi hned taky vsechno vedel vzdyt ja vim
  6. nejdřív čti přiložený soubor readme.txt, readme.php, readme.htm(l) a tak nějak a teprve potom se ptej. Ale ono když nevíš, jak to otevřít, tak je to bloodný kruh, že?
  7. $dbhost = "mysql.webzdarma.cz"; $dbuname = "blabla"; // toto si nastavis v administracii konta $dbpass = "blabla"; //tiez $dbname = "blabla"; // tiez $prefix = "to je jedno"; $user_prefix = "nuke"; $dbtype = "MySQL"; $sitekey = "sem napis nejaku dlhu blbost"; $gfx_chk = 7; $subscription_url = "";

← Zpět na všechna témata