php - How to troubleshoot and get fopen()to work in php5? -
i've searched hard can, , have been stuck on seems such simple issue.
i'm trying use fopen() in php create simple txt file. code follows:
$myfile = fopen("text.txt", "w") or die("not working");
but no matter i've tried won't work.
i use godaddy hosting; plesk on windows.
allow_url_open on. , open_basedir set none.
i've confirmed phpinfo().
i read somewhere perror can used, i've tried using in context , doesn't output anything:
$myfile = fopen("text.txt", "w") or perror("error");
i have display_errors set on.
i'm racking brain on else try. godaddy support useless.
any advise on troubleshooting or else problem based off information helpful.
thanks!
Comments
Post a Comment