I am trying to find the hostname of the sql using wordpress. ie I wanted to print the 'localhost' from
I tried the function home_get_url(), but I got the entire path as shown above. When I was trying with gethostname() I got my PC name. '
Please help. I am a fresher to wordpress.