Add php code into html for php5
July 3rd, 2008 — adminAddType application/x-httpd-php5 .html .htm .php
AddHandler application/x-httpd-php5 .html .htm .php
AddType application/x-httpd-php5 .html .htm .php
AddHandler application/x-httpd-php5 .html .htm .php
<?php
$hotel=” How to study PHP “;
$hotel= trim($hotel);
$array=explode(” “, $hotel);
$hotel=implode(“-”, $array);
echo ($hotel);
?>
Php test Navigation engine laguage
< ?php echo $_SERVER["HTTP_USER_AGENT"]; ?>
Php test Syetem lang
< ?php echo $_SERVER["HTTP_ACCEPT_LANGUAGE"]; ?>
Continue reading “Php test Navigation engine laguage, and Syetem language”
Open init.php, between
$db->SetFetchMode(ADODB_FETCH_ASSOC);
read_config($db);
add MySQL_query(“SET NAMES ‘latin1′”);
let them becomes: Continue reading “Disordered Chinese Characters in Phpld”
can build many web sites, with one web host, one site with one different domain, just using php, it can make you very happy, save your money.
$arrays=array(
’www.money.com’=>’money/index.html’,
’www.insurance.com’=>’insurance/index.html’,
’www.car.com’=>’car/index.html’,
’www.travel.com’=>’travel/index.html’,
’127.0.0.1’=>’forum/index.php’,
);
$url = $arrays[$_SERVER[’HTTP_HOST’]];
Header(â€Location: $urlâ€);
?> Continue reading “Using php to control many domains withing one web host”
If you want to make more money and profit from your affiliate links, you need to display them in different way. Don’t use the default link generated by your affiliate program script. Instead, hide it by using PHP file.