filesize

Compiling a 6GB site

Hi this morning i moved a .net website from our local server to live(not pre-complied). when i go to the url the sites hosted on the browser starts loading the site and has been doing this for the last hour. I presumed it is compiling the site and its just taking a while because of the size of the site. Is there any way to check if this ...

Calculate the total space consumption of specific files in unix terminal

I have a folder containing .tcb and .tch files. I need to know what the size of all .tcb files together, respectively of all .tch files is. I did like this: 1) I created a temp folder and then: mv *tch temp 2) and then: du -sk temp I found the command in the Internet and wikipedia says this: "du (abbreviated from disk usage) is a ...

filesize from a String

hello! how can i get the "filesize" from a string in php? I put the string in a mysql database as a blob and i need to store the size of the blob. My solution was to create a temp file and put the string into the temp file. now i can get the filesize from the "string". but that solution is not good... greetings ...

perl - get filesize with -s

I am trying to find filesize using -s operator. I looks like this: my $filesz = -s $filename I tried lots of various way but it can not get this size. However, If I give static content instead of filename, it works fine For exa: $filesz = -s "/tmp/abc.txt" This works fine. I tried adding " in filename, it didn't work. I removed \n fr...

Uploading images with PHP and hitting the script memory limit.

I am trying to upload a JPG image using a PHP script, but the image is keeps causing my script to time out and die giving this error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2136 bytes) in image.php on line 38 How can I prevent the upload from taking place if the image is too big, or have thi...

In coldfusion how can I find the filesize of a linked file and use that as an alt attribute

I have a large list with icons linking to pdf and msword files. I'd like to get the filesize in kb of the linked file then use that as the alt attribute on the image. The generated code would look something like this. Description of file <a href="file1.pdf"><img src="pdficon.gif" alt="27.6 kb" /></a> <a href="file1.doc"><img src="wordi...

SQL Server differential backup file size smaller than previous one ??

Hey, I have a production system running on an SQL Server 2008 DBMS, in Full recovery mode. I take a full backup each day at midnight, a log backup every two hours, and a differential backup every 6 hours (06:00, 12:00, 18:00, but not midnight as the full is taken then). In recent days however I've noticed that the diff backup filesize...

php file upload size question

I know you can control the size of uploads in PHP using $_FILES['userfile']['size'] > XXX My question I suppose is performance related. When you upload a file, my understanding is the whole file gets uploaded to a temporary location, and then you have access to $_FILES What happens if a user attempts to upload a 10gb file? (as an exa...

PHP upload_max_filesize

How can you set upload_max_filesize to no limit? Could you say upload_max_filesize = -1 (As you can with other things)? ...

Validate allowed filesize from user input like files to save in local database

Hello, I can not allow my user to save a 6 GB video in the sqlite database. Can I not really? Well all freedom to the user not? Should I protect the user from himself? Where do I draw the border? 1 mb? ...

PHP filesize reporting old size

The following code is part of a PHP web-service I've written. It takes some uploaded Base64 data, decodes it, and appends it to a file. This all works fine. The problem is that when I read the file size after the append operation I get the size the file was before the append operation. $fileOut = fopen($filepath.$filename, "ab") fwri...

C# Get file size on disk

var length = new System.IO.FileInfo(path).Length; This gives the logical size of the file, not the size on the disk. I wish to get the size on the disk in C# (preferably without interop) of a file as given by Windows Explorer. Should give the correct size including for: Compressed file Sparse file Fragmented file ...

php get the KB size of an image

i've been googleing but all i get is getimagesize and filesize. getimagesize dosent get the KB size just width and height which is not what im looking for. filesize give me the message Warning: filesize() [function.filesize]: stat failed for the file in question is 51kb .jpg file $imgsize=filesize("http://localhost/projects/site/schwe...

What is the "normal" filesize for an app?

Hi there My app compiles to about 80mb. I was under the impression this was quite large. However it does have video content, high resolution images and we're charging ₤3.99 for it on the App store. What would be "large" for an app? For instance, would you say 80mb was large? What would you say the limit is (realistically). Thank you v...

How to get the file size of a remotely stored image? (php)

Let's say we have an image file, stored in a remote server (for example, let's take this image), how can we determine (in PHP code) it's file size? If the file was on server, we would have used filesize (see here), but this wouldn't work on a remote file (see here). The other alternative is to check for the "Content-Length", but I beli...

Compiling on XP makes resulting EXE file larger

Compiling the source code for Fossil on Windows XP SP3, along with OpenSSL v1.0.0a for HTTPS support, results in a 2618KB EXE file. I am using GCC v4.5.1 from nuwen.net's MinGW distro. If I run "strip -s fossil.exe" the size goes down to 2177KB. What's odd is if I compile the same Fossil source on a Windows 7 box, I get a 2397KB EXE fil...

determing file object size before using file object

I am attempting to determine the size of a downloaded file in python before parsing and manipulating it with BeautifulSoup. (I intend to update to ElementTree soon, but having briefly played with it, it does not solve the problem I am posing here, as far as I can see). import urllib2, BeautifulSoup query = 'http://myexample.file.com/fil...

Can GZip compression (via .net) increase file size?

I keep track of the original size of the files that I'm compressing using .Net's GZipStream class, and it seems like the file that I thought I was compressing has increased in size. Is that possible? This is how I'm doing the compression: Byte[] bytes = GetFileBytes(file); using (FileStream fileStream = new FileStream("Zipped.gz", Fil...

jquery tablesorter and filesizes

Hi all, I'm currently trying to implement jquery tablesorter and one of my columns is filesizes, I've found a snippet of code for this, however I keep getting errors. If anyone could help me out that'd be great. jQuery TableSorter: http://tablesorter.com/ jQuery TableSorter Filesize code: http://groups.google.com/group/jquery-en/brow...

Iphone App - Largest File size you can download without using WiFi?

If I try to download an app that is lets say 100 MB it will not allow me to do it on my phone. Or if I am not connected to a WiFi. Does anyone know where they cut that off? Like at 30 MB or something you have to be connect to WiFi? Thanks ...