Re: Re: Continuance of the struggle (trying to understand)
| From: | chris h | Date: | Tue, 05 Oct 2010 13:13:30 +0000 |
| Subject: | Re: Re: Continuance of the struggle (trying to understand) | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308473@lists.php.net to get a copy of this message | ||
"If I paste the script into a web page"
What do you mean by "paste the script into a web page"? Can you tell us
exactly what you are doing when you do that?
Chris.
On Tue, Oct 5, 2010 at 7:54 AM, Col Day <colinday3@aol.com> wrote:
> Hi Shreyas,
>
> Ok, as far as I can tell the script should show "This is an HTML line"
> reflecting that I am seeing the HTML part of the script followed by "This is
> a PHP line" to show that PHP is installed and working fine.
>
> If I view the script directly in IE by going to
> http://localhost/phptest.php I get the output:
>
>
> This is an HTML line
>
> This is a PHP line
>
> followed by a large and detailed list of the PHP install which includes
> things like compiler language etc.
>
> If I paste the script into a web page then all that is displayed is
>
> This is an HTML line.
>
> Nothing else whatsoever.
>
> I am fairly confused. I've tried a couple of different web page creators
> (Webplus 10 and Web page maker) and get the same result.
>
> Sorry if I sound extremely naive but it's bugging me now and I want to
> understand.
>
> Cheers
>
> "Shreyas Agasthya" <shreyasbr@gmail.com> wrote in message
>
> news:AANLkTi=4ke1sTf8TaN7+EcJO-UX5CJ=t9-0qcTCFkx0+@mail.gmail.com...
>
> Col,
>>
>> Can you let us know what exactly you see when you say
>> http://localhost:/phptest.php
>> ?
>>
>>
>> Regards,
>> Shreyas
>>
>> On Tue, Oct 5, 2010 at 4:20 PM, Col Day <colinday3@aol.com> wrote:
>>
>>
>>> ""Col Day"" <colinday3@aol.com> wrote in message
>>> news:23.81.45586.2820BAC4@pb1.pair.com...
>>>
>>> Hi all,
>>>
>>>>
>>>> After my escapades with the real basics and realizing my laptop wasn't
>>>> logged on as Administrator, I now am trying to work out why this script
>>>> works sometimes but not others.
>>>>
>>>> <html>
>>>> <head>
>>>> <title>PHP Test</title>
>>>> </head>
>>>> <body>
>>>> <p>This is an HTML line
>>>> <?php
>>>> echo "<p>This is a PHP line</p>";
>>>> phpinfo();
>>>> ?>
>>>> </body>
>>>> </html>
>>>>
>>>> If I save this as phptest.php and open IE pointing it to
>>>> localhost/phptest.php it works fine. Get both lines of text followed by
>>>> the
>>>> pages of gumpf about php.
>>>>
>>>> However if I paste this into a
>>>>
>>>>
>>>>
>>>> That was weird!
>>>
>>> I was saying, If I paste this into a webpage I only get the "HTML" line
>>> as
>>> before.
>>>
>>> Anyone have any ideas?
>>>
>>> PHP is obviously working as is apache. Just don't understand why they
>>> don't
>>> show up in web pages.
>>>
>>> Cheers again all!
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>
>> --
>> Regards,
>> Shreyas Agasthya
>>
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>