Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18039

Re: VSCode, Liveserver and Chrome

From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.lang.php
Subject Re: VSCode, Liveserver and Chrome
Followup-To comp.lang.php
Date 2019-08-19 15:03 -0400
Organization The Pitcher Digital Freehold
Message-ID <qjerpc$jpl$1@dont-email.me> (permalink)
References <smnkke9rbapl7oinkak0a8vvll9kpqnvsc@4ax.com> <qj20hf$dhl$1@dont-email.me> <5jojlehmnk4vone4l6k9mv56akrfjrv0rc@4ax.com>

Followups directed to: comp.lang.php

Show all headers | View raw


Call Me Tom wrote:

>  <lew.pitcher@digitalfreehold.ca> wrote:
> 
>>Call Me Tom wrote:
>>
>>> I'm using VS Code for creating my PHP files.  I'm trying to get
>>> liveserver to work with PHP files.It works fine with an HTML file.  I
>>> have installed the live server extension in chrome and the live reload
>>> button is on.  When I go live in VSC all I get in Chrome is a
>>> directory listing. I am using a default XAMPP installation.
>>> 
>>> What is the actual server address that should be entered in Chrome?
>>> Any other suggestions would be appreciated.
>>
>>Apparently, some variation of http://localhost/ or http://127.0.0.1/
>>
>>At least, according to the XAMPP FAQ
> 
> Thanks Lew.  I tried both of those and all I get is a directory
> listing.

From the FAQ (at https://www.apachefriends.org/faq_windows.html)

Where should I place my web content?

    The main directory for all WWW documents is \xampp\htdocs. If you put a
    file "test.html" in this directory, you can access it with the URI
    "http://localhost/test.html".

    And "test.php"? Just use "http://localhost/test.php". A simple
    testscript can be:

    <?php echo 'Hello world'; ?>

    A new subdirectory for your web? Just make a new directory (e.g. "new")
    inside the directory "\xampp\htdocs" (best without whitespaces and only
    ASCII), create a test file in this directory and access it with
    "http://localhost/new/test.php".


HTH
-- 
Lew Pitcher
"In Skills, We Trust"

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

VSCode, Liveserver and Chrome Call Me Tom <noemail@noemail.com> - 2019-08-07 01:18 -0400
  Re: VSCode, Liveserver and Chrome Paul Herber <paul@pherber.com> - 2019-08-07 16:34 +0100
    Re: VSCode, Liveserver and Chrome Call Me Tom <noemail@noemail.com> - 2019-08-07 13:18 -0400
  Re: VSCode, Liveserver and Chrome Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2019-08-14 18:04 -0400
    Re: VSCode, Liveserver and Chrome Call Me Tom <noemail@noemail.com> - 2019-08-18 19:43 -0400
      Re: VSCode, Liveserver and Chrome Jerry Stuckle <jstucklex@attglobal.net> - 2019-08-18 22:49 -0400
        Re: VSCode, Liveserver and Chrome "J.O. Aho" <user@example.net> - 2019-08-19 06:53 +0200
          Re: VSCode, Liveserver and Chrome Call Me Tom <noemail@noemail.com> - 2019-08-19 14:26 -0400
            Re: VSCode, Liveserver and Chrome Ozed machina <ozmachina18@gmail.com> - 2022-06-01 03:42 -0700
              Re: VSCode, Liveserver and Chrome [Random restart of a dead thread by a google group user] "J.O. Aho" <user@example.net> - 2022-06-01 14:26 +0200
      Re: VSCode, Liveserver and Chrome Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2019-08-19 15:03 -0400
      Re: VSCode, Liveserver and Chrome Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2019-08-19 15:10 -0400
        Re: VSCode, Liveserver and Chrome Kristjan Robam <kristjanrobam1983@outlook.com> - 2023-10-14 04:00 -0700

csiph-web