PHP code error help pls :((

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP code error help pls :((

    PHP Code:
    <?php
    for($c=0;$c=<50;$c++){
    $link='http://site.com/dloadphp?id='.$c;
    $name='files/'.rand(33,55563).'.3gp';
    copy($link,$name); }
    ?>
    Pls masters help me out to fix this its showing error when i execute it (

    Parse error: syntax error, unexpected '<' in /wwwhtml/badgame/index.php on line 2

    #2
    PHP Code:
    <?php 
    for($c=0;$c<=50;$c++){ 
    $link='http://site.com/dloadphp?id='.$c
    $name='files/'.rand(33,55563).'.3gp'
    copy($link,$name); 

    ?>

    Comment


      #3
      The syntax error is here
      PHP Code:
      $c=<50
      Change it to

      PHP Code:
      $c<=50
      So after correcting, the code becomes

      PHP Code:
      <?php 
      for($c=0;$c<=50;$c++){ 
      $link='http://site.com/dloadphp?id='.$c
      $name='files/'.rand(33,55563).'.3gp'
      copy($link,$name); } 
      ?>
      I need some facebook likes, can you please help me
      http://facebook.com/softwarefreakin
      I noticed social media is really powerful
      Well DONE is better than well SAID

      Comment

      Working...
      X