Experts help me in code

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

    Experts help me in code

    hello friends i want a code that if the file less than 10 kb then show nothing and if file more than 10 kb show somthing like its size = +10 kb

    #2
    errrrrr why 10kb?
    PHP Code:
    $filename 'somefile.txt';
    $filesize filesize($filename);
    if(
    $filesize>1280)
    {
        echo 
    $filename ': ' $filesize;

    Comment


      #3
      Originally posted by something else View Post
      errrrrr why 10kb?
      PHP Code:
      $filename 'somefile.txt';
      $filesize filesize($filename);
      if(
      $filesize>1280)
      {
          echo 
      $filename ': ' $filesize;

      I think this will work if you increase the filesize
      http://myfacepals.com
      MYFACEPALS SOCIAL NETWORKsigpic

      Comment


        #4
        Originally posted by makvanpor2000 View Post
        I think this will work if you increase the filesize
        lol, are you weighing potatos?
        This'll work perfectly,cuz the function filesize() returns the size of a file in bytes
        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