Failed to open stream: No such file or directory

I want my add-on to grab data from a file and put it into a database. I put a file into src/addons/AV/AddonName and in my public controller I open it with
PHP:

$file = fopen('file.csv', 'r');
. And controller doesn't see it. What's the scoop? Wrong path? Or I should place a file in some certain place?

Please advise.

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ