Page 1 of 1

file creation error

Posted: Fri Dec 16, 2011 1:50 am
by Abha
hi I have written the following line in my code to create a file and write data in it but, unable to do the same

Code: Select all

	@ $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt",'ab');
i am getting an error...unable to create file permission denied...

i am working on windows vista...with ntfs file system...

please help!

Re: file creation error

Posted: Fri Dec 16, 2011 11:41 am
by twinedev
What do you have $DOCUMENT_ROOT defined as? Are you meaning to use $_SERVER['DOCUMENT_ROOT'] ?

-Greg