filesize question

From: Date: Tue, 07 May 2013 13:16:10 +0000
Subject: filesize question
Groups: php.general 
Request: Send a blank email to php-general+get-321022@lists.php.net to get a copy of this message
Hello, I'm feeding a filename to a php script on the command line (command line program). I run the following against it: $inputline = fread($inputfile, filesize($argv[1])); I'm getting an error complaining that the second parameter can't be '0' any ideas? thanks, Curtis

« previous php.general (#321022) next »