Page 1 of 1

Ask a question about sub-web locate

Posted: Fri Jan 15, 2010 5:06 am
by kelldine
Hi, i am new here.
Recently, i built a website named http://www.pigg.tk, it is a site which uses a script from pligg.com, it is a social directory web site. Now everything goes fine with my site, but i want to add a sub web which may uses a url like media.pigg.tk, and i want to add a name" Media" and a link "media.pigg.tk" pointing to it, and "Media" is better to be placed the same line as "Home" "Top Users""Tag cloud""Live""Groups" in my pigg.tk homepage, so as i can let people go to media.pigg.tk from pigg.tk, please anyone can tell me how to do that?

Note: pigg.tk uses a php script.

Many thanks!

Re: Ask a question about sub-web locate

Posted: Fri Jan 15, 2010 7:43 am
by social_experiment
It seems ( from what i can deduce from your post ) that you have to correct the paths to the file. If you have a file ( fileOne ) within a directory ( directoryOne ) for any other file within directoryOne to access fileOne you use :

Code: Select all

 
<?php
 require 'fileOne.php';
?>
 
If the file is within a directory inside directoryOne, you need to use

Code: Select all

 
<?php
 require '../directoryOne/fileOne.php';
 
This url will help in understanding the concept
http://support.internetconnection.net/T ... aths.shtml