
Recherche avancée
Autres articles (106)
-
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9249)
-
+defaultOptions.usePolicyFile (by default, false.) Specifies whether Flash should check third-party domains for crossdomain.xml file for permissions, eg. access to ID3 data.
9 octobre 2010, par Scott Schillerm script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js m src/SoundManager2.as m src/SoundManager2_AS3.as m src/SoundManager2_SMSound_AS3.as m swf/soundmanager2.swf m swf/soundmanager2_debug.swf m (...)
-
+defaultOptions.usePolicyFile (by default, false.) Specifies whether Flash should check third-party domains for crossdomain.xml file for permissions, eg. access to ID3 data.
9 octobre 2010, par Scott Schillerm script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js m src/SoundManager2.as m src/SoundManager2_AS3.as m src/SoundManager2_SMSound_AS3.as m swf/soundmanager2.swf m swf/soundmanager2_debug.swf m (...)
-
Access files in a directory and write the file paths to a text file in ascending order using PHP
26 mars 2014, par SCCI have a list of video files in my server. I would like to list out all the video files in this directory and write it to a text file. These video files are all having the same name output-x.mp4, and x is the number from 0 to an unknown figure. The total number of video files is dynamic and therefore I don't get to know the number of the last video. I have the below code to access all the video files in this directory. It works fine with only one problem : The video files written to the text file are not sorted in ascending order.
$directory = "video/myvideo";
$fp = fopen($_SERVER['DOCUMENT_ROOT']."Path/to/text/file", "wb");
$split_video_files = scandir($directory);
foreach($split_video_files as $file)
{
$content = "file ".$directory.$file."\r\n";
fwrite($fp, $content);
}
fclose($fp);What the text file gave me is this :
video/myvideo/output-0.mp4
video/myvideo/output-1.mp4
video/myvideo/output-10.mp4
video/myvideo/output-11.mp4
video/myvideo/output-12.mp4
video/myvideo/output-13.mp4
video/myvideo/output-14.mp4
video/myvideo/output-2.mp4
video/myvideo/output-3.mp4
video/myvideo/output-4.mp4
video/myvideo/output-5.mp4
video/myvideo/output-6.mp4
video/myvideo/output-7.mp4
video/myvideo/output-8.mp4
video/myvideo/output-9.mp4It lists out all the filename that start with "1" first before proceed to "2" and so on. Any ways for me to sort it in ascending order so that it starts from 0, 1, 2,… ?