FILE LEVEL MANIPULATION IN PHP

Comments

Comments are closed.

The `fopen()`/`fclose()` functions in PHP aren't used very often, but are hugely useful if you want to store temporary data as presented. Great resource!

Would have enjoyed a deeper dive into the security concerns around using these mechanisms with user input, though.

enas hasan at 23:35 on 4 Aug 2016

Was ok.

Chris Brown at 01:15 on 5 Aug 2016

I really struggle with giving such a low rating to a talk vs just saying nothing, and yet I believe in the value of providing honest feedback.

I believe this talk had more potential than it delivered. The abstract was promising; but the content wasn't strong enough to support a 45-minute slot.

Some starting points for ways in which this talk could be improved include spending time expanding on:
- the various file-related PHP functions available, best practices for using them (and why use one vs another),
- explanation of why the subdirectory+manyFiles approach was selected instead of writing to a flat-file (like CSV) (the reasons may be self-evident to some, but perhaps not to all)
- as well as more in depth emphasis on discussing pertinent sanitization methods and why choose one vs the other.

One could then perhaps augment it further by discussing some of the popular filesystem composer packages with code examples to show how the same actions could be handled using those packages.

I confess that I had hoped to come away from the talk with a handful of nuggets including ways to improve what I do when coding for file manipulation as well as some important reminders about potential gotchas ... perhaps with supporting case-studies so I could wrap my head around applying the knowledge.
All I took away from this talk was being made aware of the "w+" (instead of just "w") parameter with fopen(). Good to know, but had hoped for more.