How to create and write a file via PHP?
Hi, I figured out that my hosting won't allow me to do a mod-rewrite or any 404 redirect trick. So, I thought creating a seperate file for each of my product would be my last resort.
Anyway, I wish to know how to create a file and write something into it via PHP? I don't know the functions necessary to do so.
To write a file, your basic functions are fopen, fread, and fwrite, read the docs in PHP, they have pretty detail explanations on how to use them: