Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Browser wanting to download....

    Having a problem. In the head of my page, i have a simple line of php code
    PHP Code:
    <?php
    include('/includes/include.php');
    ?>
    When I access the page from my computer at home, everything is fine (except for the parse error, which I am working out).

    I access it from school, it pops up a download dialog box (see attached image)

    Anyone know what the prob is??
    The include file just checks for a cookie, and if the cookie is present, it redirects the browser to a different location.

    Thanks
    BTW, the images colors are not accurate. It saved like that when I saved as gif.
    Attached Thumbnails Attached Thumbnails Browser wanting to download....-load.gif  
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    PHP is not browser or platform dependent. So whether you visit the page at home or at school or at your friends house makes no difference. Only pure client side code is outputted to the browser.

    What file is it trying to download?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That is what is puzzling me. PHP has absolutely nothing to do with the browser. Right after I posted, It quit doing it. Thanks. If I have any further trouble, it will reply to this thread

    Thanks
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Glad I could help. My aura alone usually fixes things.


    And I am sure the problems you were having have nothing to do with the fact that you are from SC.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Code:
    <?php

    $name 
    "Spookster";

    if (
    $name == $name)
    {
    echo 
    "You are a nut!";
    }
    else
    {
    echo 
    "Your not so nutty!";
    }

    ?>
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by SDP2006
    if ($name == $name)
    No wonder PHP refused to work properly if the code in your include file looked like this.

    SCNR, but the self-irony of your post was too tempting...
    De gustibus non est disputandum.

  • #7
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Mordred,

    you're words are too harsh

    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!


  •  

    Posting Permissions

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