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


Groups > comp.lang.php > #7860

Re: Using echo to run separate PHP script from HTML

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "Peter H. Coffin" <hellsop@ninehells.com>
Newsgroups comp.lang.php
Subject Re: Using echo to run separate PHP script from HTML
Date Wed, 19 Dec 2012 14:32:56 -0600
Organization A noiseless patient Spider
Lines 30
Message-ID <slrnkd493o.4ja.hellsop@nibelheim.ninehells.com> (permalink)
References <kasc1f$m0s$1@dont-email.me> <9ml3d8te6o6c4u2f17hov6o0cuvp2bg8c7@4ax.com> <kat04s$k96$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="95eff61b8f8136989e561408eae2762f"; logging-data="20545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Luy5IAq8SzveC/HHIBWHw"
User-Agent slrn/0.9.9p1 (OpenBSD)
Cancel-Lock sha1:n5XvgTYlmI39XiVCimocNeIr/6w=
Xref csiph.com comp.lang.php:7860

Show key headers only | View raw


On Wed, 19 Dec 2012 13:13:43 -0500, P E Schoen wrote:

> "Richard Yates" wrote in message
> news:9ml3d8te6o6c4u2f17hov6o0cuvp2bg8c7@4ax.com...
>
>> On Wed, 19 Dec 2012 07:30:35 -0500, "P E Schoen" <paul@peschoen.com>
>> wrote:
>
>>> I am able to access this script using a simple HTML file if I do it
>>> with a direct <img src="goalgraph.php" />. But when I try to do so
>>> using PHP within the HTML, using echo, it does not work.
>
>> If your html script works, and you want to change it so that php
>> is generating the html, then run the php that you have and look at
>> the resulting page source to see how it campares with the html that
>> works.
>
> I was using Notepad to edit the file, so it was in Windows format and
> not UNIX. I thought it was possible to save the file in UNIX format
> with Notepad, but the only formats other than ANSI are Unicode and
> UTF-8, neither of which work properly.

Time for a new article. "Notepad Considered Harmful: or How I Learned to
Stop Worrying and Love Vi".

-- 
"... I've seen Sun monitors on fire off the side of the multimedia lab.
 I've seen NTU lights glitter in the dark near the Mail Gate.
 All these things will be lost in time, like the root partition last 
 week. Time to die...". -- Peter Gutmann in the scary.devil.monastery

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


Thread

Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 07:30 -0500
  Re: Using echo to run separate PHP script from HTML Richard Yates <richard@yatesguitar.com> - 2012-12-19 07:02 -0800
    Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 13:13 -0500
      Re: Using echo to run separate PHP script from HTML Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-19 15:05 -0500
        Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 16:59 -0500
          Re: Using echo to run separate PHP script from HTML Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-19 17:50 -0500
      Re: Using echo to run separate PHP script from HTML Luuk <luuk@invalid.lan> - 2012-12-19 21:23 +0100
        Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 18:33 -0500
          Re: Using echo to run separate PHP script from HTML Richard Yates <richard@yatesguitar.com> - 2012-12-19 17:24 -0800
      Re: Using echo to run separate PHP script from HTML "Peter H. Coffin" <hellsop@ninehells.com> - 2012-12-19 14:32 -0600
        Re: Using echo to run separate PHP script from HTML Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-19 17:51 -0500
  Re: Using echo to run separate PHP script from HTML The Natural Philosopher <tnp@invalid.invalid> - 2012-12-19 16:04 +0000
    Re: Using echo to run separate PHP script from HTML "P E Schoen" <paul@peschoen.com> - 2012-12-19 13:23 -0500

csiph-web