Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: First time visitor be redricted to a welcome page

  1. #11
    Join Date
    Dec 2008
    Posts
    29
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    There is no way to make it last forever, but you can make it last an amount of days:
    Code:
    $two_months = strtotime('+365 days'); //2 months

    Thank you very very much for all of your help.

  2. #12
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Glad to help.
    Jeremy | jfein.net

  3. #13
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi.

    Found the script using google.

    Is there a way to see the refering url ?

    I'd like to give the user the option to continue to the original url that he was visiting (skip the welcome screen)

    I've tried with the following code, but it doesnt work. I guess its because of the redirect or something?

    PHP Code:
    $ref getenv("HTTP_REFERER");
    echo 
    $ref
    thx

    EDIT:

    btw, any idea on how will the search engines see the page, any negative impact or similar ?

  4. #14
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    This reply is a bit late, and I'm not sure I understand your question.
    Is the problem with getenv()?

    Try: $_SERVER['HTTP_REFERER']
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Tags for this Thread

Bookmarks

Posting Permissions

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