file handling through PHP, not drupal