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


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

why php echo does not show up in HTML?

Started bysteve nospam <steve.nospamm@gmail.com>
First post2013-05-24 01:08 -0700
Last post2023-07-11 22:22 -0700
Articles 4 on this page of 44 — 16 participants

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


Contents

  why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 01:08 -0700
    Re: why php echo does not show up in HTML? "Andy" <andy@NOSPAMmanyplay.com> - 2013-05-24 09:50 +0100
      Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 09:25 -0400
    Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 01:53 -0700
      Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 01:57 -0700
        Re: why php echo does not show up in HTML? Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-24 22:25 +0000
    Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 02:06 -0700
      Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 06:20 -0700
        Re: why php echo does not show up in HTML? Tim Streater <timstreater@greenbee.net> - 2013-05-24 14:40 +0100
          Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 09:55 -0400
            Re: why php echo does not show up in HTML? Tim Streater <timstreater@greenbee.net> - 2013-05-24 16:47 +0100
              Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 12:07 -0400
                Re: why php echo does not show up in HTML? Tim Streater <timstreater@greenbee.net> - 2013-05-24 18:04 +0100
                  Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 13:30 -0400
              Re: why php echo does not show up in HTML? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-24 22:32 +0200
          Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 07:19 -0700
            Re: why php echo does not show up in HTML? Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-05-24 15:02 +0000
              Re: why php echo does not show up in HTML? Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-24 22:37 +0000
        Re: why php echo does not show up in HTML? The Natural Philosopher <tnp@invalid.invalid> - 2013-05-24 15:00 +0100
          Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 07:20 -0700
            Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 10:35 -0400
            Re: why php echo does not show up in HTML? The Natural Philosopher <tnp@invalid.invalid> - 2013-05-24 16:59 +0100
          Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 10:34 -0400
        Re: why php echo does not show up in HTML? "Peter H. Coffin" <hellsop@ninehells.com> - 2013-05-24 10:51 -0500
        Re: why php echo does not show up in HTML? Richard Yates <richard@yatesguitar.com> - 2013-05-26 07:02 -0700
      Re: why php echo does not show up in HTML? "J.O. Aho" <user@example.net> - 2013-05-24 20:26 +0200
        Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 15:34 -0400
    Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 09:35 -0400
      Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 07:14 -0700
        Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 10:38 -0400
          Re: why php echo does not show up in HTML? steve nospam <steve.nospamm@gmail.com> - 2013-05-24 07:53 -0700
            Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 11:06 -0400
            Re: why php echo does not show up in HTML? Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-05-24 15:18 +0000
              Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-24 12:04 -0400
              Re: why php echo does not show up in HTML? gordonb.aykca@burditt.org (Gordon Burditt) - 2013-05-24 22:59 -0500
                Re: why php echo does not show up in HTML? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-25 09:20 +0200
                Re: why php echo does not show up in HTML? Jerry Stuckle <jstucklex@attglobal.net> - 2013-05-25 09:22 -0400
            Re: why php echo does not show up in HTML? Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-24 22:49 +0000
              Re: why php echo does not show up in HTML? Scott Johnson <noonehome@chalupasworld.com> - 2013-05-24 17:06 -0700
        Re: why php echo does not show up in HTML? Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-05-24 15:12 +0000
        Re: why php echo does not show up in HTML? Richard Yates <richard@yatesguitar.com> - 2013-05-26 07:13 -0700
    Re: why php echo does not show up in HTML? yousafali3949@gmail.com - 2017-07-16 07:14 -0700
      Re: why php echo does not show up in HTML? Mark Lloyd <not@mail.invalid> - 2017-07-16 09:55 -0500
    Re: why php echo does not show up in HTML? V <vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvva@hotmail.com> - 2023-07-11 22:22 -0700

Page 3 of 3 — ← Prev page 1 2 [3]


#9657

FromRichard Yates <richard@yatesguitar.com>
Date2013-05-26 07:13 -0700
Message-ID<9r54q8p9u6clnma15hnl5ajvp24sgb291j@4ax.com>
In reply to#9584
On Fri, 24 May 2013 07:14:21 -0700 (PDT), steve nospam
<steve.nospamm@gmail.com> wrote:

>
>> Your best bet is to simply change the files you need to include PHP code
>> in to a .php extension and fix the links on your site.  For external
>> links, configure your web server to do a permanent redirect from the old
>> page to the new (see your web server configuration for more information
>> on how to do this).
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
>I can't do this. I need to include common html code to every html file
>I have. This means I have to change the extension  of 1000's of html
>files to .php and therefore any outside links and any google searches
>will be broken now.

1. A careful search-and-replace can change thousands of links in
seconds. If you really have thousands of html FILES (not just internal
links) that need extension changes, that could be tougher. How do you
end up with thousands of html files and then need to add php to all of
them? (Seems pretty unlikely, frankly.)

2. Use a redirect page for index.html and a few others that may have
outside links.

3. Google will find you again.

>May be I should have done this at first, but too late now to change
>index.htm to index.php.



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


#17546

Fromyousafali3949@gmail.com
Date2017-07-16 07:14 -0700
Message-ID<58254822-f07e-4a8f-ba09-3454696e3c96@googlegroups.com>
In reply to#9561
hello guys! i want to ask you something .i m new in website develpment..i know html a little bit..for pass two days i tried to add php code into html file which i created simply on notepad.here s the format..
<html>
<body>
<h1>HELP ME</h1>
<?php
echo "hello";
?>
</bdoy>
</html>
  


but php coding is not shown by my browser..this html file locate on my  desktop.please help me ..thanks in advance..

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


#17547

FromMark Lloyd <not@mail.invalid>
Date2017-07-16 09:55 -0500
Message-ID<F7LaB.191072$qL3.73523@fx34.iad>
In reply to#17546
On 07/16/2017 09:14 AM, yousafali3949@gmail.com wrote:
> hello guys! i want to ask you something .i m new in website develpment..i know html a little bit..for pass two days i tried to add php code into html file which i created simply on notepad.here s the format..
> <html>
> <body>
> <h1>HELP ME</h1>
> <?php
> echo "hello";
> ?>
> </bdoy>
> </html>
>    
> 
> 
> but php coding is not shown by my browser..this html file locate on my  desktop.please help me ..thanks in advance..
> 

Did you remember to give the filename an extension of ".php" rather than 
".html"? Also, the PHP code has to be interpreted by a web server.

I have an Apache server set up on one of my computers, but have also 
gotten PHP to act as a server.

php -S <IP>:8800 -t <DIR>

where <IP> is the IP address of the machine with your code on it and 
<DIR> is the location of your PHP file.

Then you can access it with <IP>/<FILENAME>.php from a browser.

-- 
Mark Lloyd
http://notstupid.us/

"The last Christian died on the cross." [Friedrich Nietzsche]

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


#19489

FromV <vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvva@hotmail.com>
Date2023-07-11 22:22 -0700
Message-ID<8df3c642-8190-4228-b519-ee85b6828597n@googlegroups.com>
In reply to#9561
Tere härra Steve. Kuidas seis on, 0 või 5.......? Annan Teile vaba mikkri, võite rääkida kõigest muust kah. Võid rääkida täielikult suu puhtaks. Kõigest asjalikust ja huvitavast..............  Kuulan suure huviga........


🤨🤨🤨🤨🤨🤨🤨🤨

😄😄😄😄😄😄😄😄😄😄😄😄😄😄😄😄

🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂🙂

On Friday, May 24, 2013 at 11:08:54 AM UTC+3, steve nospam wrote:
> newbie. 
> 
> could someone explain why this does not work? 
> 
> <!DOCTYPE html> 
> <html> 
> <body> 
> <p>before 
> 
> <?php echo "do you see this?"; ?> 
> 
> <p>after 
> </body> 
> </html> 
> 
> I spend 2 hrs and tried everything and read many things, but message 
> in echo does not show on the browser. I upload this to the web server. 
> I also have local web server running. Both support php. I see no error 
> in the access log file and no error in the php error log file. So the 
> page is bring loaded OK by the web server. But I do not see the echo. 
> What Ami doing wrong? 
> 
> cheers, 
> steve

[toc] | [prev] | [standalone]


Page 3 of 3 — ← Prev page 1 2 [3]

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


csiph-web