ik wil een nieuwere versie van mijn website maken en gebruikers vragen om het te proberen, maar ik wil dezelfde URL
is dit de beste schoonste manier om het te doen?
//code executes if user asks to make the new version the default.
setcookie("newversion", "true", mktime(0,0,0,12,31,2011));
this is the /index.php
if($_COOKIE['newversion'] == "true") {
/**
* load the new version of the site.
*
**/
exit();
} else {
/**
* load the older version of the site.
*
**/
}
ik heb geen tutorials of vragen van dit soort gevonden, dus help alstublieft.