Web Hosting Talk







View Full Version : Welcome Page...


Saryooo
03-30-2004, 07:24 AM
When I make new hosting account though WHM, I want I show welcome message with email address of owner.
For example If i host xyz.com, A meesage autometically come.

---------------------
Welcome to xyz.com
for more infomation please contact info@xyz.com
---------------------

I know how you set welcome pae.. but not know how email address come autometically.

ReadyRick
03-30-2004, 04:57 PM
Someone posted a link to a PHP script that you can use to plug in all of the data and then send off an email to the client. Try searching for a welcome letter php script.

- Rick

Saryooo
03-31-2004, 02:45 AM
I not need welcome letter. I need welcome Page which autometically copy in new account public_html directory with the name of index.html

P-nut
03-31-2004, 08:12 AM
Look Under Account Functions > Skeleton Directory. That will allow you to create a customized Index page when you create an account.

Saryooo
03-31-2004, 08:50 AM
i know it.. but i want to say what i put there.. which show autometically real domain name and email address of that account.

OsirisLuke
03-31-2004, 09:50 AM
the skeleton directory will do that.....it automatically copies the public_html into the new customers public_html and it stays there like a parked page untill the customer over writes it......it does show their domain name still

Saryooo
03-31-2004, 09:56 AM
Originally posted by OsirisLuke
the skeleton directory will do that.....it automatically copies the public_html into the new customers public_html and it stays there like a parked page untill the customer over writes it......it does show their domain name still

If I make account for xyz.com how it show info@xyz.com on page..
It only copy that page which I have in Skeleton Directory...
BUT I SAY HOW IT SHOW SAME ACCOUNT EMAIL ADDRESS ON IT.
like if i host xyz.com it show info@xyz.com on page and if i hosr abc.com it show info@abc.com on page.

Quickcess
03-31-2004, 11:29 AM
Ok, hope this helps. Maybe PHP gurus will do it different way ;)

1. Create MySQL database that has following fields: user directory on server, domain name, e-mail
2. Create index.php file that will get the variable _SERVER["DOCUMENT_ROOT"] to get to know what directory it's in on the server. The script connects to MySQL Database, compares it against records, gets domain name and e-mail and then displays them.
// You can also do check against SERVER["HOST"] variable instead
3. Put index.php into skeleton directory.
Voila ;)

Another solution - signup script that writes this data after account creation into index.html file that's placed from skeleton directory to your client's directory. Not sure if it works because you have to chmod index.html properly.

Good luck:cool:

Saryooo
04-03-2004, 03:18 AM
thanks for idea , i will work on it