Toon posts:

[PHP]TLD script

Pagina: 1
Acties:
  • 38 views sinds 30-01-2008

Verwijderd

Topicstarter
Voor degene die willen achterhalen uit welk land de bezoekers van hun site komen...

PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<?
$ip = explode('.', gethostbyaddr($REMOTE_ADDR));
$tld = $ip[3];

    if ($tld == "ac"){
        $land = "Ascension";
    }
    elseif ($tld == "ad"){
        $land = "Andorra";
    }
    elseif ($tld == "ad"){
        $land = "Andorra";
    }
    elseif ($tld == "ae"){
        $land = "Verenigde Arabische Emiraten";
    }
    elseif ($tld == "af"){
        $land = "Afghanistan";
    }
    elseif ($tld == "ag"){
        $land = "Antigua en Barbuda";
    }
    elseif ($tld == "ai"){
        $land = "Anguilla";
    }
    elseif ($tld == "al"){
        $land = "Albanië";
    }
    elseif ($tld == "am"){
        $land = "Armenië";
    }
    elseif ($tld == "an"){
        $land = "Nederlandse Antillen";
    }
    elseif ($tld == "ao"){
        $land = "Angola";
    }
    elseif ($tld == "aq"){
        $land = "Antarctica";
    }
    elseif ($tld == "ar"){
        $land = "Argentinië";
    }
    elseif ($tld == "as"){
        $land = "Amerikaans Samoa";
    }
    elseif ($tld == "at"){
        $land = "Oostenrijk";
    }
    elseif ($tld == "au"){
        $land = "Australië";
    }
    elseif ($tld == "aw"){
        $land = "Aruba";
    }
    elseif ($tld == "az"){
        $land = "Azerbeidzjan";
    }
    elseif ($tld == "ba"){
        $land = "Bosnië-Herzegovina";
    }
    elseif ($tld == "bb"){
        $land = "Barbados";
    }
    elseif ($tld == "bd"){
        $land = "Bangladesh";
    }
    elseif ($tld == "be"){
        $land = "België";
    }
    elseif ($tld == "bf"){
        $land = "Burkina Faso";
    }
    elseif ($tld == "bg"){
        $land = "Bulgarije";
    }
    elseif ($tld == "bh"){
        $land = "Bahrein";
    }
    elseif ($tld == "bi"){
        $land = "Burundi";
    }
    elseif ($tld == "bj"){
        $land = "Benin";
    }
    elseif ($tld == "bm"){
        $land = "Bermuda";
    }
    elseif ($tld == "bn"){
        $land = "Brunei";
    }
    elseif ($tld == "bo"){
        $land = "Bolivia";
    }
    elseif ($tld == "br"){
        $land = "Brazilië";
    }
    elseif ($tld == "bs"){
        $land = "Bahama's";
    }
    elseif ($tld == "bt"){
        $land = "Bhutan";
    }
    elseif ($tld == "bv"){
        $land = "Bouvet";
    }
    elseif ($tld == "bw"){
        $land = "Botswana";
    }
    elseif ($tld == "by"){
        $land = "Wit-Rusland";
    }
    elseif ($tld == "bz"){
        $land = "Belize";
    }
    elseif ($tld == "ca"){
        $land = "Canada";
    }
    elseif ($tld == "cc"){
        $land = "Cocos (Keeling) Eilanden";
    }
    elseif ($tld == "cd"){
        $land = "Democratische Republiek Congo (Congo-Kinshasa)";
    }
    elseif ($tld == "cf"){
        $land = "Centraal-Afrikaanse Republiek";
    }
    elseif ($tld == "cg"){
        $land = "Republiek Congo (Congo-Brazzaville)";
    }
    elseif ($tld == "ch"){
        $land = "Zwitserland";
    }
    elseif ($tld == "ci"){
        $land = "Ivoorkust";
    }
    elseif ($tld == "ck"){
        $land = "Cookeilanden";
    }
    elseif ($tld == "cl"){
        $land = "Chili";
    }
    elseif ($tld == "cm"){
        $land = "Kameroen";
    }
    elseif ($tld == "cn"){
        $land = "China";
    }
    elseif ($tld == "cr"){
        $land = "Costa Rica";
    }
    elseif ($tld == "cu"){
        $land = "Cuba";
    }
    elseif ($tld == "cv"){
        $land = "Kaapverdië";
    }
    elseif ($tld == "cx"){
        $land = "Christmaseiland";
    }
    elseif ($tld == "cy"){
        $land = "Cyprus";
    }
    elseif ($tld == "cz"){
        $land = "Tsjechië";
    }
    elseif ($tld == "de"){
        $land = "Duitsland";
    }
    elseif ($tld == "dj"){
        $land = "Djibouti";
    }
    elseif ($tld == "dk"){
        $land = "Denemarken";
    }
    elseif ($tld == "dm"){
        $land = "Dominica";
    }
    elseif ($tld == "do"){
        $land = "Dominicaanse Republiek";
    }
    elseif ($tld == "dz"){
        $land = "Algerije";
    }
    elseif ($tld == "ec"){
        $land = "Ecuador";
    }
    elseif ($tld == "ee"){
        $land = "Estland";
    }
    elseif ($tld == "eg"){
        $land = "Egypte";
    }
    elseif ($tld == "eh"){
        $land = "Westelijke Sahara";
    }
    elseif ($tld == "er"){
        $land = "Eritrea";
    }
    elseif ($tld == "es"){
        $land = "Spanje";
    }
    elseif ($tld == "et"){
        $land = "Ethiopië";
    }
    elseif ($tld == "eu"){
        $land = "Europese Unie";
    }
    elseif ($tld == "fi"){
        $land = "Finland";
    }
    elseif ($tld == "fj"){
        $land = "Fiji";
    }
    elseif ($tld == "fk"){
        $land = "Falklandeilanden";
    }
    elseif ($tld == "fm"){
        $land = "Micronesië";
    }
    elseif ($tld == "fo"){
        $land = "Faeröer-eilanden";
    }
    elseif ($tld == "fr"){
        $land = "Frankrijk";
    }
    elseif ($tld == "ga"){
        $land = "Gabon";
    }
    elseif ($tld == "gd"){
        $land = "Grenada";
    }
    elseif ($tld == "ge"){
        $land = "Georgië";
    }
    elseif ($tld == "gf"){
        $land = "Frans-Guyana";
    }
    elseif ($tld == "gg"){
        $land = "Guernsey";
    }
    elseif ($tld == "gh"){
        $land = "Ghana";
    }
    elseif ($tld == "gi"){
        $land = "Gibraltar";
    }
    elseif ($tld == "gl"){
        $land = "Groenland";
    }
    elseif ($tld == "gm"){
        $land = "Gambia";
    }
    elseif ($tld == "gn"){
        $land = "Guinea";
    }
    elseif ($tld == "gp"){
        $land = "Guadeloupe";
    }
    elseif ($tld == "gq"){
        $land = "Equatoriaal Guinea";
    }
    elseif ($tld == "gr"){
        $land = "Griekenland";
    }
    elseif ($tld == "gs"){
        $land = "Zuid-Georgië en de Zuidelijke Sandwicheilanden";
    }
    elseif ($tld == "gt"){
        $land = "Guatemala";
    }
    elseif ($tld == "gu"){
        $land = "Guam";
    }
    elseif ($tld == "gw"){
        $land = "Guinee-Bissau";
    }
    elseif ($tld == "gy"){
        $land = "Guyana";
    }
    elseif ($tld == "hk"){
        $land = "Hongkong";
    }
    elseif ($tld == "hm"){
        $land = "Heard- en McDonaldeilanden";
    }
    elseif ($tld == "hn"){
        $land = "Honduras";
    }
    elseif ($tld == "hr"){
        $land = "Kroatië";
    }
    elseif ($tld == "ht"){
        $land = "Haïti";
    }
    elseif ($tld == "hu"){
        $land = "Hongarije";
    }
    elseif ($tld == "id"){
        $land = "Indonesië";
    }
    elseif ($tld == "ie"){
        $land = "Ierland";
    }
    elseif ($tld == "il"){
        $land = "Israël";
    }
    elseif ($tld == "im"){
        $land = "Isle of Man";
    }
    elseif ($tld == "in"){
        $land = "India";
    }
    elseif ($tld == "io"){
        $land = "Brits Indische Oceaan Territorium";
    }
    elseif ($tld == "iq"){
        $land = "Irak";
    }
    elseif ($tld == "ir"){
        $land = "Iran";
    }
    elseif ($tld == "is"){
        $land = "IJsland";
    }
    elseif ($tld == "it"){
        $land = "Italië";
    }
    elseif ($tld == "je"){
        $land = "Jersey";
    }
    elseif ($tld == "jm"){
        $land = "Jamaica";
    }
    elseif ($tld == "jo"){
        $land = "Jordanië";
    }
    elseif ($tld == "jp"){
        $land = "Japan";
    }
    elseif ($tld == "ke"){
        $land = "Kenya";
    }
    elseif ($tld == "kg"){
        $land = "Kirgizië";
    }
    elseif ($tld == "kh"){
        $land = "Cambodja";
    }
    elseif ($tld == "ki"){
        $land = "Kiribati";
    }
    elseif ($tld == "km"){
        $land = "Comoren";
    }
    elseif ($tld == "kn"){
        $land = "Saint Kitts en Nevis";
    }
    elseif ($tld == "kp"){
        $land = "Noord-Korea";
    }
    elseif ($tld == "kr"){
        $land = "Zuid-Korea";
    }
    elseif ($tld == "kw"){
        $land = "Koeweit";
    }
    elseif ($tld == "ky"){
        $land = "Cayman Islands";
    }
    elseif ($tld == "kz"){
        $land = "Kazachstan";
    }
    elseif ($tld == "la"){
        $land = "Laos";
    }
    elseif ($tld == "lb"){
        $land = "Libanon";
    }
    elseif ($tld == "lc"){
        $land = "Saint Lucia";
    }
    elseif ($tld == "li"){
        $land = "Liechtenstein";
    }


De rest in het volgende bericht...

Verwijderd

Topicstarter
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
elseif ($tld == "lk"){
        $land = "Sri Lanka";
    }
    elseif ($tld == "lr"){
        $land = "Liberia";
    }
    elseif ($tld == "ls"){
        $land = "Lesotho";
    }
    elseif ($tld == "lt"){
        $land = "Litouwen";
    }
    elseif ($tld == "lu"){
        $land = "Luxemburg";
    }
    elseif ($tld == "lv"){
        $land = "Letland";
    }
    elseif ($tld == "ly"){
        $land = "Libië";
    }
    elseif ($tld == "ma"){
        $land = "Marokko";
    }
    elseif ($tld == "mc"){
        $land = "Monaco";
    }
    elseif ($tld == "md"){
        $land = "Moldavië";
    }
    elseif ($tld == "mg"){
        $land = "Madagaskar";
    }
    elseif ($tld == "mh"){
        $land = "Marshalleilanden";
    }
    elseif ($tld == "mk"){
        $land = "Macedonië";
    }
    elseif ($tld == "ml"){
        $land = "Mali";
    }
    elseif ($tld == "mm"){
        $land = "Myanmar (Birma)";
    }
    elseif ($tld == "mn"){
        $land = "Mongolië";
    }
    elseif ($tld == "mo"){
        $land = "Macau";
    }
    elseif ($tld == "mp"){
        $land == "Noordelijke Marianen";
    }
    elseif ($tld == "mq"){
        $land = "Martinique";
    }
    elseif ($tld == "mr"){
        $land = "Mauritanië";
    }
    elseif ($tld == "ms"){
        $land = "Montserrat";
    }
    elseif ($tld == "mt"){
        $land = "Malta";
    }
    elseif ($tld == "mu"){
        $land = "Mauritius";
    }
    elseif ($tld == "mv"){
        $land = "Maldiven";
    }
    elseif ($tld == "mw"){
        $land = "Malawi";
    }
    elseif ($tld == "mx"){
        $land = "Mexico";
    }
    elseif ($tld == "my"){
        $land = "Maleisië";
    }
    elseif ($tld == "mz"){
        $land = "Mozambique";
    }
    elseif ($tld == "na"){
        $land = "Namibië";
    }
    elseif ($tld == "nc"){
        $land = "Nieuw-Caledonië";
    }
    elseif ($tld == "ne"){
        $land = "Republiek Niger";
    }
    elseif ($tld == "nf"){
        $land = "Norfolk Island";
    }
    elseif ($tld == "ng"){
        $land = "Nigeria";
    }
    elseif ($tld == "ni"){
        $land = "Nicaragua";
    }
    elseif ($tld == "nl"){
        $land = "Nederland";
    }
    elseif ($tld == "no"){
        $land = "Noorwegen";
    }
    elseif ($tld == "np"){
        $land = "Nepal";
    }
    elseif ($tld == "nr"){
        $land = "Nauru";
    }
    elseif ($tld == "nu"){
        $land = "Niue";
    }
    elseif ($tld == "nz"){
        $land = "Nieuw Zeeland";
    }
    elseif ($tld == "om"){
        $land = "Oman";
    }
    elseif ($tld == "pa"){
        $land = "Panama";
    }
    elseif ($tld == "pe"){
        $land = "Peru";
    }
    elseif ($tld == "pf"){
        $land = "Frans Polynesië";
    }
    elseif ($tld == "pg"){
        $land = "Papua Nieuw Guinea";
    }
    elseif ($tld == "ph"){
        $land = "Filippijnen";
    }
    elseif ($tld == "pk"){
        $land = "Pakistan";
    }
    elseif ($tld == "pl"){
        $land = "Polen";
    }
    elseif ($tld == "pm"){
        $land = "Saint-Pierre en Miquelon";
    }
    elseif ($tld == "pn"){
        $land = "Pitcairn";
    }
    elseif ($tld == "pr"){
        $land = "Puerto Rico";
    }
    elseif ($tld == "ps"){
        $land = "Palestijnse Gebieden";
    }
    elseif ($tld == "pt"){
        $land = "Portugal";
    }
    elseif ($tld == "pw"){
        $land = "Palau";
    }
    elseif ($tld == "py"){
        $land = "Paraguay";
    }
    elseif ($tld == "qa"){
        $land = "Qatar";
    }
    elseif ($tld == "re"){
        $land = "Réunion";
    }
    elseif ($tld == "ro"){
        $land = "Roemenië";
    }
    elseif ($tld == "ru"){
        $land = "Rusland";
    }
    elseif ($tld == "rw"){
        $land = "Rwanda";
    }
    elseif ($tld == "sa"){
        $land = "Saudi-Arabië";
    }
    elseif ($tld == "sb"){
        $land = "Solomoneilanden";
    }
    elseif ($tld == "sc"){
        $land = "Seychellen";
    }
    elseif ($tld == "sd"){
        $land = "Sudan";
    }
    elseif ($tld == "se"){
        $land = "Zweden";
    }
    elseif ($tld == "sg"){
        $land = "Singapore";
    }
    elseif ($tld == "sh"){
        $land = "St. Helena";
    }
    elseif ($tld == "si"){
        $land = "Slovenië";
    }
    elseif ($tld == "sj"){
        $land = "Svalbard en Jan Mayen";
    }
    elseif ($tld == "sk"){
        $land = "Slowakije";
    }
    elseif ($tld == "sl"){
        $land = "Sierra Leone";
    }
    elseif ($tld == "sm"){
        $land = "San Marino";
    }
    elseif ($tld == "sn"){
        $land = "Senegal";
    }
    elseif ($tld == "so"){
        $land = "Somalië";
    }
    elseif ($tld == "sr"){
        $land = "Suriname";
    }
    elseif ($tld == "st"){
        $land = "São Tomé en Principe";
    }
    elseif ($tld == "su"){
        $land = "voormalige Sovjet-Unie";
    }
    elseif ($tld == "sv"){
        $land = "El Salvador";
    }
    elseif ($tld == "sy"){
        $land = "Syrië";
    }
    elseif ($tld == "sz"){
        $land = "Swaziland";
    }
    elseif ($tld == "tc"){
        $land = "Turks- en Caicoseilanden";
    }
    elseif ($tld == "td"){
        $land = "Tsjaad";
    }
    elseif ($tld == "tf"){
        $land = "Franse Zuidelijke Gebieden";
    }
    elseif ($tld == "tg"){
        $land = "Togo";
    }
    elseif ($tld == "th"){
        $land = "Thailand";
    }
    elseif ($tld == "tj"){
        $land = "Tadzjikistan";
    }
    elseif ($tld == "tk"){
        $land = "Tokelau";
    }
    elseif ($tld == "tm"){
        $land = "Turkmenistan";
    }
    elseif ($tld == "tn"){
        $land = "Tunesië";
    }
    elseif ($tld == "to"){
        $land = "Tonga";
    }
    elseif ($tld == "tp"){
        $land = "Oost-Timor";
    }
    elseif ($tld == "tr"){
        $land = "Turkije";
    }
    elseif ($tld == "tt"){
        $land = "Trinidad en Tobago";
    }
    elseif ($tld == "tv"){
        $land = "Tuvalu";
    }
    elseif ($tld == "tw"){
        $land = "Taiwan";
    }
    elseif ($tld == "tz"){
        $land = "Tanzania";
    }
    elseif ($tld == "ua"){
        $land = "Oekraïne";
    }
    elseif ($tld == "ug"){
        $land = "Uganda";
    }
    elseif ($tld == "uk"){
        $land = "Verenigd Koninkrijk";
    }
    elseif ($tld == "um"){
        $land = "US Minor Outlying Islands";
    }
    elseif ($tld == "us"){
        $land = "Verenigde Staten";
    }
    elseif ($tld == "uy"){
        $land = "Uruguay";
    }
    elseif ($tld == "uz"){
        $land = "Oezbekistan";
    }
    elseif ($tld == "va"){
        $land = "Vaticaanstad";
    }
    elseif ($tld == "vc"){
        $land = "Saint Vincent en de Grenadines";
    }
    elseif ($tld == "ve"){
        $land = "Venezuela";
    }
    elseif ($tld == "vg"){
        $land = "Britse Maagdeneilanden";
    }
    elseif ($tld == "vi"){
        $land = "Amerikaanse Maagdeneilanden";
    }
    elseif ($tld == "vn"){
        $land = "Vietnam";
    }
    elseif ($tld == "vu"){
        $land = "Vanuatu";
    }
    elseif ($tld == "wf"){
        $land = "Wallis en Futuna";
    }
    elseif ($tld == "ws"){
        $land = "West-Samoa";
    }
    elseif ($tld == "ye"){
        $land = "Jemen";
    }
    elseif ($tld == "yt"){
        $land = "Mayotte";
    }
    elseif ($tld == "yu"){
        $land = "voormalig Joegoslavië (nu Servië en Montenegro)";
    }
    elseif ($tld == "za"){
        $land = "Zuid-Afrika";
    }
    elseif ($tld == "zm"){
        $land = "Zambia";
    }
    elseif ($tld == "zr"){
        $land = "voormalig Zaïre (nu Democratische Republiek Congo)";
    }
    elseif ($tld == "zw"){
        $land = "Zimbabwe";
    }
    elseif ($tld == "aero"){
        $land = "Luchttransport-gerelateerd";
    }
    elseif ($tld == "biz"){
        $land = "Businesses";
    }
    elseif ($tld == "com"){
        $land = "Commercieel";
    }
    elseif ($tld == "coop"){
        $land = "Cooperatief";
    }
    elseif ($tld == "edu"){
        $land = "Amerikaanse instellingen voor hoger onderwijs";
    }
    elseif ($tld == "gov"){
        $land = "Amerikaanse instellingen van de federale overheid";
    }
    elseif ($tld == "info"){
        $land = "Informatief";
    }
    elseif ($tld == "int"){
        $land = "Internationale organisaties";
    }
    elseif ($tld == "mil"){
        $land = "Amerikaanse krijgsmacht";
    }
    elseif ($tld == "museum"){
        $land = "Musea";
    }
    elseif ($tld == "name"){
        $land = "Individueel persoon";
    }
    elseif ($tld == "net"){
        $land = "Netwerk";
    }
    elseif ($tld == "org"){
        $land = "Non-profit organisatie";
    }
    elseif ($tld == "pro"){
        $land = "Beroepen";
    }
    else $land = "Onbekend";
?>


Veel plezier ermee.... :)

  • Koeniepoenie
  • Registratie: Oktober 2003
  • Laatst online: 18-05 10:29
Alvast een kleine tip: gebruik arrays!
PHP:
1
2
3
4
5
6
7
8
9
$landen = array('nl' => 'Nederland', 'kz' => 'Kazachstan'); // etc
$ip = explode('.', gethostbyaddr($_SERVER['REMOTE_ADDR']));
$tld = $ip[3]; 
if (array_key_exists($tld, $landen)) {
  $land = $landen[$tld];
}
else {
  $land = "onbekend";
}


edit:
Wat is je vraag nu eigenlijk?

[ Voor 51% gewijzigd door Koeniepoenie op 22-11-2004 20:25 ]

Parse error: syntax error, unexpected GOT_USER in https://gathering.tweakers.net on line 1337


  • PrisonerOfPain
  • Registratie: Januari 2003
  • Laatst online: 07-04 13:41
Een hostname bestaat natuurlijk niet altijd uit 4 gedeeltes, gebruik end(). Daarbij dat de gemiddelde /14 bezoeker dit wel kan, eigenlijk :)

Verwijderd

Topicstarter
Geen vraag, slechts een handreiking... Was al eeuwen opzoek naar zo iets en kon het nooit vinden. Denk dat er meer mensen met zoiets zitten, dus vandaar...

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 19-05 21:24

NMe

Quia Ego Sic Dico.

En zelfs als je geen arrays gebruikt, gebruik dan op zijn minst een switch/case statement. Dit staat nogal rommelig en is veel typewerk...

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 08:53

Creepy

Tactical Espionage Splatterer

Aardig van je maar ik mis hier een vraag, of een discussie punt :P
Mocht je nog een vraag hebben, of iets om over te discussieren laat het dan even weten via de mail, dan zet ik dit topic weer open. Het is hier namelijk geen script uitwissel form ;)

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney

Pagina: 1

Dit topic is gesloten.