Forum Moderators: coopster

Message Too Old, No Replies

Subdomains with fopen()?

         

ToxinMan

7:26 pm on Jan 23, 2008 (gmt 0)

10+ Year Member



Hey there guys
I was wondering if anyone knows how to create subdomains like www.toxinman.example.com with fopen()?
heres my code

PHP Code:
$fp = fopen("/home/rickyb/public_html/up/$html_file_name", "w");
fwrite($fp, $new_member_file)
fclose($fp)

Thanks
Ricky

[edited by: jatar_k at 8:11 pm (utc) on Jan. 23, 2008]
[edit reason] please use example.com [/edit]

PHP_Chimp

10:17 pm on Jan 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are various different things that you could try. There have been a fair few thread on the subject. Have a look at -
[google.com...]
As this should give you a load of threads to look through.