Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8009549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:28:58+00:00 2026-06-04T18:28:58+00:00

I have 2 problems. Heres my script….. <?php echo <!DOCTYPE html PUBLIC \-//W3C//DTD XHTML

  • 0

I have 2 problems. Heres my script…..

<?php

   echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">";
echo "<head>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />";
echo "<link href=\"/library/skin/tool_base.css\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />";
echo "<link href=\"/library/skin/default/tool.css\" type=\"text/css\" rel=\"stylesheet\" media=\"all\" />";
echo "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />";
echo "<title>Etudes</title>";
echo "<script type=\"text/javascript\" language=\"JavaScript\" src=\"/library/js/headscripts.js\"></script>";
echo "</head>";
echo "<body>";

echo "<script type=\"text/javascript\" language=\"JavaScript\">";
echo "focus_path = [\"eid\"];";
echo "</script>";

echo "<form id=\"form\" method=\"post\" target='_blank' action=\"www.xxxxx.com" enctype=\"application/x-www-form-urlencoded\">";
echo "<table border=\"0\" class=\"loginform\" summary=\"layout\">";         
echo "<label for=\"eid\">User id</label>";                                      
echo "<input name=\"eid\" id=\"eid\"  type=\"text\" value=\"USERNAME\"/>";                                      
echo "<label for=\"pw\">Password</label>";

$pass1 = "0";
$pass2 = "0";
$pass3 = "0";
$pass4 = "0";

set_time_limit(0);

for($i = 0; $i < 2; $i++)
{
$pass = $pass1.$pass2.$pass3.$pass4;

echo "$pass";

echo "<input name=\"pw\" id=\"pw\"  type=\"password\" value=\"$pass\"/>";

echo "<script language=\"Javascript\" type=\"text/javascript\">";

echo "document.forms[\"form\"].submit();";

echo "</script>";

   $pass4 = $pass4 + 1; 

if($pass4 == 10)
{
    $pass3 = $pass3 + 1;
    $pass4 = 0;
}
if($pass3 == 10)
{
    $pass2 = $pass2 + 1;
    $pass3 = 0;
}
if($pass2 == 10)
{   
    $pass1 = $pass1 + 1;
    $pass2 = 0;
}
if($pass1 == 10)
{
    echo "Fail";
    break;
}
  usleep(10000000);
  flush();
  ob_flush;
}

?>                      
</table>                        
</form>                 

</table>

</body>
</html>

/////////////////////////////////////////////////////////////////

Problem 1) I have tried usleep() and sleep(), it worked a few times at first, executed the
file, then delayed the time, then executed, then delayed, ect. But after the 3rd time it didnt work.

Problem 2) If i login to “www.xxx.com” without the loop, it works just fine, but when i put it in a loop,
e.g(Lets say password is 0002):
Login: USERNAME
Password: 0000

Invalid Login!

Login: USERNAME
Password: 0001

Invalid Login!

Login: USERNAME
Password: 0002

Invalid Login!

..still gives me an invalid Login! Any help would be greatly appreciated 🙂 Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:28:59+00:00Added an answer on June 4, 2026 at 6:28 pm

    Problem 1) I think you are reaching the maximum execution time, a configurable limit that a PHP imposes on scripts. PHP scripts are usually not long lived programs. They are suposed to execute quickly, one pageview, one script, so as a security measure (preventing Denial of Service attacks), scripts that live longer than, say, 60 seconds are simply aborted. Check your php.ini for that configuration value.

    Problem 2) Have you commented out the “submit” part of your script and checked the output?
    I think that your program prints the beginning of the form only once, and then try to print the rest of it 9999 times. Furthermore, it will only work the first time, because if you submit a form, the browser will simply leave your page (and your script) and it will not be able to submit a second time.

    You should use CURL for getting a response from an external site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some problems with a PHP script that calls a Bash script.... in
know nothing about php, but I have this script that reads a folder and
I am building an online article website. I have a php script called view_article.php
I'm newbie in php mysql and google maps v3. I have a problems in
I have a problem here. My Zend_Forms do not render in view script. Via
I am having a little problem here. I have a <script language =JavaScript runat=server>
I have a little problem with javascript form submit issue, here is the script
I have problems with deleting a record from the screen using MSQLI. Here you
I have problems with my keyup binding when cloning an element. Here's the scenario:
So we have this problem that we are trying to figure out. Heres what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.