including files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

including files

Post by Luke »

I need to include a root file in a subdirectory file. I tried this...

Code: Select all

include("../functions.php");
and I tried this

Code: Select all

include("http://www.domain.com/functions.php");
Both throw errors. How do I include it?
The file I am including it into is like this...
/admin/file.php
and the file that is included is like
/functions.php

It's making me mad.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

This question isn't much different than your other post:


viewtopic.php?p=211253&highlight=#211253
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

yes... I guess you're right... but I never came back to that thread and didn't see the new posts... I'll try what it said.

I dont even remember what I ended up doing about that. I think I just abandoned the project lol.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Locked
Locked