Devam Ediyor

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ün: create shell script, change language php script, example shell script, small change, small bar, find 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, address change, script replace, shell script read url, current url browser, src php, php script change address

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

Proje NO: #2269276

Seçilen:

0 gün içinde 10$ USD
(111 Değerlendirme)
6.5