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!
Ask a question about sub-web locate
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Ask a question about sub-web locate
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 :
If the file is within a directory inside directoryOne, you need to use
This url will help in understanding the concept
http://support.internetconnection.net/T ... aths.shtml
Code: Select all
<?php
require 'fileOne.php';
?>
Code: Select all
<?php
require '../directoryOne/fileOne.php';
http://support.internetconnection.net/T ... aths.shtml
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering