andre3 Posted November 12, 2008 Share Posted November 12, 2008 Hey guys, i was wondering if there is a code that i could use to get the names of files in a particular folder without opening the folder on the server an getting the file names one by one? :-\ Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/ Share on other sites More sharing options...
premiso Posted November 12, 2008 Share Posted November 12, 2008 dir or readdir Check out the above functions. Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-688620 Share on other sites More sharing options...
Mark Baker Posted November 12, 2008 Share Posted November 12, 2008 Don't forget scandir() Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-688700 Share on other sites More sharing options...
andre3 Posted November 13, 2008 Author Share Posted November 13, 2008 yeah ii got it to work thanks Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-689382 Share on other sites More sharing options...
andre3 Posted November 13, 2008 Author Share Posted November 13, 2008 One more thing i cant seem to get, after i search the directory and it show a list of files thats in it, suppose i wawant to write those files into a .txt file how would i go up doing that ? i used file_put_contents("text file path", file names from directory); and it only writes the name of the last file thats in the folder not all of them Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-689387 Share on other sites More sharing options...
andre3 Posted November 13, 2008 Author Share Posted November 13, 2008 i guess this one is impossible Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-689602 Share on other sites More sharing options...
Mark Baker Posted November 13, 2008 Share Posted November 13, 2008 i guess this one is impossible Don't expect people to simply do your work for you Show us what you've done so far, and we might help. Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-689693 Share on other sites More sharing options...
andre3 Posted November 17, 2008 Author Share Posted November 17, 2008 i got it correct, i had the function that writes the file to ther server and data to the file in the while looop, but i tool it out of the while loop and it works peerfect now thanks all Quote Link to comment https://forums.phpfreaks.com/topic/132450-searching-into/#findComment-691842 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.