How to use Xampp to view my php files locally?

Discussion in 'PHP' started by jeremyread, Jul 23, 2007.

  1. #1
    Hi, I've instaled xampp on my pc. What should I type on my browser to view my php files?

    I can't seem to figure out a way or a path to load those files.

    Assume that my files are on the desktop, what url will that be?
    Do I have to move them into specific sub folders inside the c:Xampp\ ? If yes, then lets say the files are in c:\xampp\london\bridge.php ,so what url should I type in the browser?

    Thank you.
     
    jeremyread, Jul 23, 2007 IP
  2. adsblog

    adsblog Active Member

    Messages:
    659
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    70
    #2
    you should put php files on this address :
    c:\program files\xampp\htdocs
    and type : http://localhost on browser to view files .
     
    adsblog, Jul 23, 2007 IP
  3. killerj

    killerj Active Member

    Messages:
    765
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    95
    #3
    xampp doesn't install under program files directory as default. thats where most of our general approach fails :p. c:\xampp\ is the directoty you must be looking for ..
    open a xampp control center and start the apache server
    open a web broswer and type in http://localhost/xampp
    if all is right , you will find the configurations , including PHP , you can choose between php 4 and 5 as well.
    to manually configure your php , you must head to C:\xampp\php\php.ini
    good luck :)
     
    killerj, Jul 23, 2007 IP
  4. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Also remember that if you don't want to have to go through manually starting the Apache and MySQL servers each time, each of the appropriate subdirectories have an 'install_service' batch file that will set them up to run automatically for you.
     
    TwistMyArm, Jul 24, 2007 IP