View Single Post
Old 07-07-2010, 01:24 PM   #1 (permalink)
Tim Dobson
The Contributor
 
Tim Dobson's Avatar
 
Join Date: Feb 2010
Posts: 69
Thanks: 16
Tim Dobson is on a distinguished road
Calculator includes and reading txt file

Just a little thing im doing to get my experience up. Im trying many different things and i would like to know how to go about this little thing im trying

Iv got index.php in the main directory - uses include/head.php

iv got head.php which is in the includes directory - this reads a text file which is in a location going from main directory Admin/Docs/head.txt

There is nothing wrong with this it reads the file exactly how i want it.

However iv got now in the admin directory index.php

which also includes ../includes/head.php

So the problem i have got is its not seeing it correctly because of the directory location when it reads the head.php the text file location is incorrect reading it as Admin/docs/head.txt and because it is already in the admin location from the admin/index.php it pulls out a file does not exist.

How would i go about fixing this.

Thanks
Tim Dobson is offline  
Reply With Quote