Is developing a website for a cellphone a totally different world?
How would I detect whether a page is visited from computer or from a cellphone?
I ask this because I see code like below:
if (isset($_SERVER['HTTP_ACCEPT']) &&
(strpos($_SERVER['HTTP_ACCEPT'],'vnd.wap.wml')!==FALSE)
&& (strpos($_SERVER['HTTP_ACCEPT'],'text ml') === FALSE
||
(strpos($_SERVER['HTTP_ACCEPT'],'vnd.wap.wml') <
strpos($_SERVER['HTTP_ACCEPT'],'text ml'))
)) { //cellphone
readfile('index.wml');
} else readfile('index.htm');
How do I port the code into C#?