Sunday, October 18, 2009

Displaying domain name.

Posted on 2:50 AM by programlover









Is it possible to print the name of the domain where a file exists with PHP? I want to upload the file to a website, say websites.com, and when i view the file i want it to just say "websites.com", without writing echo "websites.com";.



Any suggestions on how i should write this?