Jump to content

uploaded.to

Why To Use "filesize"


3 replies to this topic

#1 PepsiMan

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 09 March 2010 - 06:30 AM

Hi ,

I have a Unrar/rar rapidleech

and when I unrar a file bigger than 2 GB

Rapdileech doesn't read it

so I thought about it (I know bit about PHP)

I Knew 2 other ways to get the filesize in Linux 32 servers

1.
exec ('stat -c %s '. escapeshellarg ($somefile)

2.
trim(`stat -c%s $somefile`)


But ,I can't rewrite rapidleech

So , any one can help ???

#2 DanielX_x

    SVN Developer

  • Developer Team
  • PipPipPipPip
  • 418 posts
  • Gender:Male

Posted 11 March 2010 - 08:36 AM

View PostPepsiMan, on 09 March 2010 - 06:30 AM, said:

Hi ,

I have a Unrar/rar rapidleech

and when I unrar a file bigger than 2 GB

Rapdileech doesn't read it

so I thought about it (I know bit about PHP)

I Knew 2 other ways to get the filesize in Linux 32 servers

1.
exec ('stat -c %s '. escapeshellarg ($somefile)

2.
trim(`stat -c%s $somefile`)


But ,I can't rewrite rapidleech

So , any one can help ???

those are not compatible with windows, they require exec command not disabled, they probably require safe mode off, BSD syntax varies, and u won't be able to use any file operation on those files anyway. If you only need to list files, then change .htaccess so it can list files and make a link to files/

I did this once but seeing all those limitations, I just deleted what I did and it was complicated for me, so I won't do it again, but if you know php and have some time, you can achieve it.

Edited by DanielX_x, 11 March 2010 - 08:41 AM.


#3 PepsiMan

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 11 March 2010 - 08:57 AM

actually I did know PHP , but now I have forgotten the most of it

But i didn't understand the .htaccess thing .

#4 DanielX_x

    SVN Developer

  • Developer Team
  • PipPipPipPip
  • 418 posts
  • Gender:Male

Posted 11 March 2010 - 11:08 AM

View PostPepsiMan, on 11 March 2010 - 08:57 AM, said:

actually I did know PHP , but now I have forgotten the most of it

But i didn't understand the .htaccess thing .

The idea was to modify .htaccess file so it allow you to list the files on a new page outside rapidleech with apache but I can't figure out how to modify files to keep rapidleech secure and allow files/ directory to be listed.