Re: [PHP] files created with mkdir and open(file,"w+) are owned by nobody

2001-05-07 Thread tk
the owner of the files i believe will be hte user running the webserver since the webdserver itself is making the files. apache by defauly runs as nobody:nobody if you want to change this i think php has a chown funciton or you can run your webserver as a different user name/group Ryan Hilton

[PHP] help with fgets

2001-05-07 Thread tk
hi. i'm trying to read in a text file line by line into an array. i've got the following code: $i = 0; while(!feof ($fp)){ $buffer = trim(fgets($fp, 4096)); $photos[i] = $buffer; $i++; } fclose($fp); when i echo $buffer to the screen it prints out hte content of hte file line by line