PHP Help
Iamazn Offline
Junior Member
**
Posts: 9
Joined: Jul 2010
Post: #10
RE: PHP Help
(12-06-2010 05:36 AM)MattR Wrote:  It's the path to the file you want relative to where you are currently. Say your structure was this:
  • public_html/
    • forum/
      • global.php
    • site/
      • file.php

You're in file.php, you need to include global.php, the relative path would be this:

Code:
../forum/global.php


You're currently in /site/, ../ means go back a folder, so you go back to /public_html/, then into /forum/, and then global.php

This is the structure:
/ = root
/sub.myforum.net/htdocs/scr.php = script
/myforum.net/htdocs/forum/global.php = Global.php
12-06-2010 02:18 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
PHP Help - Iamazn - 12-05-2010, 12:18 PM
RE: PHP Help - ZiNgA BuRgA - 12-05-2010, 01:35 PM
RE: PHP Help - Iamazn - 12-05-2010, 03:00 PM
RE: PHP Help - ZiNgA BuRgA - 12-05-2010, 03:40 PM
RE: PHP Help - Iamazn - 12-05-2010, 03:53 PM
RE: PHP Help - ZiNgA BuRgA - 12-05-2010, 05:34 PM
RE: PHP Help - MattR - 12-05-2010, 10:35 PM
RE: PHP Help - Iamazn - 12-06-2010, 03:16 AM
RE: PHP Help - MattR - 12-06-2010, 05:36 AM
RE: PHP Help - Iamazn - 12-06-2010 02:18 PM
RE: PHP Help - ZiNgA BuRgA - 12-06-2010, 03:28 PM
RE: PHP Help - Iamazn - 12-08-2010, 12:50 PM
RE: PHP Help - ZiNgA BuRgA - 12-08-2010, 02:27 PM

 Standard Tools
Forum Jump: