Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
real 2 php help
teh following code bellow says that a certain page works, but when i goto that page it doesnt work! is there something wrong with me PHP coding?
for($i=0;$i<30;$i++)
{
for($j=1;$j<25;$j++)
{
$sqlfile="http://hellboundhackers.org/challenges/real2/backups/backup_2004-09-0" . $i . "_" . $j . "00.sql";
$file=fopen($sqlfile,"r");
if(!$file)
{
echo "<h6>DOESNT WORK!";
}
else
echo "<h1>WORKS!!!!";
}
}
?>```
i have redone my file, and this is what i have come up with:
for($i=0;$i<32;$i++)
{
for($j=0;$j<24;$j++)
{
if($i<10)
{
$sqlfile="http://hellboundhackers.org/challenges/real2/backups/backup_2004-09-0" . $i . "_" . $j . "00.sql";
$file=fopen($sqlfile,"r");
$theData=fread($file, filesize($sqlfile));
}
else
{
$sqlfile="http://hellboundhackers.org/challenges/real2/backups/backup_2004-09-" . $i . "_" . $j . "00.sql";
$file=fopen($sqlfile,"r");
$theData=fread($file, filesize($sqlfile));
}
}
}
?>```