PHP not writing to files on windows server -


i have windows server 2008 standard edition. i'm trying execute simple command can later write admin logs on files. info ain't writing on files or creating file if doesn't exist. , page isn't issuing , warnings or errors windows permission.

<?php  $file=fopen("1.txt","a"); fwrite($file,"hello"); ?> 

any ?

try find out if there error opening file without relying on php's error reporting:

$file = fopen("1.txt","a") or die("error opening file: " . print_r(error_get_last())); 

secondly, if you're not getting errors on command line, make sure php set display them all. check out this question helpful tips on that.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -