Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot, bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon

Links

XODOX
Impressum

#1: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 12:38:18 by Col Day

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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#2: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 12:50:51 by Col Day

""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

Report this message

#3: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 13:03:05 by Shreyas Agasthya

--0016e646a34ef561110491dc9a5f
Content-Type: text/plain; charset=ISO-8859-1

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

--0016e646a34ef561110491dc9a5f--

Report this message

#4: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 13:29:26 by unknown

Post removed (X-No-Archive: yes)

Report this message

#5: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 13:54:38 by Col Day

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.gmai l.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

Report this message

#6: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 13:57:07 by Col Day

LOL!

This is WITH xammp!!



"Gary" <php-general@garydjones.name> wrote in message
news:i8f26m$j4r$2@dough.gmane.org...
> Col Day wrote:
>> ""Col Day"" <colinday3@aol.com> wrote in message
>> news:23.81.45586.2820BAC4@pb1.pair.com...
>>> <html>
>>> <head>
>>> <title>PHP Test</title>
>>> </head>
>>> <body>
>>> <p>This is an HTML line
> </p> <!-- close your tag, you evil man! :-) -->
>>> <?php
>>> echo "<p>This is a PHP line</p>";
>>> phpinfo();
>>> ?>
>>> </body>
>>> </html>
>
>> If I paste this into a webpage I only get the "HTML" line as before.
>
> What do you mean, "webpage"? foo.php, for example, or foo.html? If the
> latter then I am guessing your Apache will serve the page purely as
> html, and it will never be processed by php. If the former then check
> that Apache is configured to run php files through php before serving
> them (must admit, I'm not sure how to do that, it depends on your Apache
> and PHP). Or, really, just install xampp, it's by far the easiest way
> and will avoid all the problems associated with configuring two rather
> complex pieces of software.
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#7: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 14:26:26 by Steven Staples

Col:

If i am reading this correctly, then i think you're looking at this all
wrong.

If you're working within some kind of page, stored outside of the
http://localhost served by apache, like say the .php file is on the
desktop... then yeah, you're not going to get the PHP information
displayed.

(tech people bare with me here...)
PHP pages, are "compiled" when called... so you need apache to call php
and translate the PHP code so that if there is any output, it will
display that output.

If you're trying to show a .php file from teh desktop, then apache isn't
handeling this request, and therefor has no idea that there is php code
that has to be compiled, and therefore it will just ignore it.

I am sure that I am goign to get flamed for that, but i think that it
kinda simplifies what apache does for php.

NOW... you can run a php file from the command line, but you're not
going to get the HTML results as you would had you ran if from the
localhost where apache knows what to do with a .php file.

So... long story short, if you want PHP to display the PHP stuff, then
you will need to have it interpreted by apache (or IIS, or whatever your
web server software is) to have it spit back to a web browser client.

Hopefully this makes sense, it is early here, i am just getting into
work :(, and it made sense while i was typing it... but my coffee intake
has not had time to work it's wonderful magic with me yet, so my
thoughts may be scattered.

Steve



On Tue, 2010-10-05 at 12:57 +0100, Col Day wrote:
> LOL!
>
> This is WITH xammp!!
>
>
>
> "Gary" <php-general@garydjones.name> wrote in message
> news:i8f26m$j4r$2@dough.gmane.org...
> > Col Day wrote:
> >> ""Col Day"" <colinday3@aol.com> wrote in message
> >> news:23.81.45586.2820BAC4@pb1.pair.com...
> >>> <html>
> >>> <head>
> >>> <title>PHP Test</title>
> >>> </head>
> >>> <body>
> >>> <p>This is an HTML line
> > </p> <!-- close your tag, you evil man! :-) -->
> >>> <?php
> >>> echo "<p>This is a PHP line</p>";
> >>> phpinfo();
> >>> ?>
> >>> </body>
> >>> </html>
> >
> >> If I paste this into a webpage I only get the "HTML" line as before.
> >
> > What do you mean, "webpage"? foo.php, for example, or foo.html? If the
> > latter then I am guessing your Apache will serve the page purely as
> > html, and it will never be processed by php. If the former then check
> > that Apache is configured to run php files through php before serving
> > them (must admit, I'm not sure how to do that, it depends on your Apache
> > and PHP). Or, really, just install xampp, it's by far the easiest way
> > and will avoid all the problems associated with configuring two rather
> > complex pieces of software.
> >
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#8: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 15:13:30 by Chris H

--0050450141b05c41580491de6ddd
Content-Type: text/plain; charset=ISO-8859-1

"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.gmai l.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
>
>

--0050450141b05c41580491de6ddd--

Report this message

#9: RE: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 16:16:42 by M.Ford

> -----Original Message-----
> From: Col Day [mailto:colinday3@aol.com]
> Sent: 05 October 2010 12:55
> To: php-general@lists.php.net
> Subject: Re: [PHP] Re: Continuance of the struggle (trying to
> understand)
>=20
> Hi Shreyas,
>=20
> 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.
>=20
> If I view the script directly in IE by going to
> http://localhost/phptest.php
> I get the output:
>=20
> This is an HTML line
>=20
> This is a PHP line
>=20
> followed by a large and detailed list of the PHP install which
> includes
> things like compiler language etc.
>=20
> If I paste the script into a web page then all that is displayed is

What on earth does this mean? http://localhost/phptest.php *is* a web page =
-- especially as you have structured it as PHP within HTML -- so why would =
you want to paste the code anywhere else?

I think your concepts are a little skew-whiff, and you need to explain what=
it is you think you're trying to do in more detail so that we can spot whe=
re it is that your understanding is wrong.

Cheers!

Mike
--=20
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507 City Campus,=20
Woodhouse Lane, LEEDS,=A0 LS1 3HE,=A0 United Kingdom=20
Email: m.ford@leedsmet.ac.uk=20
Tel: +44 113 812 4730





To view the terms under which this email is distributed, please go to http:=
//disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#10: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 19:56:30 by TedD

At 12:54 PM +0100 10/5/10, Col Day 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.

Col:

Do this:

1. Create a file and entitle it "index.php" (without quotes)
2. Enter "<?php phpinfo();?>" (without quotes)
3. Save the file.
4. Upload the file to your host.
5. Open a browser and enter the url (i.e., http://yourdomain.com/index.php)

What do you see?

Cheers,

tedd


--
-------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#11: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 20:32:58 by TedD

At 1:56 PM -0400 10/5/10, tedd wrote:
>At 12:54 PM +0100 10/5/10, Col Day 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.
>
>Col:
>
>Do this:
>
>1. Create a file and entitle it "index.php" (without quotes)
>2. Enter "<?php phpinfo();?>" (without quotes)
>3. Save the file.
>4. Upload the file to your host.
>5. Open a browser and enter the url (i.e., http://yourdomain.com/index.php)
>
>What do you see?
>
>Cheers,
>
>tedd


Col:

You don't have to tell what you see, but rather do you see anything?

Cheers,

tedd

--
-------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#12: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-05 20:39:51 by Steven Staples

On Tue, 2010-10-05 at 14:32 -0400, tedd wrote:
> At 1:56 PM -0400 10/5/10, tedd wrote:
> >At 12:54 PM +0100 10/5/10, Col Day 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.
> >
> >Col:
> >
> >Do this:
> >
> >1. Create a file and entitle it "index.php" (without quotes)
> >2. Enter "<?php phpinfo();?>" (without quotes)
> >3. Save the file.
> >4. Upload the file to your host.
> >5. Open a browser and enter the url (i.e., http://yourdomain.com/index.php)
> >
> >What do you see?
> >
> >Cheers,
> >
> >tedd
>
>
> Col:
>
> You don't have to tell what you see, but rather do you see anything?
>
> Cheers,
>
> tedd
>
> --
> -------
> http://sperling.com/
>
Tedd:

He is working off his localhost, running on vista... so what it seems
(to me at least) is that he is getting the php to work when he uses the
localhost, but when he tries to open a php file from say his desktop, he
doesn't see the php stuff... which is exactly as designed since running
form your desktop, php does not execute the code...

i am guessing that he just needs to use his localhost directory.

Steve.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#13: PHP Unconference Europe

Posted on 2010-10-06 16:42:49 by Tom Calpin

------=_NextPart_000_00B2_01CB656D.21C80B70
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

I'm not affiliated with the PHP Unconference in any way but saw this on =
another mailing list, so just passing it on here in case anyone is =
interested.

=20

-Tom

=20

=20

=20

=20

=20

We are delighted to announce that PHP Unconference Europe will take =
place on:

=20

19th & 20th February 2011

in:

Manchester, UK.

=20

The venue will be in a central location, very accessible from all

three train stations in Manchester city center.

=20

Learn more at:

=20

http://www.phpuceu.org/2010/10/03/save-the-date-feb-19-20-20 11/

=20

As PHP Unconference Europe is an international event, admission

tickets will go on sale in two currencies.

=20

They will cost ã 40.00 or âÂ=AC 46.00.

=20

We expect to announce the exact venue and put the entry tickets up for

sale very shortly.

=20

PHP Unconference Europe is organized by group of volunteers, based

throughout Europe and is non-commercial. The goal of the unconference

is the exchange of information about PHP and related topics, not to

make a profit - ticket sales and sponsor funding just cover our costs.

=20

We really need your help in spreading the word and to make the

unconference a success. Here is how you can help:

=20

1. If you have a blog about PHP or related web technologies, please

post a short message, announcing PHP Unconference Europe.

=20

2. Tweet about the unconference. The official hash tag is #phpuceu .

=20

3. Tell all your friends and colleagues, who are interested in PHP and

related web technologies about the unconference.

=20

The organizers look forward to seeing many of you at the event.


------=_NextPart_000_00B2_01CB656D.21C80B70--

Report this message

#14: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-07 09:33:32 by Col Day

Morning all,

Apologies for the delay, I've just become a Dad for the first time so a
little distracted!

If I explain exactly what I am trying to do then it may become clear as to
where I'm going wrong.

Needless to say, new baby so want to show him off (Callum, 7lb4oz) so
decided to buy a webname and pay for hosting, however money is a bit tight,
so being adventurous (or stupid, not sure which yet) I set up apache on my
laptop and started writing a website in Serif's WebPlus10. However I wanted
to have an upload area on the site for friends and family to send their
pictures of Callum (and the family and anything else they wanted) so there
was a central "store". However I tried to find some html to handle the
upload of these files but wasn't able to work it out, google and various
other bitsx of research on the net showed that I probably needed to run a
script to do this and PHP seemed the simplest, so I downloaded PHP 5.3.3 and
installed it.

This is where it started getting tricky as I was using the PHP for dummies
book from 2006. I typed that piece of code in (direct from the book) but
added it as an html attachment into my site I was building. Uploaded the
site to my localhost and had a look. I only got the HTML line from the
script. This is where I started contacting you bunch of fine programmers!

I have now learned that if I save the script as a .php file and navigate
direct to it on localhost it works fine, but I think what I am trying to do
is get it to work in an existing webpage so that I can then get my upload
working.

Any help you can offer from explanantions to whole bits of code will be
greatly received!

Many thanks!

"Steve Staples" <sstaples@mnsi.net> wrote in message
news:1286281586.4703.63.camel@webdev01...
> Col:
>
> If i am reading this correctly, then i think you're looking at this all
> wrong.
>
> If you're working within some kind of page, stored outside of the
> http://localhost served by apache, like say the .php file is on the
> desktop... then yeah, you're not going to get the PHP information
> displayed.
>
> (tech people bare with me here...)
> PHP pages, are "compiled" when called... so you need apache to call php
> and translate the PHP code so that if there is any output, it will
> display that output.
>
> If you're trying to show a .php file from teh desktop, then apache isn't
> handeling this request, and therefor has no idea that there is php code
> that has to be compiled, and therefore it will just ignore it.
>
> I am sure that I am goign to get flamed for that, but i think that it
> kinda simplifies what apache does for php.
>
> NOW... you can run a php file from the command line, but you're not
> going to get the HTML results as you would had you ran if from the
> localhost where apache knows what to do with a .php file.
>
> So... long story short, if you want PHP to display the PHP stuff, then
> you will need to have it interpreted by apache (or IIS, or whatever your
> web server software is) to have it spit back to a web browser client.
>
> Hopefully this makes sense, it is early here, i am just getting into
> work :(, and it made sense while i was typing it... but my coffee intake
> has not had time to work it's wonderful magic with me yet, so my
> thoughts may be scattered.
>
> Steve
>
>
>
> On Tue, 2010-10-05 at 12:57 +0100, Col Day wrote:
>> LOL!
>>
>> This is WITH xammp!!
>>
>>
>>
>> "Gary" <php-general@garydjones.name> wrote in message
>> news:i8f26m$j4r$2@dough.gmane.org...
>> > Col Day wrote:
>> >> ""Col Day"" <colinday3@aol.com> wrote in message
>> >> news:23.81.45586.2820BAC4@pb1.pair.com...
>> >>> <html>
>> >>> <head>
>> >>> <title>PHP Test</title>
>> >>> </head>
>> >>> <body>
>> >>> <p>This is an HTML line
>> > </p> <!-- close your tag, you evil man! :-) -->
>> >>> <?php
>> >>> echo "<p>This is a PHP line</p>";
>> >>> phpinfo();
>> >>> ?>
>> >>> </body>
>> >>> </html>
>> >
>> >> If I paste this into a webpage I only get the "HTML" line as before.
>> >
>> > What do you mean, "webpage"? foo.php, for example, or foo.html? If the
>> > latter then I am guessing your Apache will serve the page purely as
>> > html, and it will never be processed by php. If the former then check
>> > that Apache is configured to run php files through php before serving
>> > them (must admit, I'm not sure how to do that, it depends on your
>> > Apache
>> > and PHP). Or, really, just install xampp, it's by far the easiest way
>> > and will avoid all the problems associated with configuring two rather
>> > complex pieces of software.
>> >
>>
>>
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message