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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -