Files, Folders, all a bit confusing!
Posted: Thu Aug 13, 2009 7:46 am
I have a little bit of a problem in that i cannot figure out how to create this function. I have a hosting account with over 1000 domains attatched to it
one of them is a forum hosting company i own, which takes up about 200 of those domains with forums.
this script is going to be stored in:
/home/monotoko/public_html/danzaforums.com
what i want it to do is go into: /home/monotoko/public_html
then go into every folder and look for forum.txt
if it has forum.txt, i would then like the script to read it
an example, http://www.thedomainname.com is stored in the folder thefoldername, and has a forum.php file, in it is:
what i would like the script to do is make a list like this:
one of them is a forum hosting company i own, which takes up about 200 of those domains with forums.
this script is going to be stored in:
/home/monotoko/public_html/danzaforums.com
what i want it to do is go into: /home/monotoko/public_html
then go into every folder and look for forum.txt
if it has forum.txt, i would then like the script to read it
an example, http://www.thedomainname.com is stored in the folder thefoldername, and has a forum.php file, in it is:
Code: Select all
<?php
$domain="www.thedomainname.com";
?>Code: Select all
http://www.thedomainname.com is stored in /home/monotoko/public_html/thefoldername