Mobile Safari is a very capable browser, and it can handle my website as it is perfectly. However, there are a few elements on my page that could be optimized for browsing u
$_SERVER['HTTP_USER_AGENT']
That will give you the user-agent string back which you can compare to mobile safari.
p.s. http://wurfl.sourceforge.net/ WURFL may help you determine which UAs you want.