need string help...

It is for static page, dynamic page, website, SEO, performance and other web development discussion
ramverma
Posts: 435
Joined: Sat Aug 23, 2014 5:34 pm
Contact:

need string help...

Postby ramverma » Sat Sep 12, 2015 4:29 pm

CODE: SELECT ALL
GLOBAL $loggedInUser;
$loggedInUser = $_SERVER['LOGON_USER'];
$loggedInUser = strtoupper($loggedInUser)//e.g. DOMAINNAME\USERNAME
$loggedInUser = substr($loggedInUser,0,13);


When I add the last line, the code breaks, and I get no value on the web page.
If I omit the last line, I get DOMAINNAME\USERNAME on my web page.

The goal is to remove "DOMAINNAME"

Thanks,
devin


Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 1 guest