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


Groups > comp.lang.php > #18031 > unrolled thread

VSCode, Liveserver and Chrome

Started byCall Me Tom <noemail@noemail.com>
First post2019-08-07 01:18 -0400
Last post2023-10-14 04:00 -0700
Articles 13 — 7 participants

Back to article view | Back to comp.lang.php


Contents

  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

#18031 — VSCode, Liveserver and Chrome

FromCall Me Tom <noemail@noemail.com>
Date2019-08-07 01:18 -0400
SubjectVSCode, Liveserver and Chrome
Message-ID<smnkke9rbapl7oinkak0a8vvll9kpqnvsc@4ax.com>
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.

[toc] | [next] | [standalone]


#18032

FromPaul Herber <paul@pherber.com>
Date2019-08-07 16:34 +0100
Message-ID<4rrlkepf5nh6ogqoakfbu4ft0qnc71s8b7@news.eternal-september.org>
In reply to#18031
On Wed, 07 Aug 2019 01:18:18 -0400, Call Me Tom <noemail@noemail.com> 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.

Liveserver doesn't seem to have a PHP processor built-in. What is wrong with using
Apache/PHP etc?



-- 
Regards, Paul Herber
http://www.paulherber.co.uk/
      

[toc] | [prev] | [next] | [standalone]


#18033

FromCall Me Tom <noemail@noemail.com>
Date2019-08-07 13:18 -0400
Message-ID<ss1mked49htljj7pfe0l145p9neehovp0h@4ax.com>
In reply to#18032
On Wed, 07 Aug 2019 16:34:53 +0100, Paul Herber <paul@pherber.com>
wrote:

>On Wed, 07 Aug 2019 01:18:18 -0400, Call Me Tom <noemail@noemail.com> 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.
>
>Liveserver doesn't seem to have a PHP processor built-in. What is wrong with using
>Apache/PHP etc?

If you read the message you would see that I am using XAMPP for the
PHP server.

[toc] | [prev] | [next] | [standalone]


#18034

FromLew Pitcher <lew.pitcher@digitalfreehold.ca>
Date2019-08-14 18:04 -0400
Message-ID<qj20hf$dhl$1@dont-email.me>
In reply to#18031
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


-- 
Lew Pitcher
"In Skills, We Trust"

[toc] | [prev] | [next] | [standalone]


#18035

FromCall Me Tom <noemail@noemail.com>
Date2019-08-18 19:43 -0400
Message-ID<5jojlehmnk4vone4l6k9mv56akrfjrv0rc@4ax.com>
In reply to#18034
 <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.

[toc] | [prev] | [next] | [standalone]


#18036

FromJerry Stuckle <jstucklex@attglobal.net>
Date2019-08-18 22:49 -0400
Message-ID<qjd2o8$594$1@jstuckle.eternal-september.org>
In reply to#18035
On 8/18/2019 7:43 PM, 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.
> 

You get a directory listing if you just request a directory and do not 
have a default home page (often index.html) in that directory.

This is an Apache configuration problem and has nothing to do with PHP.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#18037

From"J.O. Aho" <user@example.net>
Date2019-08-19 06:53 +0200
Message-ID<gruoatFk0hvU1@mid.individual.net>
In reply to#18036
On 19/08/2019 04.49, Jerry Stuckle wrote:
> On 8/18/2019 7:43 PM, 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.

First of all, I'm not a XAMPP user, I prefer a OS that comes with simple 
install all php/mariadb/apache.

>>>> 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.
>>
> 
> You get a directory listing if you just request a directory and do not 
> have a default home page (often index.html) in that directory.

At least in the world most used OS, apache comes with a default 
configuration which enables index.php as a default page if the php 
module is loaded (-D PHP).


> This is an Apache configuration problem and has nothing to do with PHP.

Could be that the OP just don't have a index.php but say default.php as 
the starting point of his site in which case the error should be between 
the keyboard and the chair.

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#18038

FromCall Me Tom <noemail@noemail.com>
Date2019-08-19 14:26 -0400
Message-ID<u2qllel7iqv28kdh141busr8orf13q1qc3@4ax.com>
In reply to#18037
On Mon, 19 Aug 2019 06:53:48 +0200, "J.O. Aho" <user@example.net>
wrote:

>On 19/08/2019 04.49, Jerry Stuckle wrote:
>> On 8/18/2019 7:43 PM, 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.
>
>First of all, I'm not a XAMPP user, I prefer a OS that comes with simple 
>install all php/mariadb/apache.
>
>>>>> 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.
>>>
>> 
>> You get a directory listing if you just request a directory and do not 
>> have a default home page (often index.html) in that directory.
>
>At least in the world most used OS, apache comes with a default 
>configuration which enables index.php as a default page if the php 
>module is loaded (-D PHP).
>
>
>> This is an Apache configuration problem and has nothing to do with PHP.
>
>Could be that the OP just don't have a index.php but say default.php as 
>the starting point of his site in which case the error should be between 
>the keyboard and the chair.

Yes, I have alll  these things.  I can run PHP directly from the
browser and I also run without any problems from Netbeans.  It's Live
Server that I couldn't get running in Visual Studio Code.

I posted here because I thought one of the mnany PHP programmers here
might use VSCode as their IDE and could give me a little help with
Live Server.  Because this does not seem to be the case, I will
continue with Netbeans.  Thanks for trying to help.

    

I posted here 

[toc] | [prev] | [next] | [standalone]


#18965

FromOzed machina <ozmachina18@gmail.com>
Date2022-06-01 03:42 -0700
Message-ID<395d536f-370b-42ef-8383-8cb1a2bbbd75n@googlegroups.com>
In reply to#18038
On Monday, August 19, 2019 at 2:26:37 PM UTC-4, Call Me Tom wrote:
> On Mon, 19 Aug 2019 06:53:48 +0200, "J.O. Aho" <us...@example.net> 
> wrote:
> >On 19/08/2019 04.49, Jerry Stuckle wrote: 
> >> On 8/18/2019 7:43 PM, Call Me Tom wrote: 
> >>>   <lew.p...@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. 
> > 
> >First of all, I'm not a XAMPP user, I prefer a OS that comes with simple 
> >install all php/mariadb/apache. 
> > 
> >>>>> 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. 
> >>> 
> >> 
> >> You get a directory listing if you just request a directory and do not 
> >> have a default home page (often index.html) in that directory. 
> > 
> >At least in the world most used OS, apache comes with a default 
> >configuration which enables index.php as a default page if the php 
> >module is loaded (-D PHP). 
> > 
> > 
> >> This is an Apache configuration problem and has nothing to do with PHP. 
> > 
> >Could be that the OP just don't have a index.php but say default.php as 
> >the starting point of his site in which case the error should be between 
> >the keyboard and the chair.
> Yes, I have alll these things. I can run PHP directly from the 
> browser and I also run without any problems from Netbeans. It's Live 
> Server that I couldn't get running in Visual Studio Code. 
> 
> I posted here because I thought one of the mnany PHP programmers here 
> might use VSCode as their IDE and could give me a little help with 
> Live Server. Because this does not seem to be the case, I will 
> continue with Netbeans. Thanks for trying to help. 
> 
> 
> 
> I posted here

Were you able to get this working?

[toc] | [prev] | [next] | [standalone]


#18966 — Re: VSCode, Liveserver and Chrome [Random restart of a dead thread by a google group user]

From"J.O. Aho" <user@example.net>
Date2022-06-01 14:26 +0200
SubjectRe: VSCode, Liveserver and Chrome [Random restart of a dead thread by a google group user]
Message-ID<jfp471F1dqnU1@mid.individual.net>
In reply to#18965
On 01/06/2022 12.42, Ozed machina wrote:
> On Monday, August 19, 2019 at 2:26:37 PM UTC-4, Call Me Tom wrote:
>> On Mon, 19 Aug 2019 06:53:48 +0200, "J.O. Aho" <us...@example.net>
>> wrote:
>>> On 19/08/2019 04.49, Jerry Stuckle wrote:
>>>> On 8/18/2019 7:43 PM, Call Me Tom wrote:
>>>>>    <lew.p...@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.
>>>
>>> First of all, I'm not a XAMPP user, I prefer a OS that comes with simple
>>> install all php/mariadb/apache.
>>>
>>>>>>> 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.
>>>>>
>>>>
>>>> You get a directory listing if you just request a directory and do not
>>>> have a default home page (often index.html) in that directory.
>>>
>>> At least in the world most used OS, apache comes with a default
>>> configuration which enables index.php as a default page if the php
>>> module is loaded (-D PHP).
>>>
>>>
>>>> This is an Apache configuration problem and has nothing to do with PHP.
>>>
>>> Could be that the OP just don't have a index.php but say default.php as
>>> the starting point of his site in which case the error should be between
>>> the keyboard and the chair.
>> Yes, I have alll these things. I can run PHP directly from the
>> browser and I also run without any problems from Netbeans. It's Live
>> Server that I couldn't get running in Visual Studio Code.
>>
>> I posted here because I thought one of the mnany PHP programmers here
>> might use VSCode as their IDE and could give me a little help with
>> Live Server. Because this does not seem to be the case, I will
>> continue with Netbeans. Thanks for trying to help.
>>
>>
>>
>> I posted here
> 
> Were you able to get this working?

For issues with Live Stream visit:
https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

For issue with Apache config ask your question at:
alt.apache.configuration

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#18039

FromLew Pitcher <lew.pitcher@digitalfreehold.ca>
Date2019-08-19 15:03 -0400
Message-ID<qjerpc$jpl$1@dont-email.me>
In reply to#18035
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"

[toc] | [prev] | [next] | [standalone]


#18040

FromLew Pitcher <lew.pitcher@digitalfreehold.ca>
Date2019-08-19 15:10 -0400
Message-ID<qjes6q$jpl$2@dont-email.me>
In reply to#18035
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.

See other post.
Plus, you might also look at the faq question

"What are "Automatic start pages" for the WWW directories?"
    The standard filename for the Apache function "DirectoryIndex" is
    "index.html" or "index.php". Every time you are just browsing to a
    folder (e.g. "http://localhost/xampp/"), and Apache can find such a
    file, Apache is displaying this file instead of a directory listing.

Note that last line

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

[toc] | [prev] | [next] | [standalone]


#19519

FromKristjan Robam <kristjanrobam1983@outlook.com>
Date2023-10-14 04:00 -0700
Message-ID<4e97bb8d-c0f7-454e-818e-f9b251e58cc5n@googlegroups.com>
In reply to#18040
Check out:

futureplacewheretobetogether.medianewsonline.com
futuremeetupplace.medianewsonline.com
futurechatplace.medianewsonline.com
gettingtoknowyourfutureplace.medianewsonline.com
thegettogetherplace.medianewsonline.com
themeetupplace.medianewsonline.com
gettingtoknowyourfuturehusband.medianewsonline.com
gettingtogether.medianewsonline.com
gettingknownnewpeople.medianewsonline.com
forthosewhofeellonely.medianewsonline.com
forlonelypeopletogettogether.medianewsonline.com
lonelypeoplegettingtogetherplace.medianewsonline.com
meetupingforlonelyones.medianewsonline.com
meetupingforthelonely.myartsonline.com
meetupingforthelonelyones.medianewsonline.com
gettingtogetherplaceforthelonely.medianewsonline.com
lonelypeoplemeetupplace.medianewsonline.com
gettintogether.web1337.net
forgettingtogether.10001mb.com
gettingtogether.10001mb.com

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


On Monday, August 19, 2019 at 10:10:25 PM UTC+3, Lew Pitcher wrote:
> Call Me Tom wrote: 
> 
> > <lew.p...@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.
> See other post. 
> Plus, you might also look at the faq question 
> 
> "What are "Automatic start pages" for the WWW directories?" 
> The standard filename for the Apache function "DirectoryIndex" is 
> "index.html" or "index.php". Every time you are just browsing to a 
> folder (e.g. "http://localhost/xampp/"), and Apache can find such a 
> file, Apache is displaying this file instead of a directory listing. 
> 
> Note that last line 
> 
> HTH
> -- 
> Lew Pitcher 
> "In Skills, We Trust"

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web