#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0

    Pop up stoping me from opening a project


    hello

    I am using windows 8 OS and have downloaded xampp and text editor note pad++. I am getting an error in the form of a popup when I open a project in internet explorer which has occurs most of the time. When I am not prompted with the pop up I can double click on the file to open it in my browser and then select Internet Explorer which worked at first.

    In describing the pop up it reads:

    View Downloads Windows Internet Explorer.

    View and track your downloads.

    Name: index.php

    location: Do you want to save or open this file.

    Open and save.

    Clear list and close.

    After consulting technical support it was suggested to uninstall and reinstall both xampp and note pad ++. Having done so. Then problem returning . Not sure why this is happening. Asking two things.

    Has this ever happened to anyone else and what can I do to eliminate or work with this pop up. If there is tutorial is available. Thank you Ralph.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    You are viewing your file incorrectly. You are asking your browser to open index.php. It has zero knowledge of such a file type, so it triggers a download for you to save the file.

    To view this file correctly, it must be placed in the wwwroot (or similar) directory of your webserver setup, and viewed through that server. If all is running locally on the same computer, and index.php is in the root directory, the address http://127.0.0.1/ should work just fine. If it does not fetch the preferred file, then PHP is not installed/configured correctly and/or index.php is not defined as a default file, and you will need to add index.php after the /
    He who knows not and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - follow him
  4. #3
  5. Mad Scientist
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2007
    Location
    North Yorkshire, UK
    Posts
    3,661
    Rep Power
    4123
    Sometimes a webserver misconfiguration also sends the content-disposition header for an attachment, causing the browser to prompt the user for download.

    When viewing your client side output, try using firefox and get yourself the following plugins for it

    firebug
    live http headers
    web developer toolbar

    also very helpful:

    *firephp (and the associated php library - allows console logging in firebugs console from both the initial http request and subsequent ajax calls)

    *measure it

    *colorzilla - gives eyedroper colour picker and CSS gradient generator

    Then you can properly debug what's going on. For example you can open the live http headers plugin, then request a web page; you'll see the request header (what your browser sent to the server) and the response header (what the sevrer said back)...and if you have external elements like css, js, images etc you'll see those too
    I said I didn't like ORM!!! <?php $this->model->update($this->request->resources[0])->set($this->request->getData())->getData('count'); ?>

    PDO vs mysql_* functions: Find a Migration Guide Here

    [ Xeneco - T'interweb Development ] - [ Are you a Help Vampire? ] - [ Read The manual! ] - [ W3 methods - GET, POST, etc ] - [ Web Design Hell ]
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,969
    Rep Power
    374
    i have wamp installed, and in the system tray icon, i can right click it and go to the "root" directory and then place files there.

    in the browser as other have said you just need to do: http://localhost/ and then the path i.e. newfolder/newfilename.php etc..
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0

    pop up stopping me from opening a project


    Re: Triple_Nothing

    I am new to php. Just made a root folder under htdocs called phpsols. Under phpsols another folder called includes. I have 4 other projects in phpslos folder. One titled index.php. I am editing the coding in each folder in order to open up the web site up index.php. When I try opening up index.php in the broswer that's when I get the pop up. I guess have not creating the proper path from the root folder and the folder called includes. But out side of this project. I've created one other in the phpsols folder. Which opens up in my browser by typing in localhost/phpsols/one/ Sorry for any inconveniences and you most likely may not have the time to spoon feed me php. As a beginner this is as far as I got. Thank you Ralph.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    If there is an index.php in your phpsols folder, do you get the pop-up when trying to view this address?
    http://127.0.0.1/phpsols

    As far as your root directory, that is your htdocs folder, so to access a folder within that, you will need to add it to the address.
    He who knows not and knows not he knows not: he is a fool - shun him. He who knows not and knows he knows not: he is simple - teach him. He who knows and knows not he knows: he is asleep - wake him. He who knows and knows he knows: he is wise - follow him

IMN logo majestic logo threadwatch logo seochat tools logo