Jump to content
php.lv forumi

Faila nosaukums.


zintis8789

Recommended Posts

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 !

Link to comment
Share on other sites

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 by zintis8789
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...