[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Map-url
Pagina 1 van 1

Map-url

BerichtGeplaatst: 26 feb 2008 11:08
door frizzy

Re: Map-url

BerichtGeplaatst: 26 feb 2008 11:13
door ElbertF

Re: Map-url

BerichtGeplaatst: 26 feb 2008 12:15
door libia

Re: Map-url

BerichtGeplaatst: 26 feb 2008 18:27
door frizzy
Ik haal nu met een scriptje alle URL's van een pagina op. Maar soms heb je met links te maken die internet zijn (<a href="index.php">Home</a> bijvoorbeeld). Nu wil ik dus van de URL die hij nu bezoek (de URL is variabel omdat hij de URL's bezoekt die hij gevonden heeft in eerdere pagina's) de map hebben waar hij instaat.

Even een voorbeeld:

Ik zit op de pagina frank/lelijk.html. Nu staat daar een link:
<a href="banaan.html">Home</a>. Ik heb banaan.html daar al uit gesloopt, maar nu wil ik van banaan.html frank/banaan.html maken. Ik heb nu wel iets met explode in elkaar gekloot, maar als de pagina dan is: frank/ doet hij het niet.

Re: Map-url

BerichtGeplaatst: 26 feb 2008 20:41
door libia
dit wordt heel moeilijk, je moet namelijk de ./ eruit vissen en rekening houden met één of meerdere ../ en en met dead links en met links naar een andere site enzovoort enzovoort ;)

Re: Map-url

BerichtGeplaatst: 26 feb 2008 21:11
door frizzy
Nee, echt? Als het makkelijk was ging ik het niet vragen schat. Maja, ik heb al een plan dus dat ga ik morgen uitproberen

Re: Map-url

BerichtGeplaatst: 26 feb 2008 21:22
door Remi

Re: Map-url

BerichtGeplaatst: 26 feb 2008 21:27
door Derk
Is goed te doen middels explode oid. Heb een keer zoiets gemaakt kan ik me herinneren. Die kon inderdaad met ../ en dergelijke omgaan.

Re: Map-url

BerichtGeplaatst: 26 feb 2008 21:29
door libia
volgensmij moet je voor die ../ helemaal in de mapstructuur gaan zoeken, weet eigenlijk niet eens of dit wel mogelijk is :P

Re: Map-url

BerichtGeplaatst: 26 feb 2008 21:33
door Derk
Je zit op de volgende site:

http://www.vedelaar.nl/map1/map2/map3/map4/
of:
http://www.vedelaar.nl/map1/map2/map3/map4

Maakt niet uit. Nu explode je op /
Nu heb je een array, met aan het begin rommel. Je had eerst http:// eraf kunnen halen. Je kan ook [0] en [1] unsetten. Vervolgens kijk je of de laatste leeg is. zo ja, dan haal je die er ook af (voor geval eerste URL.

Nu moet je er achter komen of de laatste file een map of een file is. Een heel vieze oplossing is kijken of er een . in staat, en of het laatste eind 3 of 4 karakters heeft.

Dan explode je de volgende URL:
../../../../mapnaam/mapnaam/bestand.htm
die explode je op /

foreach door de laatste array.
Iedere keer bij .. doe je de laatste uit de eerste URL unsetten. Houd je niks meer over? alleen het laatst overgebleven vakje behouden. Dan doe je al het andere erachter plempen.

Moet te doen zijn zou ik zo zeggen.

Re: Map-url

BerichtGeplaatst: 27 feb 2008 07:57
door frizzy