zintis8789 Posted January 16, 2010 Report Share Posted January 16, 2010 Man ir izveidota .csv failu upload sistēma. Piemēram kad es uplodoju failu ar nosaukumu: kautkas_playerstat__06_12_09__00_52_00.csv vis kartībā. Bet kad es uplodoju failu ar nosaukumu: kautkas_teamstat__06_12_09__00_52_00.csv uzreiz met erroru : Faila nosaukums nepareizs ! Quote Link to comment Share on other sites More sharing options...
Val Posted January 16, 2010 Report Share Posted January 16, 2010 parādi kodu, kas izmet to kļūdu. savādāk topikam jēga ar mīnusa zīmi. Quote Link to comment Share on other sites More sharing options...
2easy Posted January 16, 2010 Report Share Posted January 16, 2010 paldies par informāciju. mēs tgd zināsim, ka esi izveidojis šādu sistēmu. bet vai ir kādi jautājumi? Quote Link to comment Share on other sites More sharing options...
zintis8789 Posted January 16, 2010 Author Report Share Posted January 16, 2010 (edited) Mans kods: if (preg_match("/$filename/", "Admin__ANA-PIT_playerstat__06_12_09__00_52_00.csv")) { echo ""; }else{ die ("Ievieto pareizu Player stats failu! "); } Man vajag lai salidzina tikai $filename ar playerstat. Edited January 16, 2010 by zintis8789 Quote Link to comment Share on other sites More sharing options...
mounkuls Posted January 16, 2010 Report Share Posted January 16, 2010 Hmm... kods kā tāds nav pie vainas, bet nu matcho /foldername/ no filename.csv....., ne visai loģiski Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.