KillerBean Posted January 5, 2008 Report Share Posted January 5, 2008 (edited) atļaušos ierakstīt kko offtopic.. OMG!!! :D lai taisītu kkādas palielas PHP-web-based-MORPG tomēr manuprāt ir jāsāk ar PHP nopietnāku apgūšanu un tad tikai jādomā kā kko taisīt. Edited January 5, 2008 by KillerBean Link to comment Share on other sites More sharing options...
Re_Boot Posted January 6, 2008 Author Report Share Posted January 6, 2008 (edited) Nu es aatri maacos! :) Es to megjinu apvienot... Edited January 6, 2008 by Re_Boot Link to comment Share on other sites More sharing options...
Re_Boot Posted January 6, 2008 Author Report Share Posted January 6, 2008 Kaads var uz sho atbildeet!? :( Link to comment Share on other sites More sharing options...
KillerBean Posted January 6, 2008 Report Share Posted January 6, 2008 par tām enerģijām? var mēģināt kkādu cron taisīt, bet nezinu vai tas būtu optimālākais.. Link to comment Share on other sites More sharing options...
Re_Boot Posted January 7, 2008 Author Report Share Posted January 7, 2008 Kaa CRON lieto? Ludzu palidzi! Link to comment Share on other sites More sharing options...
andrisp Posted January 7, 2008 Report Share Posted January 7, 2008 google for it! Link to comment Share on other sites More sharing options...
Re_Boot Posted January 7, 2008 Author Report Share Posted January 7, 2008 ES JAU MEKLEJU!, BET VISS ANGLISKI, NEKADU PASKAIDROJUMU! Luuudzu kads ievietojiet kadu skriptinju, lai varu iezubriit.. Link to comment Share on other sites More sharing options...
Aleksejs Posted January 7, 2008 Report Share Posted January 7, 2008 (edited) Optimālāk - vispirms iemācīties angļu valodu, jo tas pavērtu milzīgas iespējas tik diženam autodidaktam kā Tev. Kādās valodās tad proti lasīt? Tikai latviešu? http://book.slackers.lv/pdf/slackware_linux_pamati_lv.pdf meklē pēc atslēgas vārdiem: cron dēmons Vai arī tikai cron, bet latviešu lapās. http://www.google.lv/search?hl=lv&q=cr...ta=lr%3Dlang_lv Edited January 7, 2008 by Aleksejs Link to comment Share on other sites More sharing options...
Kavacky Posted January 7, 2008 Report Share Posted January 7, 2008 Speak English or die. Link to comment Share on other sites More sharing options...
aldis Posted January 7, 2008 Report Share Posted January 7, 2008 Nezkape es angliski daudz tutorialus esmu lasijis un iemacijies.. un php jau nav lieta ko vajag dizhi IEZUBRIIT.... =) Programmeshanas valodaam, galvenais ir iemacities pashus pamatus - sintaksi [var teikt pareizrakstibu] , lasiit errorus ko vinji saka [isteniba PHP erroros ir loti saprotami uzrakstits kas isti neiet! Un likaas tiiraa laime maaciities PHP peec vienas pascal modifikacijas prieksh windows kam errori nepastaveja - pastaveja tikai viens logs Error un proga apstajas!] ja gribi zinaat funkcijas... ieskrien php.net un search >> malinjaa! girbi sameklet tutorialus gandriz katrai dzives situacijai progojot ar php >>> www.google.lv =) Link to comment Share on other sites More sharing options...
bubu Posted January 8, 2008 Report Share Posted January 8, 2008 Sintakse nav pamati. Sintaksi gandrīz jebkurai valodai var apgūt samērā sakarīgi dienas laikā. Daudz svarīgāk ir apgūt valodas ideoloģiju un tipiskos paņēmienus tajā, kas nebūt nav viegli. Link to comment Share on other sites More sharing options...
Re_Boot Posted January 8, 2008 Author Report Share Posted January 8, 2008 minute hour dom month dow user cmd minute This controls what minute of the hour the command will run on, and is between '0' and '59' hour This controls what hour the command will run on, and is specified in the 24 hour clock, values must be between 0 and 23 (0 is midnight) dom This is the Day of Month, that you want the command run on, e.g. to run a command on the 19th of each month, the dom would be 19. month This is the month a specified command will run on, it may be specified numerically (0-12), or as the name of the month (e.g. May) dow This is the Day of Week that you want a command to be run on, it can also be numeric (0-7) or as the name of the day (e.g. sun). user This is the user who runs the command. cmd This is the command that you want run. This field may contain multiple words or spaces. If you don't wish to specify a value for a field, just place a * in the field. e.g. 01 * * * * root echo "This command is run at one min past every hour" 17 8 * * * root echo "This command is run daily at 8:17 am" 17 20 * * * root echo "This command is run daily at 8:17 pm" 00 4 * * 0 root echo "This command is run at 4 am every Sunday" * 4 * * Sun root echo "So is this" 42 4 1 * * root echo "This command is run 4:42 am every 1st of the month" 01 * 19 07 * root echo "This command is run hourly on the 19th of July" Nu, es sho atradu google, bet isti nezinu ka to lietot savaa labaa :D Link to comment Share on other sites More sharing options...
Aleksejs Posted January 8, 2008 Report Share Posted January 8, 2008 Es arī nezinu, kā lai izdara, lai Tu zini. Kā Tavuprāt var atrisināt to tavu problēmu. Pastāsti, ko esi izdomājis pa šīm dienām. P.S. Pastāsti - tas nozīmē vairākus paplašinātus teikumus, kas apraksta Tavu domu gājienu un kuri saprotami citiem cilvēkiem. Link to comment Share on other sites More sharing options...
Aleksejs Posted January 9, 2008 Report Share Posted January 9, 2008 Atradu foršu bildi: Gribētos, lai arī atbildētājiem uzzīmētu līdzīgu :) Link to comment Share on other sites More sharing options...
GedroX Posted January 9, 2008 Report Share Posted January 9, 2008 Cron tasks patīkama lieta, bet neuzskatu, ka tas ir labākais šīs problēmas risinājums. Es personīgi saglabātu HP datubāzē tikai gadījumā, kad spēlmanis zaudē HP. Klāt vēl liktu timestamp lauku HP_update_time, kas glabātu laiku, kad tas notika (automātiski uz trigger-a). Pa virsu stāvētu skatījums (view), kurā HP kolonna tiktu rēķināta pēc formulas min(100, HP + 5 * max(0, floor(extract(epoch from (now() - HP_update_time)) / 60 / 5))) Funkcijas min un max jāizveido pašam. Tas viss, ja tu izmanto postgresql. Bet, cik man zināms, mysql arī tālu gājis. Itkā triggers un skatījumi jau no 5tās versijas ir un definēt funkcijas arī var. Vai ne? Link to comment Share on other sites More sharing options...
Recommended Posts