{"id":57,"date":"2007-08-01T20:02:00","date_gmt":"2007-08-01T20:02:00","guid":{"rendered":"http:\/\/grummfy.be\/blog\/?p=57"},"modified":"2007-08-01T20:02:00","modified_gmt":"2007-08-01T20:02:00","slug":"creation-de-repertoire-automatique-en-php-via-une-structure-txt","status":"publish","type":"post","link":"https:\/\/grummfy.be\/blog\/57","title":{"rendered":"Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt"},"content":{"rendered":"<p>Nombres de tutoriaux de programmation pr&eacute;sente la structure des diff&eacute;rents r&eacute;pertoires sous la forme d&rsquo;unt exte de cette forme : \/home \/admin \/index     \/ajouter     \/delete     \/news         \/id \/totor<\/p>\n<p>C&rsquo;est souvent assez embettant de recr&eacute;er chaque r&eacute;pertoire alors qu&rsquo;un simple script suffit &#8230;.<\/p>\n<p>Voici ce script<\/p>\n<pre class=\"code php\"><span style=\"color: #000000; font-weight: bold;\">&lt;?php<\/span> &nbsp; <span style=\"color: #0000ff;\">$tab<\/span> = <span style=\"color: #ff0000;\">'    '<\/span>; &nbsp; <span style=\"color: #0000ff;\">$shema<\/span> = &lt;&lt;&lt;UYJY <span style=\"color: #ff0000\">\/home \/admin \/index     \/ajouter     \/delete     \/news         \/id     \/totor<\/span> UYJY; &nbsp; <span style=\"color: #0000ff;\">$shema<\/span> = <a href=\"http:\/\/www.php.net\/str_replace\"><span style=\"color: #000066;\">str_replace<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #ff0000;\">&quot;<span style=\"color: #000099; font-weight: bold;\">\r<\/span><span style=\"color: #000099; font-weight: bold;\"> <\/span>&quot;<\/span>, <span style=\"color: #ff0000;\">&quot;<span style=\"color: #000099; font-weight: bold;\"> <\/span>&quot;<\/span>, <span style=\"color: #0000ff;\">$shema<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; <span style=\"color: #0000ff;\">$shemas<\/span> = <a href=\"http:\/\/www.php.net\/explode\"><span style=\"color: #000066;\">explode<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #ff0000;\">&quot;<span style=\"color: #000099; font-weight: bold;\"> <\/span>&quot;<\/span>, <span style=\"color: #0000ff;\">$shema<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; &nbsp; <span style=\"color: #0000ff;\">$curdir<\/span> = <a href=\"http:\/\/www.php.net\/array\"><span style=\"color: #000066;\">array<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; <span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">&#93;<\/span> = <a href=\"http:\/\/www.php.net\/dirname\"><span style=\"color: #000066;\">dirname<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #000000; font-weight: bold;\">__FILE__<\/span><span style=\"color: #66cc66;\">&#41;<\/span> . <span style=\"color: #ff0000;\">'\/rep'<\/span>; <a href=\"http:\/\/www.php.net\/mkdir\"><span style=\"color: #000066;\">mkdir<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">&#93;<\/span>, <span style=\"color: #cc66cc;\">0777<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; <span style=\"color: #0000ff;\">$lastNiv<\/span> = <span style=\"color: #cc66cc;\">0<\/span>; &nbsp; <span style=\"color: #b1b100;\">foreach<\/span> <span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$shemas<\/span> <span style=\"color: #b1b100;\">as<\/span> <span style=\"color: #0000ff;\">$line<\/span><span style=\"color: #66cc66;\">&#41;<\/span> <span style=\"color: #66cc66;\">&#123;<\/span> \t<span style=\"color: #808080; font-style: italic;\">\/\/profondeur du rep<\/span> \t<span style=\"color: #0000ff;\">$Niv<\/span> = <a href=\"http:\/\/www.php.net\/substr_count\"><span style=\"color: #000066;\">substr_count<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$line<\/span>, <span style=\"color: #0000ff;\">$tab<\/span><span style=\"color: #66cc66;\">&#41;<\/span> + <span style=\"color: #cc66cc;\">1<\/span>; &nbsp; \t<span style=\"color: #808080; font-style: italic;\">\/\/nom rep<\/span> \t<span style=\"color: #0000ff;\">$rep<\/span> = <a href=\"http:\/\/www.php.net\/substr\"><span style=\"color: #000066;\">substr<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$line<\/span>, <span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$Niv<\/span><span style=\"color: #cc66cc;\">-1<\/span><span style=\"color: #66cc66;\">&#41;<\/span> * <a href=\"http:\/\/www.php.net\/strlen\"><span style=\"color: #000066;\">strlen<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$tab<\/span><span style=\"color: #66cc66;\">&#41;<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; &nbsp; \t<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$Niv<\/span> &lt; <span style=\"color: #0000ff;\">$lastNiv<\/span><span style=\"color: #66cc66;\">&#41;<\/span> \t<span style=\"color: #66cc66;\">&#123;<\/span> \t\t<span style=\"color: #808080; font-style: italic;\">\/\/r\u00e9pertoire sup\u00e9rieur<\/span> \t\t<span style=\"color: #808080; font-style: italic;\">\/\/delete des chemin inf\u00e9rieur<\/span> \t\t<span style=\"color: #b1b100;\">for<\/span> <span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$i<\/span> = <span style=\"color: #0000ff;\">$Niv<\/span> + <span style=\"color: #cc66cc;\">1<\/span>; <span style=\"color: #0000ff;\">$i<\/span> &lt;= <a href=\"http:\/\/www.php.net\/count\"><span style=\"color: #000066;\">count<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; <span style=\"color: #0000ff;\">$i<\/span>++<span style=\"color: #66cc66;\">&#41;<\/span> \t\t<span style=\"color: #66cc66;\">&#123;<\/span> \t\t\t<a href=\"http:\/\/www.php.net\/unset\"><span style=\"color: #000066;\">unset<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span><span style=\"color: #0000ff;\">$i<\/span><span style=\"color: #66cc66;\">&#93;<\/span><span style=\"color: #66cc66;\">&#41;<\/span>; \t\t<span style=\"color: #66cc66;\">&#125;<\/span> \t<span style=\"color: #66cc66;\">&#125;<\/span> &nbsp; \t<span style=\"color: #808080; font-style: italic;\">\/\/save du niveau + chemin<\/span> \t<span style=\"color: #0000ff;\">$lastNiv<\/span> = <span style=\"color: #0000ff;\">$Niv<\/span>; \t<span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span> <span style=\"color: #0000ff;\">$Niv<\/span> <span style=\"color: #66cc66;\">&#93;<\/span> = <span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span> <span style=\"color: #0000ff;\">$Niv<\/span> - <span style=\"color: #cc66cc;\">1<\/span> <span style=\"color: #66cc66;\">&#93;<\/span> . <span style=\"color: #0000ff;\">$rep<\/span>; &nbsp; \t<span style=\"color: #808080; font-style: italic;\">\/\/cr\u00e9ation rep<\/span> \t<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">&#40;<\/span><a href=\"http:\/\/www.php.net\/mkdir\"><span style=\"color: #000066;\">mkdir<\/span><\/a><span style=\"color: #66cc66;\">&#40;<\/span><span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span> <span style=\"color: #0000ff;\">$Niv<\/span> <span style=\"color: #66cc66;\">&#93;<\/span>, <span style=\"color: #cc66cc;\">0777<\/span><span style=\"color: #66cc66;\">&#41;<\/span><span style=\"color: #66cc66;\">&#41;<\/span> \t\t<a href=\"http:\/\/www.php.net\/echo\"><span style=\"color: #000066;\">echo<\/span><\/a> <span style=\"color: #ff0000;\">'R\u00e9pertoire ('<\/span> . <span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span> <span style=\"color: #0000ff;\">$Niv<\/span> <span style=\"color: #66cc66;\">&#93;<\/span> . <span style=\"color: #ff0000;\">') cr\u00e9\u00e9!&lt;br \/&gt;'<\/span> . <span style=\"color: #ff0000;\">&quot;<span style=\"color: #000099; font-weight: bold;\"> <\/span>&quot;<\/span>; \t<span style=\"color: #b1b100;\">else<\/span> \t\t<a href=\"http:\/\/www.php.net\/echo\"><span style=\"color: #000066;\">echo<\/span><\/a> <span style=\"color: #ff0000;\">'R\u00e9pertoire ('<\/span> . <span style=\"color: #0000ff;\">$curdir<\/span><span style=\"color: #66cc66;\">&#91;<\/span> <span style=\"color: #0000ff;\">$Niv<\/span> <span style=\"color: #66cc66;\">&#93;<\/span> . <span style=\"color: #ff0000;\">') &lt;strong&gt;n<span style=\"color: #000099; font-weight: bold;\">\\'<\/span>a pas&lt;\/strong&gt; \u00eatre cr\u00e9\u00e9!&lt;br \/&gt;'<\/span> . <span style=\"color: #ff0000;\">&quot;<span style=\"color: #000099; font-weight: bold;\"> <\/span>&quot;<\/span>; <span style=\"color: #66cc66;\">&#125;<\/span><\/pre>\n<ul>\n<li><q>$curdir[0]<\/q> : Le r&eacute;pertoire de base o&ugrave; sont cr&eacute;er les r&eacute;pertoires,<\/li>\n<li><q>$shema<\/q> : Le sch&eacute;ma &agrave; suivre pour cr&eacute;er les r&eacute;pertoires.<\/li>\n<li><q>$tab<\/q> : L&rsquo;espace pour un r&eacute;pertoire (tabulation, 4 espaces, &#8230; (doit-&ecirc;tre r&eacute;gulier!)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Nombres de tutoriaux de programmation pr&eacute;sente la structure des diff&eacute;rents r&eacute;pertoires sous la forme d&rsquo;unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C&rsquo;est souvent assez embettant de recr&eacute;er chaque r&eacute;pertoire alors qu&rsquo;un simple script suffit &#8230;. Voici ce script &lt;?php &nbsp; $tab = &lsquo; &lsquo;; &nbsp; $shema = &lt;&lt;&lt;UYJY [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[9],"tags":[110,24,42,28],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-dev","tag-php","tag-programmation","tag-script","tag-trucs-et-astuces"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d&#039;unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C&#039;est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu&#039;un simple script suffit .... Voici ce script\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Grummfy\"\/>\n\t<meta name=\"google-site-verification\" content=\"d4qc9gnvtzVc9s5gDVkEqZIVZLo42Wi\/lYmFP7\/G0Kw=\" \/>\n\t<meta name=\"keywords\" content=\"php,programmation,script,trucs et astuces,d\u00e9veloppement\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/grummfy.be\/blog\/57\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Grummfy&#039;s project\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Grummfy&#039;s project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt\" \/>\n\t\t<meta property=\"og:description\" content=\"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d&#039;unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C&#039;est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu&#039;un simple script suffit .... Voici ce script\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/grummfy.be\/blog\/57\" \/>\n\t\t<meta property=\"fb:admins\" content=\"580961199\" \/>\n\t\t<meta property=\"article:tag\" content=\"php\" \/>\n\t\t<meta property=\"article:tag\" content=\"programmation\" \/>\n\t\t<meta property=\"article:tag\" content=\"script\" \/>\n\t\t<meta property=\"article:tag\" content=\"trucs et astuces\" \/>\n\t\t<meta property=\"article:tag\" content=\"d\u00e9veloppement\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2007-08-01T20:02:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2007-08-01T20:02:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@Grummfy\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Grummfy&#039;s project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d&#039;unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C&#039;est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu&#039;un simple script suffit .... Voici ce script\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#article\",\"name\":\"Grummfy's project .:. Cr\\u00e9ation de r\\u00e9pertoire automatique, en php, via une structure txt\",\"headline\":\"Cr\\u00e9ation de r\\u00e9pertoire automatique, en php, via une structure txt\",\"author\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#organization\"},\"datePublished\":\"2007-08-01T20:02:00+02:00\",\"dateModified\":\"2007-08-01T20:02:00+02:00\",\"inLanguage\":\"fr-BE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#webpage\"},\"articleSection\":\"D\\u00e9veloppement, PHP, programmation, script, trucs et astuces\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog#listItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/grummfy.be\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev#listItem\",\"name\":\"D\\u00e9veloppement\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev#listItem\",\"position\":2,\"name\":\"D\\u00e9veloppement\",\"item\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#listItem\",\"name\":\"Cr\\u00e9ation de r\\u00e9pertoire automatique, en php, via une structure txt\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog#listItem\",\"name\":\"Accueil\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#listItem\",\"position\":3,\"name\":\"Cr\\u00e9ation de r\\u00e9pertoire automatique, en php, via une structure txt\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/cat\\\/dev#listItem\",\"name\":\"D\\u00e9veloppement\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#organization\",\"name\":\"Grummfy's project\",\"description\":\"Mes projets, mes r\\u00eaves, mes envies, ...\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin\",\"name\":\"Grummfy\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/97f073e7de2fb1e9d5c5329eb7db2c6de1c5a80e8cfe9b1233473f78a1c908f6?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Grummfy\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#webpage\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57\",\"name\":\"Grummfy's project .:. Cr\\u00e9ation de r\\u00e9pertoire automatique, en php, via une structure txt\",\"description\":\"Nombres de tutoriaux de programmation pr\\u00e9sente la structure des diff\\u00e9rents r\\u00e9pertoires sous la forme d'unt exte de cette forme : \\\/home \\\/admin \\\/index \\\/ajouter \\\/delete \\\/news \\\/id \\\/totor C'est souvent assez embettant de recr\\u00e9er chaque r\\u00e9pertoire alors qu'un simple script suffit .... Voici ce script\",\"inLanguage\":\"fr-BE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/57#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2007-08-01T20:02:00+02:00\",\"dateModified\":\"2007-08-01T20:02:00+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/\",\"name\":\"Grummfy's project\",\"description\":\"Mes projets, mes r\\u00eaves, mes envies, ...\",\"inLanguage\":\"fr-BE\",\"publisher\":{\"@id\":\"https:\\\/\\\/grummfy.be\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Grummfy's project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","description":"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d'unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C'est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu'un simple script suffit .... Voici ce script","canonical_url":"https:\/\/grummfy.be\/blog\/57","robots":"max-image-preview:large","keywords":"php,programmation,script,trucs et astuces,d\u00e9veloppement","webmasterTools":{"google-site-verification":"d4qc9gnvtzVc9s5gDVkEqZIVZLo42Wi\/lYmFP7\/G0Kw=","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/grummfy.be\/blog\/57#article","name":"Grummfy's project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","headline":"Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","author":{"@id":"https:\/\/grummfy.be\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/grummfy.be\/blog\/#organization"},"datePublished":"2007-08-01T20:02:00+02:00","dateModified":"2007-08-01T20:02:00+02:00","inLanguage":"fr-BE","mainEntityOfPage":{"@id":"https:\/\/grummfy.be\/blog\/57#webpage"},"isPartOf":{"@id":"https:\/\/grummfy.be\/blog\/57#webpage"},"articleSection":"D\u00e9veloppement, PHP, programmation, script, trucs et astuces"},{"@type":"BreadcrumbList","@id":"https:\/\/grummfy.be\/blog\/57#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog#listItem","position":1,"name":"Accueil","item":"https:\/\/grummfy.be\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/cat\/dev#listItem","name":"D\u00e9veloppement"}},{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/cat\/dev#listItem","position":2,"name":"D\u00e9veloppement","item":"https:\/\/grummfy.be\/blog\/cat\/dev","nextItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/57#listItem","name":"Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt"},"previousItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog#listItem","name":"Accueil"}},{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/57#listItem","position":3,"name":"Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","previousItem":{"@type":"ListItem","@id":"https:\/\/grummfy.be\/blog\/cat\/dev#listItem","name":"D\u00e9veloppement"}}]},{"@type":"Organization","@id":"https:\/\/grummfy.be\/blog\/#organization","name":"Grummfy's project","description":"Mes projets, mes r\u00eaves, mes envies, ...","url":"https:\/\/grummfy.be\/blog\/"},{"@type":"Person","@id":"https:\/\/grummfy.be\/blog\/author\/admin#author","url":"https:\/\/grummfy.be\/blog\/author\/admin","name":"Grummfy","image":{"@type":"ImageObject","@id":"https:\/\/grummfy.be\/blog\/57#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/97f073e7de2fb1e9d5c5329eb7db2c6de1c5a80e8cfe9b1233473f78a1c908f6?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Grummfy"}},{"@type":"WebPage","@id":"https:\/\/grummfy.be\/blog\/57#webpage","url":"https:\/\/grummfy.be\/blog\/57","name":"Grummfy's project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","description":"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d'unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C'est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu'un simple script suffit .... Voici ce script","inLanguage":"fr-BE","isPartOf":{"@id":"https:\/\/grummfy.be\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/grummfy.be\/blog\/57#breadcrumblist"},"author":{"@id":"https:\/\/grummfy.be\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/grummfy.be\/blog\/author\/admin#author"},"datePublished":"2007-08-01T20:02:00+02:00","dateModified":"2007-08-01T20:02:00+02:00"},{"@type":"WebSite","@id":"https:\/\/grummfy.be\/blog\/#website","url":"https:\/\/grummfy.be\/blog\/","name":"Grummfy's project","description":"Mes projets, mes r\u00eaves, mes envies, ...","inLanguage":"fr-BE","publisher":{"@id":"https:\/\/grummfy.be\/blog\/#organization"}}]},"og:locale":"fr_FR","og:site_name":"Grummfy's project","og:type":"article","og:title":"Grummfy's project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","og:description":"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d'unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C'est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu'un simple script suffit .... Voici ce script","og:url":"https:\/\/grummfy.be\/blog\/57","fb:admins":"580961199","article:tag":["php","programmation","script","trucs et astuces","d\u00e9veloppement"],"article:published_time":"2007-08-01T20:02:00+00:00","article:modified_time":"2007-08-01T20:02:00+00:00","twitter:card":"summary","twitter:site":"@Grummfy","twitter:title":"Grummfy's project .:. Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","twitter:description":"Nombres de tutoriaux de programmation pr\u00e9sente la structure des diff\u00e9rents r\u00e9pertoires sous la forme d'unt exte de cette forme : \/home \/admin \/index \/ajouter \/delete \/news \/id \/totor C'est souvent assez embettant de recr\u00e9er chaque r\u00e9pertoire alors qu'un simple script suffit .... Voici ce script"},"aioseo_meta_data":{"post_id":"57","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-01-21 15:12:40","updated":"2025-06-04 00:02:23","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/grummfy.be\/blog\" title=\"Accueil\">Accueil<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/grummfy.be\/blog\/cat\/dev\" title=\"D\u00e9veloppement\">D\u00e9veloppement<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Accueil","link":"https:\/\/grummfy.be\/blog"},{"label":"D\u00e9veloppement","link":"https:\/\/grummfy.be\/blog\/cat\/dev"},{"label":"Cr\u00e9ation de r\u00e9pertoire automatique, en php, via une structure txt","link":"https:\/\/grummfy.be\/blog\/57"}],"_links":{"self":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grummfy.be\/blog\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}