User Profile

Collapse

Profile Sidebar

Collapse
susb8383
susb8383
Last Activity: Mar 15 '07, 09:47 PM
Joined: Feb 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • susb8383
    started a topic cURL Redirect with Changing URL
    in PHP

    cURL Redirect with Changing URL

    Hi,

    Is there a way to use cURL to redirect, but have the URL change to the new page?

    I have the following, but the URL remains as that of the original page after the redirect:

    Code:
    <?php 
    $url = "http://www.mydomain.com/test3.php"; 
    $ch = curl_init();    // initialize curl handle 
    curl_setopt($ch, CURLOPT_URL,$url); // set url to post to 
    curl_setopt($ch, CURLOPT_FAILONERROR,
    ...
    See more | Go to post

  • susb8383
    started a topic Redirecting Just Home Page

    Redirecting Just Home Page

    Using htaccess, is there a way to redirect just the home page? So in other words, if someone goes to www.domain1.com , they are redirected to www.domain2.com . However, if someone goes to www.domain1.com/apage.html, they stay on domain1?

    Thanks.
    See more | Go to post

  • susb8383
    replied to Using sendtohost for redirect
    in PHP
    Code:
    <?php 
    /* sendToHost
     * ~~~~~~~~~~
     * Params:
     *   $host      - Just the hostname.  No http:// or
                      /path/to/file.html portions
     *   $method    - get or post, case-insensitive
     *   $path      - The /path/to/file.html part
     *   $data      - The query string, without initial question mark
     *   $useragent - If true, 'MSIE' will be sent as
    ...
    See more | Go to post

    Leave a comment:


  • susb8383
    started a topic Using sendtohost for redirect
    in PHP

    Using sendtohost for redirect

    Hi,
    Very new at PHP...

    I'm trying to use sendtohost to do a redirection to another page, passing it post variables. I see a lot of forum posts elsewhere that say you can do this, but none of them have full examples.

    So, here are my very basic questions.

    If I have page1.php and I'm trying to redirect to page2.php, passing post variables, how exactly do I call the sendtohost function from page1, and...
    See more | Go to post
No activity results to display
Show More
Working...