...

View Full Version : Fake pages?



b_hole
01-23-2007, 09:18 AM
Hello,

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

kehers
01-23-2007, 11:04 AM
Ur best guess may be htaccess mod_rewrite (http://httpd.apache.org/docs/2.2/misc/rewriteguide.html).

b_hole
01-23-2007, 11:33 AM
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?

mlseim
01-23-2007, 02:48 PM
Using PHP to read someone's HTML page source ...

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum