Re: [PHP] filesize question

2013-05-08 Thread tamouse mailing lists
On Tue, May 7, 2013 at 10:16 PM, Curtis Maurand wrote: > find -name *.js -exec removestring.php '{}' \; > > That's how I get the I put file name. I think that I need the if statement > to look at the filesize and make sure that I can open them and they are at > least the size of the string that I'

Re: [PHP] filesize question

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 8:16 AM, Curtis Maurand wrote: > 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 parame

Re: [PHP] filesize question

2013-05-07 Thread ma...@behnke.biz
> Curtis Maurand hat am 7. Mai 2013 um 15:16 geschrieben: > > > 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])); mayve $inputline = fread($inputfile, filesize($

[PHP] filesize question

2013-05-07 Thread Curtis Maurand
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 -- PHP General