stop php from setting the page as an "iframe"
Results 1 to 4 of 4

Thread: stop php from setting the page as an "iframe"

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    1

    stop php from setting the page as an "iframe"

    The following code makes a get request to http://www.google.com without making a redirect but the problem is the page of http://www.google.com appears on the page like an iframe. How can i stop that? Basically hide it/stop it from happening.

    PHP Code:
    <?php
    $curl_handle 
    curl_init();
    curl_setopt$curl_handleCURLOPT_URL'http://www.google.com' );
    curl_setopt$curl_handleCURLOPT_FOLLOWLOCATION0);
    curl_exec$curl_handle ); // Execute the request
    curl_close$curl_handle );
    ?>
    Thanks to anyone who can help.

  2. #2
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,840
    There is mention on the curl_exec manual page about the CURLOPT_RETURNTRANSFER option.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    1
    Quote Originally Posted by Weedpacket View Post
    There is mention on the curl_exec manual page about the CURLOPT_RETURNTRANSFER option.
    Thanks for the reply but that doesn't help me at all.
    If you run the code you will understand what i mean.
    I don't want google.com showing up on my website, i want it completely hidden.
    Thanks for the help.

  4. #4
    Senior Member traq's Avatar
    Join Date
    Jun 2011
    Location
    so.Cal
    Posts
    949
    You need to read the manual page again. The description of the return values is the relevant part.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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