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 4 of 4

Thread: Fake pages?

  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Fake pages?

    Hello,

    I'm trying to think of a way to make the browser think a page exists: lets say the user entered http://www.my_site_domain.com/page_t...sent_exist.php - I want the url to remain that url, but the real page that will shown will be index.php.
    Is it possible?

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Location
    Nigeria
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ur best guess may be htaccess mod_rewrite.

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'll look into it, thanks. I understand there's no way to control it using PHP, right?

    On a different subject - How can I receive a page's source code using PHP?

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Using PHP to read someone's HTML page source ...

    <?php
    $url = "http://www.google.com";
    $data = implode("", file($url));
    echo $data;
    ?>


  •  

    Posting Permissions

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