This is a continuation from Skeleton directory part 1<\/a>.<\/p>\n In my skeleton directory I placed a \/public_html directory containing an index.php file. This ensures that a client’s brand new domain, or in fact any new cPanel account I create, immediately has a home page viewable by whoever seeks that domain in their web browser. I include a little PHP in the web page code, to customize the message to the particular domain.<\/p>\n My index.php file includes:<\/p>\n To dynamically display the domain name used to reach the web page, the HTML BODY of my index.php file contains this PHP code:<\/p>\n When served by the web server, that page will display the new domain name in large H1 heading type, and further down would say, for example: “bigfalafel.com has not set up their web site yet.”<\/p>\n To add a professional touch, I also use the following PHP code in the HTML HEAD:<\/p>\n\n
\n$host<\/span> =<\/span> $_SERVER<\/span>[<\/span>'SERVER_NAME'<\/span>]<\/span>;<\/span>
\n$host_domain<\/span> =<\/span> str_replace<\/span><\/a>(<\/span>"www."<\/span>,<\/span> ""<\/span>,<\/span> $host<\/span>)<\/span>;<\/span>
\necho<\/span> $host_domain<\/span>;<\/span>
\n?><\/span><\/<\/span>h1><\/span>
\n<<\/span>div><\/span>
\n<<\/span>p><<\/span> ?
\n$host<\/span> =<\/span> $_SERVER<\/span>[<\/span>'SERVER_NAME'<\/span>]<\/span>;<\/span>
\n$host_domain<\/span> =<\/span> str_replace<\/span><\/a>(<\/span>"www."<\/span>,<\/span> ""<\/span>,<\/span> $host<\/span>)<\/span>;<\/span>
\necho<\/span> $host_domain<\/span>;<\/span>
\n?><\/span> has not set up their web site yet.<\/<\/span>p><\/<\/span>div><\/span><\/div><\/div>\n