Thread: Parked Domains
View Single Post
Old June 26th, 2006, 5:48 PM   #6 (permalink)
twirp
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,853 posts
Gave thanks: 28
Thanked 36 times
I don't know how to use cURL with Cookies yet, but you could put (in the add-on domain directory):
PHP Code:
<?php
$requested_url 
$_SERVER['REQUEST_URI'];
$postedvars count($_POST);
if(
$postedvars!=0){
  
$curlPost '';
  foreach(
$_POST as $key=>$val){
    
$curlPost.= $key.'='.urlencode($val).'&';
  }
  
$curlPost substr($curlPost,0,-1);
}
$ch curl_init();
$curltimeout 5;
curl_setopt($chCURLOPT_URL"http://yourmaindomain.com".$requested_url);
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
curl_setopt ($chCURLOPT_CONNECTTIMEOUT$curltimeout);
if(
$postedvars!=0){
  
curl_setopt($chCURLOPT_POST1);
  
curl_setopt($chCURLOPT_POSTFIELDS$curlPost);
}
$data curl_exec($ch);
curl_close($ch);
echo 
$data;
?>
and put:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L]
in the .htaccess in the directory.
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is offline   Reply With Quote