Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Including a dynamic file

Asked Modified Viewed 1,336 times
R
Ryan Stewart
R
img682.imageshack.us/img682/7469/logo2vod.png

Expect stuff from me soon (:
  • Junior Member, joined since
  • Contributed 42 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

I'm currently writing an infusion for my site to provide groups with a battle system. I also have another infusion which I want to use globally as the group card showing vital data.

Basically i'm trying to include this card on a page on another infusion, however i'm getting an error. Any help is appreciated :)

The code:
include_once(INFUSIONS."cards/index.php?group_id=".$group_id);


The error:
include_once(../../infusions/cards/index.php?group_id=4) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory Line: 26
0 replies

2 posts

N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

Hey Ryan,

I currently don't know of any methods around that error, at least when using like you attempted.

May I recommend using functions instead?

<?php
$op2 = blabla;
$op3 = blabla;
function foo($op1)
{
  global $op2, $op3;
    echo $op1;
    echo $op2;
    echo $op3;
}
?>


Best of luck,
NetriX
0 replies
R
Ryan Stewart
R
img682.imageshack.us/img682/7469/logo2vod.png

Expect stuff from me soon (:
  • Junior Member, joined since
  • Contributed 42 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Nevermind I got it ;)
Turns out I don't need to send the group_id again, and therefore it was generating the error that the file wasn't found for some reason.

Thanks anyway NetriX :)
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
R
R
img682.imageshack.us/img682/7469/logo2vod.png

Expect stuff from me soon (:
  • Junior Member, joined since
  • Contributed 42 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet