Re: Using echo to run separate PHP script from HTML [message #179928 is a reply to message #179922] |
Wed, 19 December 2012 20:32 |
Peter H. Coffin
Messages: 245 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Wed, 19 Dec 2012 13:13:43 -0500, P E Schoen wrote:
> "Richard Yates" wrote in message
> news:9ml3d8te6o6c4u2f17hov6o0cuvp2bg8c7(at)4ax(dot)com...
>
>> On Wed, 19 Dec 2012 07:30:35 -0500, "P E Schoen" <paul(at)peschoen(dot)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
|
|
|