Current location: Hot Scripts Forums » Programming Languages » PHP » Path question


Path question

Reply
  #1 (permalink)  
Old 07-16-05, 03:42 PM
nicpon nicpon is offline
Wannabe Coder
 
Join Date: Apr 2004
Location: Moving
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Path question

I have the following situation:

file in /www/billing/order.php
and inside that file i have code:
Code:
require('includes/top.php');
The folder 'includes' is not in the billing directory but it is at the same level as billing (/www/includes). When i try to access order.php i get an error that the includes directory is missing. The question is how can i call the folder that is outside of the folder from which i make the call for it in this case /www/inclues
??
Reply With Quote
  #2 (permalink)  
Old 07-16-05, 03:47 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Code:
require('../includes/top.php');
Reply With Quote
  #3 (permalink)  
Old 07-16-05, 05:12 PM
nicpon nicpon is offline
Wannabe Coder
 
Join Date: Apr 2004
Location: Moving
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation

Exactly something i was looking for.
Thanks.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoid chaging the path to perl (shebang) on every upload to server uniqueuser Perl 2 04-19-05 02:27 PM
Posting a question / answer on site markcody PHP 2 11-23-04 01:58 PM
[PHP] Array question UmiSal Script Requests 1 04-05-04 01:52 PM
question and answer software jaydifox C/C++ 0 02-21-04 09:26 AM
File upload and path to mysql dalio PHP 0 08-12-03 08:24 AM


All times are GMT -5. The time now is 06:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.