Including file without include()
Hi,
When using the include() or require() it takes the file and inserts it into the file the function is in. Is there any alternative which allows it to run from the actually location?
I don't want to use frames if i don't have to no inline frames but i may have to.
Busy posted this at 21:20 — 22nd November 2005.
He has: 6,151 posts
Joined: May 2001
If the included (required) file has no display details then the file would just run. If the included (required) file has display properties then include it where you want it to display in your html order
What are you trying to do?
popinsiteads posted this at 18:37 — 24th November 2005.
He has: 51 posts
Joined: Sep 2005
im trying to install this login system on my site called ALS.
I want to include my main page and then the login page below it.
This is an example what I have got:
<?php
include(\"games_raw.php\");
<br>
include(\"login.php\");
?>
It runs fine on my computer but it doesn't work on my friends computers.
Display Details??
Busy posted this at 21:19 — 24th November 2005.
He has: 6,151 posts
Joined: May 2001
I take you are uploading these files to your web host first.
Place something like echo "i'm here"; in the login.php page to see if it is there.
Just a note, if you have session details (ie starting a session on login) that part will have to be above the rest or you'll get errors.
popinsiteads posted this at 20:51 — 27th November 2005.
He has: 51 posts
Joined: Sep 2005
i have got the files uploaded to my host. I've only just started PHP, that's why i used an already made system.
I am going to try more ways before resulting to editing the code.
thanks anyways
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.