Find the answer to your Linux question:
Results 1 to 3 of 3
Well I've been running a script on windows and it was perfect. But now, I've moved to Linux (Suse) and I'm having this problem: Whenever I click a link like: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    4

    PHP File Include Problem


    Well I've been running a script on windows and it was perfect. But now, I've moved to Linux (Suse) and I'm having this problem:

    Whenever I click a link like: http://127.0.0.1/index.php?act=search, the link changes but the page doesn't.

    In index.php, it is:
    if (isset($act) && $act=="search")
    {
    include("sub/search.php");
    exit();
    }

    Anybody has any idea why is this happening?

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Code:
    <?php
    $act = $_GET&#91;"act"&#93;;
    
    if &#40;isset&#40;$act&#41; && $act=="search"&#41; &#123;
       include&#40;"sub/search.php"&#41;;
       exit&#40;&#41;;
    &#125;
    ?>
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    4
    thanks, this solved the problem

Posting Permissions

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