Hello subhash,
Sorry,I did'nt see your post, now only I saw your post and hence the dely in answer,
As you can see in the above code I was trying to get the array output after the curly braces were closed, so I used fopen to open a new file and fwrite within the curly braces of each file listing and directory listing array and then it worked. If you have any doubts in this I will post the corrected code.
...
User Profile
Collapse
-
-
Sending an array ouput to an text file
Hello Friends,
I wrote a function which scans the current working directory and lists out details such as directory/file owner, permission etc. The output of this script can be viewing in the monitor when I give the command print_r which is printed out in a array format.
The problem I facing is I want this output in a text file, but I have tried so many things it is not working I am copying my code below, I need help...
No activity results to display
Show More
Leave a comment: