View previous topic - View next topic |
Author |
Message |
XMark Guitar playin' black mage
Joined: 30 May 2002 Posts: 870 Location: New Westminster, BC, Canada
|
Posted: Sat Oct 18, 2003 8:25 am Post subject: Recursive PHP? |
[quote] |
|
What would happen if you had two PHP files: filea.php and fileb.php
Now in filea.php is the line
<?php include("fileb.php"); ?>
and in fileb.php is the line
<?php include("filea.php"); ?>
I'd try it myself but I don't want to risk an infinite loop that takes up RPGDX's bandwidth :) _________________ Mark Hall
Abstract Productions
I PLAYS THE MUSIC THAT MAKES THE PEOPLES FALL DOWN!
|
|
Back to top |
|
|
LeoDraco Demon Hunter
Joined: 24 Jun 2003 Posts: 584 Location: Riverside, South Cali
|
Posted: Sat Oct 18, 2003 9:34 pm Post subject: |
[quote] |
|
Er, why would you want to do that? There really isn't a logical reason to do so.
I believe that PHP would eventually time out.
But don't take my word for it. *Reading Rainbow jingle* _________________ "...LeoDraco is a pompus git..." -- Mandrake
Last edited by LeoDraco on Sun Oct 19, 2003 6:23 am; edited 1 time in total
|
|
Back to top |
|
|
Bjorn Demon Hunter
Joined: 29 May 2002 Posts: 1425 Location: Germany
|
Posted: Sun Oct 19, 2003 12:55 am Post subject: |
[quote] |
|
It should have a recursive include limit or something. Just try it, and don't you worry about taking down RPGDX. :-)
And yeah, if it doesn't have an include limit, there would also be the time limit and memory limit to the rescue of the server. Bandwidth is the last thing you need to worry about, because somebody needs to be downloading for bandwidth consumption.
Edit: 500 Internal Server Error on my own Apache/PHP setup.
|
|
Back to top |
|
|
XMark Guitar playin' black mage
Joined: 30 May 2002 Posts: 870 Location: New Westminster, BC, Canada
|
Posted: Sun Oct 19, 2003 3:38 am Post subject: |
[quote] |
|
Well, I didn't actually have any reason to do that, I was just curious. :) _________________ Mark Hall
Abstract Productions
I PLAYS THE MUSIC THAT MAKES THE PEOPLES FALL DOWN!
|
|
Back to top |
|
|