PHP: verschil tussen versies
Uit dotSearch
| Regel 11: | Regel 11: | ||
$newvendor = ucfirst($newvendor); | $newvendor = ucfirst($newvendor); | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | '''Cookies plaatsen''' | ||
| + | <?php | ||
| + | |||
| + | if (isset($_GET["utm_source"])) { | ||
| + | |||
| + | $bron = $_GET["utm_source"]; | ||
| + | |||
| + | $expire=time()+60*60*24*30; | ||
| + | |||
| + | setcookie("utm_source", $bron, $expire); | ||
| + | |||
| + | } | ||
| + | ?> | ||
Versie van 11 feb 2010 om 14:51
Regexen
replace
$domain = preg_replace('/www./', , $domain);
decapitalize
$newvendor = strtolower($words);
$newvendor = ucfirst($newvendor);
Cookies plaatsen
<?php
if (isset($_GET["utm_source"])) {
$bron = $_GET["utm_source"];
$expire=time()+60*60*24*30;
setcookie("utm_source", $bron, $expire);
} ?>