Change Language without leaving current page
<p>I am trying to change languages but stay on the current page:
i.e:</p>

<p>www.myurl.com/english/aboutus.php</p>

<p>www.myurl.com/german/aboutus.php</p>

<p>www.myurl.com/french/aboutus.php</p>

<p>So only the language directory changes.
I have the following but can't get it to work:</p>

<pre><code>&lt;?php 
$full_url = $_SERVER['FULL_URL'] ;  

$temparray = explode(".com/",$full_url,2); 

$englishtemp = $temparray[0] . ".com/english/" . $temparray[1]; 
$englishlink = "&lt;a href=$englishtemp&gt;&lt;img src=../images/english-flag.jpg&gt;&lt;/a&gt;"; 

echo $englishlink; 
?&gt;
</code></pre>

<p>I get the url to change from '/french/aboutus.php' to '/english' but it doesn't remember the page name 'aboutus.php' and returns to the index page.</p>

<p>Could any one please help?</p>
