Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: Is it possi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 352 of 441
Post > Topic >>

Re: Is it possible

by "Jim Michaels" <jmichae3@[EMAIL PROTECTED] > Feb 3, 2006 at 05:00 PM

you should post this question to the PHP or ASP group.  PHP has functions 
that can grab a remote page and read it in.
<?php
$url = 'http://www.example.com/redirecting_page.php';

$fp = fopen($url, 'r');

/* Prior to PHP 4.3.0 use $http_response_header
  instead of stream_get_meta_data() */
$meta_data = stream_get_meta_data($fp);
foreach($meta_data['wrapper_data'] as $response) {

 /* Were we redirected? */
 if (substr(strtolower($response), 0, 18) == 'content-location: ') {
   /* update $url with where we were redirected to */
   $url = substr($response, 18);
 }

}
//-------or if this is a non-redirecting page,-------------
//you can put in $url here instead of the string for a more functional
piece 
of code.
$handle = fopen("http://www.example.com/",
"rb");
$page = '';
while (!feof($handle)) {
 $page .= fread($handle, 8192);
}
fclose($handle);
echo $page;  //output the page to the browser
?>

"Prophet" <nope@[EMAIL PROTECTED]
> wrote in message 
news:11dhlirta0satda@[EMAIL PROTECTED]
> Is it possible to display anothe web page on my own web site?  If so how

> would you do this.  I am not planning to steal anything or abuse
copyright 
> in any way shape or form.  I am a reseller and would like to refer the 
> customer to a feature on the wholesalers web site however I do not want 
> the customer to see the reseller's URL (not even within the source
code). 
> The wholesaler says it is all ok for me to use anything on their site. 
I 
> have tried using frames however the source code reveals the wholesalers 
> URL.  I really do not want visitors to see the wholesalers URL.
>
> Thank You.. In advance :)
>
 




 2 Posts in Topic:
Is it possible
"Prophet" <n  2005-07-16 19:41:54 
Re: Is it possible
"Jim Michaels"   2006-02-03 17:00:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:37:49 CDT 2008.