Forum Moderators: coopster
-If there no base target=, or base target is not "_top¦_blank¦_parent¦_self¦_new" then i can use the current_url minus filename at the end, as $current_url + relative path.
I now (should) have the absolute path.
-If there is a base target i use that. (what if it points to another frame?)
to get the base target i use:
preg_match('/<base target="(.*)">/i', $content, $matches);
$basetarget=$matches[1];
I can post my own code, which does not work 100%, i would rater use 'clean' code. So the question is how can i achieve this with php?
I can post what code i have now if needed/asked but my code does not do the job correct.
Thanks andreasfriedrich for your exellent post in [webmasterworld.com...]