Gå til innhold

mkdir - invalid argument


Anbefalte innlegg

Hei, jeg har en array på 480 elementer og jeg vil lage en mappe til hver element.

Bruker denne lille kode-snutten;

for ($i = 0; $i <= 480; $i++)
{

mkdir($p[$i], 0700);
echo $p[$i] . "<br>";

}

 

Det som er så forbaska rart er det kun lages mappe for element 480, på alle de andre elementene returneres

Warning: mkdir() [function.mkdir]: Invalid argument in c:\bla\bla\doc.php on line 27

 

Arrayet, $p, ser slik ut. Slenger med hele greia selv om det tar litt plass.

 

 

Array

(

[0] => ./Aachen

[1] => ./Aalter

[2] => ./Aarschot

[3] => ./Abbeville

[4] => ./Achel

[5] => ./Airaines

[6] => ./Albert

[7] => ./Amiens

[8] => ./Andenne

[9] => ./Anhee

[10] => ./Antheny

[11] => ./Antwerp

[12] => ./Ardres

[13] => ./Arendonk

[14] => ./Arlon

[15] => ./Armentieres

[16] => ./Arras

[17] => ./Ashford

[18] => ./Assigny

[19] => ./Ath

[20] => ./Attigny

[21] => ./Aubenton

[22] => ./Aubigny

[23] => ./Avelgem

[24] => ./Avesnes

[25] => ./Avricourt

[26] => ./Baarle-Hertog

[27] => ./Bailleul

[28] => ./Bapaume

[29] => ./Bastogne

[30] => ./Bavay

[31] => ./Beaumont

[32] => ./Beauraing

[33] => ./Beauvais

[34] => ./Berck-Plage

[35] => ./BergenOpZoom

[36] => ./Bergheim

[37] => ./Bergues

[38] => ./Berlaimont

[39] => ./Bernay

[40] => ./Berry-Au-Bac

[41] => ./Bertincourt

[42] => ./Bertrix

[43] => ./Betheniville

[44] => ./Bethune

[45] => ./Bievre

[46] => ./BigginHill

[47] => ./Bilzen

[48] => ./Binche

[49] => ./Bitburg

[50] => ./Bohain

[51] => ./Boom

[52] => ./Bouchain

[53] => ./Bouchoir

[54] => ./Bouillet

[55] => ./Bouillon

[56] => ./Boulay

[57] => ./Boulogne

[58] => ./Bouzonville

[59] => ./Boxtel

[60] => ./Brakel

[61] => ./Breda

[62] => ./Breskens

[63] => ./Brighton

[64] => ./Brouwershaven

[65] => ./Bruay

[66] => ./Brugge

[67] => ./Bruhl

[68] => ./Brussels

[69] => ./Buzancy

[70] => ./Calais

[71] => ./Cambrai

[72] => ./Canterbury

[73] => ./Carignan

[74] => ./Cassel

[75] => ./Catillon

[76] => ./Caudry

[77] => ./Cayeux

[78] => ./Cerfontaine

[79] => ./Champlon

[80] => ./Charleroi

[81] => ./Charleville

[82] => ./Chaulnes

[83] => ./Chaumont

[84] => ./Chauny

[85] => ./Chevron

[86] => ./Chichester

[87] => ./Chilly

[88] => ./Chimay

[89] => ./Chuignolles

[90] => ./Ciney

[91] => ./Clermont

[92] => ./Clervaux

[93] => ./Cobreville

[94] => ./Coltishall

[95] => ./Conde

[96] => ./Consenvoye

[97] => ./Corbie

[98] => ./Couvin

[99] => ./Creutzwald

[100] => ./Cromstrijen

[101] => ./Damvillers

[102] => ./Daun

[103] => ./Deal

[104] => ./Deinze

[105] => ./DenHaag

[106] => ./Dendermonde

[107] => ./Densborn

[108] => ./Derringstone

[109] => ./Dieppe

[110] => ./Diest

[111] => ./Diksmuide

[112] => ./Dinant

[113] => ./Dizy

[114] => ./Dordrecht

[115] => ./Dormagen

[116] => ./Douai

[117] => ./Doullens

[118] => ./Dover

[119] => ./Dun

[120] => ./Dungeness

[121] => ./Dunkerque

[122] => ./Duren

[123] => ./Dusseldorf

[124] => ./Eastbourne

[125] => ./Eastchurch

[126] => ./Echternach

[127] => ./Eeklo

[128] => ./Eersel

[129] => ./Eghezee

[130] => ./Eind

[131] => ./Eindhoven

[132] => ./Elsloo

[133] => ./Enghien

[134] => ./Erkelenz

[135] => ./Esch

[136] => ./Escoeuilles

[137] => ./Essertaux

[138] => ./Etain

[139] => ./Ettelbruck

[140] => ./Etten-Leur

[141] => ./Eupen

[142] => ./Euskirchen

[143] => ./Evivermen

[144] => ./Evrange

[145] => ./Faulquemont

[146] => ./Faversham

[147] => ./Fechain

[148] => ./Feschaux

[149] => ./Fixecourt

[150] => ./Flamierge

[151] => ./Flavion

[152] => ./Florenville

[153] => ./Folkestone

[154] => ./Fontoy

[155] => ./Foucarmont

[156] => ./Fressenneville

[157] => ./Frevent

[158] => ./Fruges

[159] => ./Gamaches

[160] => ./Gedinne

[161] => ./Geel

[162] => ./Geilenkirchen

[163] => ./Gembloux

[164] => ./Genk

[165] => ./Gent

[166] => ./Geraardsbergen

[167] => ./Gerolstein

[168] => ./Gilze

[169] => ./Givet

[170] => ./Gomont

[171] => ./Gorisboek

[172] => ./Gosport

[173] => ./Gouvy

[174] => ./Grandpre

[175] => ./Gravelines

[176] => ./Gravenpolder

[177] => ./Grevenbroich

[178] => ./Grevenmacher

[179] => ./Griendtsveen

[180] => ./Grobbendonk

[181] => ./Guise

[182] => ./Haamstede

[183] => ./Habay

[184] => ./Hahn

[185] => ./Halle

[186] => ./Hallschlag

[187] => ./Ham

[188] => ./Hamoir

[189] => ./Hampteau

[190] => ./Hannut

[191] => ./Hasselt

[192] => ./Hastiere

[193] => ./Hastings

[194] => ./Havelange

[195] => ./Haybes

[196] => ./Hazebrouck

[197] => ./Heerlen

[198] => ./Heiderscheid

[199] => ./Heinsberg

[200] => ./Helchteren

[201] => ./Hellevoetsluis

[202] => ./Helmond

[203] => ./Herbeumont

[204] => ./Hesdin

[205] => ./Hillesheim

[206] => ./Hirson

[207] => ./Hoogstraten

[208] => ./Hornchurch

[209] => ./Houffalize

[210] => ./Hulst

[211] => ./Hurtgenwald

[212] => ./Huy

[213] => ./Ieper

[214] => ./Ijzendijke

[215] => ./Ipswich

[216] => ./Jabbeke

[217] => ./Jarny

[218] => ./Jodoigne

[219] => ./Julich

[220] => ./Juniville

[221] => ./Jurbise

[222] => ./Kaarst

[223] => ./Kalmthout

[224] => ./Kamperland

[225] => ./Kats

[226] => ./Kempen

[227] => ./Kerpen

[228] => ./Knokke

[229] => ./Koln

[230] => ./Kortrijk

[231] => ./Krabbenijke

[232] => ./Krefeld

[233] => ./Kreuzberg

[234] => ./Kurten

[235] => ./LaBasse

[236] => ./LaCapelle

[237] => ./LaFere

[238] => ./Landrecies

[239] => ./Langenfeld

[240] => ./Laon

[241] => ./LaRoche

[242] => ./Launois

[243] => ./LeCatelet

[244] => ./LeChesne

[245] => ./LeCrotoy

[246] => ./Lens

[247] => ./Leopoldsburg

[248] => ./LeQuesnoy

[249] => ./LeTouquet

[250] => ./LeTreport

[251] => ./Leuven

[252] => ./Leuze

[253] => ./Liart

[254] => ./Libin

[255] => ./Libramont

[256] => ./Liege

[257] => ./Lier

[258] => ./Lille

[259] => ./Lillers

[260] => ./Liomer

[261] => ./Lislet

[262] => ./Lohmar

[263] => ./Lokeren

[264] => ./Lommel

[265] => ./Londinieres

[266] => ./Longuyon

[267] => ./Longwy

[268] => ./Losheim

[269] => ./Louviere

[270] => ./Lumbres

[271] => ./Luxembourg

[272] => ./Lympne

[273] => ./Maaseik

[274] => ./Maastricht

[275] => ./Maldegem

[276] => ./Malmedy

[277] => ./Manhay

[278] => ./Maninghem

[279] => ./Marche

[280] => ./Margate

[281] => ./Mariemburg

[282] => ./Marle

[283] => ./Marquion

[284] => ./Marquise

[285] => ./Martelange

[286] => ./Martlesham

[287] => ./Maubeuge

[288] => ./Mazagran

[289] => ./Mean

[290] => ./Mechelen

[291] => ./Meckenheim

[292] => ./Mendig

[293] => ./Menen

[294] => ./Merbes

[295] => ./Mersch

[296] => ./Merzig

[297] => ./Mettet

[298] => ./Metz

[299] => ./Metzervisse

[300] => ./Moerdijk

[301] => ./Mol

[302] => ./MonchenGladbach

[303] => ./Mons

[304] => ./Monschau

[305] => ./Montfaucon

[306] => ./Montherme

[307] => ./Montmedy

[308] => ./Montreuil

[309] => ./Moreuil

[310] => ./Mouzon

[311] => ./Musch

[312] => ./Namur

[313] => ./Nandrin

[314] => ./Neiderkruchten

[315] => ./Nettersheim

[316] => ./Nettetal

[317] => ./Neufchateau

[318] => ./Neufchatel

[319] => ./Neuss

[320] => ./Neuvillette

[321] => ./Niederkassel

[322] => ./Ninove

[323] => ./Nivelles

[324] => ./Nouvion

[325] => ./Noyon

[326] => ./Oisemont

[327] => ./Oostende

[328] => ./Oosterhout

[329] => ./Oostmalle

[330] => ./Oplade

[331] => ./Orchies

[332] => ./Orval

[333] => ./Ouddorp

[334] => ./Oudenaarde

[335] => ./Overath

[336] => ./Paal

[337] => ./Panningen

[338] => ./Peer

[339] => ./Peronne

[340] => ./Philipville

[341] => ./Picquigny

[342] => ./Piennes

[343] => ./Piesport

[344] => ./Poix-de-Picardie

[345] => ./Poperinge

[346] => ./Profondeville

[347] => ./Prum

[348] => ./Ramet

[349] => ./Ramsgate

[350] => ./Ratingen

[351] => ./Raville

[352] => ./Reims

[353] => ./Remagen

[354] => ./Remich

[355] => ./Remscheid

[356] => ./Rethel

[357] => ./Revin

[358] => ./Rochefort

[359] => ./Rocroi

[360] => ./Roermond

[361] => ./Roermond West

[362] => ./Roisel

[363] => ./Ronse

[364] => ./Roosendaal

[365] => ./Roubaix

[366] => ./Roulers

[367] => ./Roye

[368] => ./Rozoy

[369] => ./Rye

[370] => ./S-Hertogenbosch

[371] => ./Saarburg

[372] => ./Saarlouis

[373] => ./Sains-Richaumont

[374] => ./Sambreville

[375] => ./Samer

[376] => ./Sandwich

[377] => ./Saulty

[378] => ./Schilde

[379] => ./Schleiden

[380] => ./Schweich

[381] => ./Seaford

[382] => ./Sechault

[383] => ./Seclin

[384] => ./Sedan

[385] => ./Sierck-les-Bains

[386] => ./Signy

[387] => ./Sissonne

[388] => ./Sittard

[389] => ./Soignies

[390] => ./Solesmes

[391] => ./Sommepy

[392] => ./Somzee

[393] => ./Spa

[394] => ./Spijkenisse

[395] => ./Spincourt

[396] => ./Spontin

[397] => ./Sprimont

[398] => ./St.Avold

[399] => ./St.Hubert

[400] => ./St.Niklass

[401] => ./St.Omer

[402] => ./St.Pol

[403] => ./St.Quentin

[404] => ./St.Ricquier

[405] => ./St.Truiden

[406] => ./St.Vith

[407] => ./Stadtkyll

[408] => ./Stavelot

[409] => ./Stavenisse

[410] => ./Steenbergen

[411] => ./Stekene

[412] => ./Stellendam

[413] => ./Stenay

[414] => ./Talmas

[415] => ./Temse

[416] => ./Terneuzen

[417] => ./Thionville

[418] => ./Thulin

[419] => ./Tielt

[420] => ./Tienen

[421] => ./Tilburg

[422] => ./Tongeren

[423] => ./Torhout

[424] => ./Tourcoing

[425] => ./Tournai

[426] => ./Trelon

[427] => ./Trier

[428] => ./Tuntange

[429] => ./Turnhout

[430] => ./Unkel

[431] => ./Valenciennes

[432] => ./Valkenswaard

[433] => ./Veere

[434] => ./Veghel

[435] => ./Velbert

[436] => ./Venlo

[437] => ./Verdun

[438] => ./Verviers

[439] => ./Vervins

[440] => ./Veurne

[441] => ./Vianden

[442] => ./Villers-Bretonneux

[443] => ./Vireaux

[444] => ./Virton

[445] => ./Vise

[446] => ./Vitry-En-Artois

[447] => ./Vlissengen

[448] => ./Vohwinkel

[449] => ./Vouziers

[450] => ./Waalwijk

[451] => ./Walcourt

[452] => ./Walsoorden

[453] => ./Waremme

[454] => ./Warmeriville

[455] => ./Waterloo

[456] => ./Watten

[457] => ./Wavre

[458] => ./Weert

[459] => ./Wellin

[460] => ./Westkapelle

[461] => ./Westvoorne

[462] => ./Wetteren

[463] => ./Whitstable

[464] => ./Wickenby

[465] => ./Willemstad

[466] => ./Wiltz

[467] => ./Winchelsea

[468] => ./Wingham

[469] => ./Wissant

[470] => ./Wittlich

[471] => ./Wollersheim

[472] => ./Woodchurch

[473] => ./Wuustwezel

[474] => ./Zandvliet

[475] => ./Zeebrugge

[476] => ./Zelzate

[477] => ./Zemmer

[478] => ./Zerf

[479] => ./Zottegem

[480] => ./Zundert

 

Lenke til kommentar
Videoannonse
Annonse

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...