523338 To create a small change-language PHP script

Need to build a small PHP script to place in website for language switching purposes.

The script contains 2 variables:

$find = "/en/"; <<== Must include the two slashes

$replace = "/th/";

The script will read the current URL (as shown in browser's address bar) of the page, find the string "/en/" in the URL, replace it with "/th/", and output as a link.

For example, if the current page's URL is:

[url removed, login to view]

The script will output:

<a href="[url removed, login to view]">

This script will be called before the language image. For example:

<?php include("[url removed, login to view]"); ?><img src="images/[url removed, login to view]"></a>

So the final output will be:

<a href="[url removed, login to view]"><img src="images/[url removed, login to view]"></a>

Beceriler: Her şey Kabul, PHP, Kabuk Betiği

Daha fazlasını gör: create shell script, change language php script, example shell script, url change, small change, small bar, find the language, change url, change language, browser language, shell php image, create website replace, php image href, browser current url, script src, php browser language, shell browser, php src href link, script find address, php current url, href img src link php, address change, script replace, php href link img src, shell script read url

İşveren Hakkında:
( 37 değerlendirme ) Sungai Petani, Malaysia

Proje NO: #2269276


%selectedBids___i_period_sub_7% gün içinde 10%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(111 Değerlendirme)