Hi,
i am validating a php website which many php includes, is there any way we can find a line of code from folder of files or from complete website online.
First, you must have access to the source of the php. If it's a linux server you can use grep and search the folders with ease. Not sure how to do it on windows.
Is the subject site on your server? Saying code, you mean php source code?
If the answer to both question is yes, that is not possible. You can only access an output of a php scripts.
If the answer to the second question is no and it is the php output that you want, use file_get_contents and str or preg functions to find text.
Crawling an entire directory is a bit more difficult task. It is a model of search engine spider; you either must have a sitemap or look for link starting at page one.
If the answer to the first question is no, use glob, file_get_contents and str or preg funtions. It is a rather easy task as the files are on your server.
Bookmarks