Jump to content
php.lv forumi

Spele


Chupakabra

Recommended Posts

Sveiki.

Radas velme paspeleties ar web brovser spelem.Skatos ka interneta pilns ar jau gatavam spelitem.Es tik isti nesaprotu ka tos php failus pareizi jaieliek sava majas lapa lai cilveki var sakt spelet.Varetu ka palidzet?

 

Seit ir tas par ko runaju.

http://php.resourceindex.com/Complete_Scripts/Games/

 

Es nesaprotu vienigi ka palaist to instalaciju.Ceru uz atsaucibu.

 

P.S. - negribu piebazt internetu ar tadam spelem,man vienkarsi tas ieintereseja.Gribetos saprat.

Link to comment
Share on other sites

Nu itka ir protams.Bet varbut vari paskaidrot?

 

Dragon Knight

Installation Instructions

 

### SYSTEM REQUIREMENTS ###

- PHP (4.1 and higher)

- MySQL

- zlib compression enabled on your server (optional)

 

### INSTALLATION INSTRUCTIONS ###

1. Create a new database for Dragon Knight to use, if you don't already have one set up.

2. Edit 'config.php' to include the correct values for your database setup.

3. Upload the contents of the Dragon Knight folder to your site.

4. In your browser, run 'install.php' and follow the instructions.

5. After completing installation, delete 'install.php' from your Dragon Knight directory for security.

6. Enjoy the game.

 

 

Kas man jaieraksta taja config.php faila?

Jo kad palaizu Install failu vins izmet erorru ka nevar ieinstelet.Varbut daru nepareizi.Sis install.php fails ir japarveido par install.html?Jo savadak jau nevaru vinu palaist.

 

Ceru uz sapratni.Vienkarsi interese.

Link to comment
Share on other sites

Es domāju PHP, bet XAMPP arī derēs, jo tur iekšā ir PHP.

 

Domāju, ka neesi pareizus datus ievadījis tajā 'conf' failā... tur vajag būt Tavas datubāzes 'server', 'username', 'password', 'name'.

Link to comment
Share on other sites

Es domāju PHP, bet XAMPP arī derēs, jo tur iekšā ir PHP.

 

Domāju, ka neesi pareizus datus ievadījis tajā 'conf' failā... tur vajag būt Tavas datubāzes 'server', 'username', 'password', 'name'.

 

 

To failu noteikti nesmu pareizi sarakstijis.Un tad tie faili ir jamet ieksa taja XAMPP nevis uz majas lapas servera?Laikam izklausos galigi stulbs :)

Link to comment
Share on other sites

config failā tev visdrīzāk ir jāieraksta mysql lietotāja vārds un parole, kā arī iespējams db nosaukums.

Faili tev jākopē tur, kur tu gribi palaist, ja uz sava datora, tad savā datorā, ja publiski internetā, tad uz kāda publiski pieejama servera.

Link to comment
Share on other sites

Tad tiktalu taka butu skaidrs.Config faila ir si pentere

 

<?php // config.php :: Low-level app/database variables.

 

$dbsettings = Array(

"server" => "localhost", // MySQL server name. (Default: localhost)

"user" => "", // MySQL username.

"pass" => "", // MySQL password.

"name" => "", // MySQL database name.

"prefix" => "dk", // Prefix for table names. (Default: dk)

"secretword" => ""); // Secret word used when hashing information for cookies.

 

?>

 

Ko no sita drikst dzet ara.Un gribu palaist publiski interneta lai varu ar darugu paakstities.

 

Tatad iemetu visus failus interneta kas ir mapite.

Sini config faila ierakstu savu interneta adreses user un pass.Vienigi database name vel nav skaidrs.

Link to comment
Share on other sites

Iekačā Counter Strike un āksties.

 

Nu iztiksim bez apvainojumiem.Tas ka nesmu datoros genijs nenozime,ka man ir 12 gadi un speleju tik bezjedzigas spelites.

 

Man liekas ari,ka savus jautajumus uzdevu cik ne vien sakarigi un izsmelosi speju ar savam zinasanam par PHP.

Link to comment
Share on other sites

Nu uzzini datus no tā Tava hostinga un tur arī savadi...

 

 

Nu es zinu

 

Host:

User:

Port:

Name Servers

ns1.zxq.net

ns2.zxq.net

MySQL Hostname

localhost

Path to your website

...............

 

Ar to pietiek?

Kad ierakstiju config.php sito informaciju man zinamu.Tad uzspiezot uz majas lapas adresi paradas tikai erorr.Ja partaisu install.php failu uz install.html tad varu palaist pirmo instalesanas posmu kur lauj izveleties instalet uzspiezu un error.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...