SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    May 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Search in the PHP Files

    I have to search asterisk(*) in the php code of the php files .
    In the html page one text box i will give one value in that and submit form to php page through php page i have to get all filles and entered string have get from the files and display the result in the same php page only
    .Any one give the suggestions plz...

    Thanks in Adv...

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2009
    Posts
    406
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am sorry, but I cannot understand your question, can you please explain everything more clearly?
    Daniel, Helpdesk Leader
    Hosting24.com Web Hosting - First class web hosting services.
    Reseller Hosting - Provide unlimited disk space and bandwidth

  3. #3
    SitePoint Member
    Join Date
    May 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to search asterisk(*) in the php code of the php files .

    I have taken one html page in that one text box.
    I am giving one value in that and submit form to php page.
    in the php page i am getting the entered textbox value.
    i have get all files content if the entered string is there in the files and display the result in the same php page only.
    Any one give the suggestions ..

    Thanks in Adv...

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can get a list of .php files in a directory by using glob('*.php')
    loop them, one by one, and use file_get_contents() to retrieve the contents
    use strpos() on the contents to check for an asterisk

  5. #5
    SitePoint Member
    Join Date
    May 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks and any other ideas in different way


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •