Click here to Skip to main content
15,905,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem with setting path to default public directory :
My directory Structure is :-


public html/ department / file1.php

public html/link.php



Now my current working directory is : public html/ department /

and i need a file (link.php) from public directory.So how shall i use include function in setting path to public html ?

Pls if you can help me by ,giving a script and not just a function for setting path to public html to call file from public html inside department directory.
Posted

1 solution

PHP
require('../link.php');
Should do the trick... I think ;)

Danny
 
Share this answer
 
Comments
[no name] 25-Jul-12 13:06pm    
Thanks a lot.
Yes It does a good job.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900