Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy detect text from iframe tag

    i make a simpl html page with a header.a foter and a iframe tag....its working wel,i can browse this external( which is in iframe tag) site from my site....but i want to show a msg by detecting exernql website's texti need a script which wil search "welcome shojol".....in iframe how to do that??? help me guyz.....

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You don't. An iframe is a client controlled markup tag which allows you to import a document from an alternate location.
    If you want to search something using PHP, you'll need to read the contents of the source, and search from there. You can read the content using file_get_contents if you have allow_url_fopen directive enabled, or you can use curl or sockets to load an external page.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry for late reply ,i was lil bit busy,,,and thanks for your help, im trying with curl :-)


  •  

    Posting Permissions

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