Page 1 of 1

ü, ö, ä and other ... issue

Posted: Thu Feb 12, 2004 7:08 am
by danutz
Hi to all...I'm pretty new to php web programming...I have 2 problems if anyone can help me...btw, tx in advance!

1)
I have a script that runs automaticaly in the admin area of a site when edditing a product...this script must get some infos from DB and generate a HTML file with the name of the product...but the problem is that the products are in German and contains some of those characters posted in the title, and not only those! From here, my explorer cannot run those files and I can't even delete'em without loggin' on to the server in linux to delete'em manually from there...also I cannot make a link to that file cos the comp doesn't understands that...instead of makin' the file name correctly it just inputs some characters like ÷ and some others instead of those in german...

now, that you have a briefing about this, my question is:

Is there any way to replace those characters with english ones automatically? I mean, I cannot parse the txt to find'em cos there are alot of them that might be new to me and I might forget some...is there a function to do that? so instead of ü to be u, ö = o, ä = a and so on!?

2)
now my second problem...I'm trying to make log file to save there all the URLs from which a client cames into my site...so if he clicks on a link from another site, then that site to be saved into my log file. This works great, but only for normal links...but...

if that site (which has the link to mine) has on the link a page which redirects the user through META stuff, then that URL is not saved into my log...it is like the user camed by typping the URL to my page, so directly and not through another website! is there a way to capture this kind of URL???

now, those are my problems atm...any kind of help would be appreciated...tx in advance!

Posted: Thu Feb 12, 2004 7:15 am
by danutz
btw, this is what I use for the second problem of mine posted above:

if (!$HTTP_POST_VARS[redirect])
$this_redirect = $HTTP_REFERER;
else
$this_redirect = $HTTP_POST_VARS[redirect];
$goback=$this_redirect;