Rockonmetal
09-17-2007, 08:51 PM
Ok I've asked this before but is there such thing as a php loader? I've asked this before but I bring it up again because last time people said why... and i'm not asking why I'm asking HOW!
Why i need it:
I have come up with this script and its about 20mb *all php if...else statements... divided with php includes...* if you don't understand i got an example below of how i've made this 20mb...
Page 1 *Main page...*
<?php include("page2.php"); ?>
Page 2 *Grouping of If...Else Statements*
<?php
$a=1;
while($a<=101)
{
echo "<?php include('answers/". $a .".php'); ?>"
$a++;
}
$b=1;
while($b<=100)
{
echo "<?php include('questions/". $b .".php'); ?>"
$b++;
}
?>
Then those files in the includes contain the if...else statements...
What I need something that will load either all the include on page 1 *main page*...
I then was wondering if that there was something that would perform a function when the form on that page is submitted...
Thanks if you have any questions let me know...
Why i need it:
I have come up with this script and its about 20mb *all php if...else statements... divided with php includes...* if you don't understand i got an example below of how i've made this 20mb...
Page 1 *Main page...*
<?php include("page2.php"); ?>
Page 2 *Grouping of If...Else Statements*
<?php
$a=1;
while($a<=101)
{
echo "<?php include('answers/". $a .".php'); ?>"
$a++;
}
$b=1;
while($b<=100)
{
echo "<?php include('questions/". $b .".php'); ?>"
$b++;
}
?>
Then those files in the includes contain the if...else statements...
What I need something that will load either all the include on page 1 *main page*...
I then was wondering if that there was something that would perform a function when the form on that page is submitted...
Thanks if you have any questions let me know...