Connecting Tech Pros Worldwide Help | Site Map

PHP code not displaying in IE 6

Bruce A. Julseth
Guest
 
Posts: n/a
#1: Jul 17 '05
I'm a newbie to PHP and am have problems getting simple PHP page
(php_test_page.php) to display correctly. The page is:



<html>



<body>

<H1>Test Line 1</h1>

<?PHP echo '<H1>Test Line 2</h1>'; ?>



</body>



</html>



Test Line 1 displays fine by not the PHP line. If I look at the source with
the browser (IE 6), the line is still there.



I'm not sure if the following is the problem. I might have two problems
here. However, my default web server is not running and I can't seem to
start it. The following is the scenario with XP Professional:



- Click Control Panel

- Click Performance and Maintenance

- Click Administrative Tools

- Double Click Computer Management

- Open Services and Applications

- Open Internet Information Services

- Open Web Sites

- The "Default Web Site" is has a red error sign is marked as
stopped. Clicking "Default Web Site" and click "Start" yield an error dialog
with the following message. "Unexpected error 0x8ffe2740 occurred."










Margaret MacDonald
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP code not displaying in IE 6


Bruce A. Julseth wrote:
[color=blue]
>I'm a newbie to PHP and am have problems getting simple PHP page
>(php_test_page.php) to display correctly. The page is:
>. ..
>Test Line 1 displays fine by not the PHP line. If I look at the source with
>the browser (IE 6), the line is still there.
>
>
>
>I'm not sure if the following is the problem. I might have two problems
>here. However, my default web server is not running and I can't seem to
>start it. The following is the scenario with XP Professional:
>
>
>
>- Click Control Panel
>
>- Click Performance and Maintenance
>
>- Click Administrative Tools
>
>- Double Click Computer Management
>
>- Open Services and Applications
>
>- Open Internet Information Services
>
>- Open Web Sites
>
>- The "Default Web Site" is has a red error sign is marked as
>stopped. Clicking "Default Web Site" and click "Start" yield an error dialog
>with the following message. "Unexpected error 0x8ffe2740 occurred."[/color]

In general, 'unexpected error' is a bad sign, sort of like a newspaper
article that starts out 'Among the injured...'. Are you in a
position to re-install XP and see whether that helps? If not, you
might try a workaround by getting and installing a copy of Apache,
unless there's some reason why you positively must use the XP default
one.

Good luck.

Margaret
--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)
Bruce A. Julseth
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP code not displaying in IE 6


I have Apache installed and it is started. Am I not connecting to it
correctly?

Thanks..

Bruce

"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com...[color=blue]
> Bruce A. Julseth wrote:
>[color=green]
> >I'm a newbie to PHP and am have problems getting simple PHP page
> >(php_test_page.php) to display correctly. The page is:
> >. ..
> >Test Line 1 displays fine by not the PHP line. If I look at the source[/color][/color]
with[color=blue][color=green]
> >the browser (IE 6), the line is still there.
> >
> >
> >
> >I'm not sure if the following is the problem. I might have two problems
> >here. However, my default web server is not running and I can't seem to
> >start it. The following is the scenario with XP Professional:
> >
> >
> >
> >- Click Control Panel
> >
> >- Click Performance and Maintenance
> >
> >- Click Administrative Tools
> >
> >- Double Click Computer Management
> >
> >- Open Services and Applications
> >
> >- Open Internet Information Services
> >
> >- Open Web Sites
> >
> >- The "Default Web Site" is has a red error sign is marked as
> >stopped. Clicking "Default Web Site" and click "Start" yield an error[/color][/color]
dialog[color=blue][color=green]
> >with the following message. "Unexpected error 0x8ffe2740 occurred."[/color]
>
> In general, 'unexpected error' is a bad sign, sort of like a newspaper
> article that starts out 'Among the injured...'. Are you in a
> position to re-install XP and see whether that helps? If not, you
> might try a workaround by getting and installing a copy of Apache,
> unless there's some reason why you positively must use the XP default
> one.
>
> Good luck.
>
> Margaret
> --
> (To mail me, please change .not.invalid to .net, first.
> Apologies for the inconvenience.)[/color]


Gregor Favre
Guest
 
Posts: n/a
#4: Jul 17 '05

re: PHP code not displaying in IE 6


Hi Bruce
[color=blue]
> Test Line 1 displays fine by not the PHP line. If I look at the source[/color]
with[color=blue]
> the browser (IE 6), the line is still there.[/color]

As you assumed, your webserver seems not to work correctly, or it doesn't
has support for PHP included. However, if it isn't running, then you
wouldn't get anything of output in your browser (that means, if you point
your browser correctly to http://...... and not to file:///....)
[color=blue]
> - The "Default Web Site" is has a red error sign is marked as
> stopped. Clicking "Default Web Site" and click "Start" yield an error[/color]
dialog[color=blue]
> with the following message. "Unexpected error 0x8ffe2740 occurred."[/color]

Btw, there is a nice package, 'xamp', which includes apache, mysql, php,
phpmyadmin, etc. Easy-to-install, works on windows, nice for beginners...:
http://www.apachefriends.org/en/. Perhaps you may try this one, if your
current webserver won't start.

Greetings, Greg


Bruce A. Julseth
Guest
 
Posts: n/a
#5: Jul 17 '05

re: PHP code not displaying in IE 6


Okay. Please tell me if I have discovered my problem. I entered:

http://localhost/Serenade/php_test_page.php

and now all is good.

Both lines appear and no PHP code appears in the when I look at the source
with the browser.

Is this what I needed to do?

Thank you..

Bruce


"Bruce A. Julseth" <bruceaj@attglobal.net> wrote in message
news:40dc7cf7_1@news1.prserv.net...[color=blue]
> I have Apache installed and it is started. Am I not connecting to it
> correctly?
>
> Thanks..
>
> Bruce
>
> "Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
> news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com...[color=green]
> > Bruce A. Julseth wrote:
> >[color=darkred]
> > >I'm a newbie to PHP and am have problems getting simple PHP page
> > >(php_test_page.php) to display correctly. The page is:
> > >. ..
> > >Test Line 1 displays fine by not the PHP line. If I look at the source[/color][/color]
> with[color=green][color=darkred]
> > >the browser (IE 6), the line is still there.
> > >
> > >
> > >
> > >I'm not sure if the following is the problem. I might have two problems
> > >here. However, my default web server is not running and I can't seem to
> > >start it. The following is the scenario with XP Professional:
> > >
> > >
> > >
> > >- Click Control Panel
> > >
> > >- Click Performance and Maintenance
> > >
> > >- Click Administrative Tools
> > >
> > >- Double Click Computer Management
> > >
> > >- Open Services and Applications
> > >
> > >- Open Internet Information Services
> > >
> > >- Open Web Sites
> > >
> > >- The "Default Web Site" is has a red error sign is marked as
> > >stopped. Clicking "Default Web Site" and click "Start" yield an error[/color][/color]
> dialog[color=green][color=darkred]
> > >with the following message. "Unexpected error 0x8ffe2740 occurred."[/color]
> >
> > In general, 'unexpected error' is a bad sign, sort of like a newspaper
> > article that starts out 'Among the injured...'. Are you in a
> > position to re-install XP and see whether that helps? If not, you
> > might try a workaround by getting and installing a copy of Apache,
> > unless there's some reason why you positively must use the XP default
> > one.
> >
> > Good luck.
> >
> > Margaret
> > --
> > (To mail me, please change .not.invalid to .net, first.
> > Apologies for the inconvenience.)[/color]
>
>[/color]


Margaret MacDonald
Guest
 
Posts: n/a
#6: Jul 17 '05

re: PHP code not displaying in IE 6


Bruce A. Julseth wrote:
[color=blue]
>I have Apache installed and it is started. Am I not connecting to it
>correctly?[/color]

Sorry, I got confused--I didn't realise you're using Apache.

Can you serve a straight html page? e.g.
http://localhost/somepage.html ?

If you can, then the server is working correctly. Test it, if
possible, using (e.g.) Mozilla as well as IE6, though.

Then try serving some html page that does not exist, so that you get a
404 error and can see what server is lodging the complaint. You want
to make sure that it's really Apache doing the serving!

The next thing to test is whether you have php installed correctly.
If you call a testpage with this content:

<?php
phpinfo() ;
?>

do you get output?

If you don't, walk through the installation instructions again, making
sure Apache's config file knows about php and that you've copied the
correct dlls to the correct locations. Make sure php.ini is in the
windows system32 directory. Do the walkthrough line-by-line fairly
obsessively, because there are a lot of fiddly bits. Whether or not
you make changes, restart Apache just for fun (it's that little
feather icon in the system tray, very nice). Try the phpinfo() test
program again.

Let us know how it comes out.

Margaret


[color=blue]
>
>"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
>news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com.. .[color=green]
>> Bruce A. Julseth wrote:
>>[color=darkred]
>> >I'm a newbie to PHP and am have problems getting simple PHP page
>> >(php_test_page.php) to display correctly. The page is:
>> >. ..
>> >Test Line 1 displays fine by not the PHP line. If I look at the source[/color][/color]
>with[color=green][color=darkred]
>> >the browser (IE 6), the line is still there.
>> >
>> >
>> >
>> >I'm not sure if the following is the problem. I might have two problems
>> >here. However, my default web server is not running and I can't seem to
>> >start it. The following is the scenario with XP Professional:
>> >
>> >
>> >
>> >- Click Control Panel
>> >
>> >- Click Performance and Maintenance
>> >
>> >- Click Administrative Tools
>> >
>> >- Double Click Computer Management
>> >
>> >- Open Services and Applications
>> >
>> >- Open Internet Information Services
>> >
>> >- Open Web Sites
>> >
>> >- The "Default Web Site" is has a red error sign is marked as
>> >stopped. Clicking "Default Web Site" and click "Start" yield an error[/color][/color]
>dialog[color=green][color=darkred]
>> >with the following message. "Unexpected error 0x8ffe2740 occurred."[/color]
>>
>> In general, 'unexpected error' is a bad sign, sort of like a newspaper
>> article that starts out 'Among the injured...'. Are you in a
>> position to re-install XP and see whether that helps? If not, you
>> might try a workaround by getting and installing a copy of Apache,
>> unless there's some reason why you positively must use the XP default
>> one.
>>
>> Good luck.
>>
>> Margaret
>> --
>> (To mail me, please change .not.invalid to .net, first.
>> Apologies for the inconvenience.)[/color]
>[/color]
--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)
Margaret MacDonald
Guest
 
Posts: n/a
#7: Jul 17 '05

re: PHP code not displaying in IE 6


I have a feeling we're going to get out of sync here. :-(

What does Apache think your docroot is? docroot is the apparent root
of all pages to be served. So if docroot is X:/foo/bar then to serve
the file that the filesystem knows as X:\foo\bar\test.html, you'd
type localhost/test.html because Apache doesn't serve anything from
any location other than the subtrees below x:\foo\bar


Bruce A. Julseth wrote:
[color=blue]
>Okay. Please tell me if I have discovered my problem. I entered:
>
>http://localhost/Serenade/php_test_page.php
>
>and now all is good.
>
>Both lines appear and no PHP code appears in the when I look at the source
>with the browser.
>
>Is this what I needed to do?
>
>Thank you..
>
>Bruce
>
>
>"Bruce A. Julseth" <bruceaj@attglobal.net> wrote in message
>news:40dc7cf7_1@news1.prserv.net...[color=green]
>> I have Apache installed and it is started. Am I not connecting to it
>> correctly?
>>
>> Thanks..
>>
>> Bruce
>>
>> "Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
>> news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com...[color=darkred]
>> > Bruce A. Julseth wrote:
>> >
>> > >I'm a newbie to PHP and am have problems getting simple PHP page
>> > >(php_test_page.php) to display correctly. The page is:
>> > >. ..
>> > >Test Line 1 displays fine by not the PHP line. If I look at the source[/color]
>> with[color=darkred]
>> > >the browser (IE 6), the line is still there.
>> > >
>> > >
>> > >
>> > >I'm not sure if the following is the problem. I might have two problems
>> > >here. However, my default web server is not running and I can't seem to
>> > >start it. The following is the scenario with XP Professional:
>> > >
>> > >
>> > >
>> > >- Click Control Panel
>> > >
>> > >- Click Performance and Maintenance
>> > >
>> > >- Click Administrative Tools
>> > >
>> > >- Double Click Computer Management
>> > >
>> > >- Open Services and Applications
>> > >
>> > >- Open Internet Information Services
>> > >
>> > >- Open Web Sites
>> > >
>> > >- The "Default Web Site" is has a red error sign is marked as
>> > >stopped. Clicking "Default Web Site" and click "Start" yield an error[/color]
>> dialog[color=darkred]
>> > >with the following message. "Unexpected error 0x8ffe2740 occurred."
>> >
>> > In general, 'unexpected error' is a bad sign, sort of like a newspaper
>> > article that starts out 'Among the injured...'. Are you in a
>> > position to re-install XP and see whether that helps? If not, you
>> > might try a workaround by getting and installing a copy of Apache,
>> > unless there's some reason why you positively must use the XP default
>> > one.
>> >
>> > Good luck.
>> >
>> > Margaret
>> > --
>> > (To mail me, please change .not.invalid to .net, first.
>> > Apologies for the inconvenience.)[/color]
>>
>>[/color]
>[/color]

--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)
Bruce A. Julseth
Guest
 
Posts: n/a
#8: Jul 17 '05

re: PHP code not displaying in IE 6


Sorry I didn't mention I had Apache.

Here are the test results.

- http://localhost/ returns Apache's default page
- Running a pure HTML page: Displays okay
- Running a nonexistent page returns a 404 error with "Internet Explorer"
under the error number.
- Running PHP Info displaces a formated listing of the config file.

Does this mean that Apache is running correctly?

I want to upgrade to PHP 4.3.7. Did the configuration file change between
4.3.2 and 4.3.7?

Thanks for the help..

Bruce


"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
news:95vod0tcdo416eqm7o1h6hjsq1phov612n@4ax.com...[color=blue]
> Bruce A. Julseth wrote:
>[color=green]
> >I have Apache installed and it is started. Am I not connecting to it
> >correctly?[/color]
>
> Sorry, I got confused--I didn't realise you're using Apache.
>
> Can you serve a straight html page? e.g.
> http://localhost/somepage.html ?
>
> If you can, then the server is working correctly. Test it, if
> possible, using (e.g.) Mozilla as well as IE6, though.
>
> Then try serving some html page that does not exist, so that you get a
> 404 error and can see what server is lodging the complaint. You want
> to make sure that it's really Apache doing the serving!
>
> The next thing to test is whether you have php installed correctly.
> If you call a testpage with this content:
>
> <?php
> phpinfo() ;
> ?>
>
> do you get output?
>
> If you don't, walk through the installation instructions again, making
> sure Apache's config file knows about php and that you've copied the
> correct dlls to the correct locations. Make sure php.ini is in the
> windows system32 directory. Do the walkthrough line-by-line fairly
> obsessively, because there are a lot of fiddly bits. Whether or not
> you make changes, restart Apache just for fun (it's that little
> feather icon in the system tray, very nice). Try the phpinfo() test
> program again.
>
> Let us know how it comes out.
>
> Margaret
>
>
>[color=green]
> >
> >"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
> >news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com.. .[color=darkred]
> >> Bruce A. Julseth wrote:
> >>
> >> >I'm a newbie to PHP and am have problems getting simple PHP page
> >> >(php_test_page.php) to display correctly. The page is:
> >> >. ..
> >> >Test Line 1 displays fine by not the PHP line. If I look at the source[/color]
> >with[color=darkred]
> >> >the browser (IE 6), the line is still there.
> >> >
> >> >
> >> >
> >> >I'm not sure if the following is the problem. I might have two[/color][/color][/color]
problems[color=blue][color=green][color=darkred]
> >> >here. However, my default web server is not running and I can't seem[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> >> >start it. The following is the scenario with XP Professional:
> >> >
> >> >
> >> >
> >> >- Click Control Panel
> >> >
> >> >- Click Performance and Maintenance
> >> >
> >> >- Click Administrative Tools
> >> >
> >> >- Double Click Computer Management
> >> >
> >> >- Open Services and Applications
> >> >
> >> >- Open Internet Information Services
> >> >
> >> >- Open Web Sites
> >> >
> >> >- The "Default Web Site" is has a red error sign is marked as
> >> >stopped. Clicking "Default Web Site" and click "Start" yield an error[/color]
> >dialog[color=darkred]
> >> >with the following message. "Unexpected error 0x8ffe2740 occurred."
> >>
> >> In general, 'unexpected error' is a bad sign, sort of like a newspaper
> >> article that starts out 'Among the injured...'. Are you in a
> >> position to re-install XP and see whether that helps? If not, you
> >> might try a workaround by getting and installing a copy of Apache,
> >> unless there's some reason why you positively must use the XP default
> >> one.
> >>
> >> Good luck.
> >>
> >> Margaret
> >> --
> >> (To mail me, please change .not.invalid to .net, first.
> >> Apologies for the inconvenience.)[/color]
> >[/color]
> --
> (To mail me, please change .not.invalid to .net, first.
> Apologies for the inconvenience.)[/color]


Bruce A. Julseth
Guest
 
Posts: n/a
#9: Jul 17 '05

re: PHP code not displaying in IE 6


docroot is c:\inetpub\wwwroot

Serenade is an alias in Apache's conf file for a directory under the docroot
in the example below:

http://localhost/Serenade/php_test_page.php

which is the php page I was having problems with initially.

Thank you.

Bruce

"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
news:660pd0lqk0ndtf9u1mm8dtp40ug7uhnvam@4ax.com...[color=blue]
> I have a feeling we're going to get out of sync here. :-(
>
> What does Apache think your docroot is? docroot is the apparent root
> of all pages to be served. So if docroot is X:/foo/bar then to serve
> the file that the filesystem knows as X:\foo\bar\test.html, you'd
> type localhost/test.html because Apache doesn't serve anything from
> any location other than the subtrees below x:\foo\bar
>
>
> Bruce A. Julseth wrote:
>[color=green]
> >Okay. Please tell me if I have discovered my problem. I entered:
> >
> >http://localhost/Serenade/php_test_page.php
> >
> >and now all is good.
> >
> >Both lines appear and no PHP code appears in the when I look at the[/color][/color]
source[color=blue][color=green]
> >with the browser.
> >
> >Is this what I needed to do?
> >
> >Thank you..
> >
> >Bruce
> >
> >
> >"Bruce A. Julseth" <bruceaj@attglobal.net> wrote in message
> >news:40dc7cf7_1@news1.prserv.net...[color=darkred]
> >> I have Apache installed and it is started. Am I not connecting to it
> >> correctly?
> >>
> >> Thanks..
> >>
> >> Bruce
> >>
> >> "Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
> >> news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com...
> >> > Bruce A. Julseth wrote:
> >> >
> >> > >I'm a newbie to PHP and am have problems getting simple PHP page
> >> > >(php_test_page.php) to display correctly. The page is:
> >> > >. ..
> >> > >Test Line 1 displays fine by not the PHP line. If I look at the[/color][/color][/color]
source[color=blue][color=green][color=darkred]
> >> with
> >> > >the browser (IE 6), the line is still there.
> >> > >
> >> > >
> >> > >
> >> > >I'm not sure if the following is the problem. I might have two[/color][/color][/color]
problems[color=blue][color=green][color=darkred]
> >> > >here. However, my default web server is not running and I can't seem[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> >> > >start it. The following is the scenario with XP Professional:
> >> > >
> >> > >
> >> > >
> >> > >- Click Control Panel
> >> > >
> >> > >- Click Performance and Maintenance
> >> > >
> >> > >- Click Administrative Tools
> >> > >
> >> > >- Double Click Computer Management
> >> > >
> >> > >- Open Services and Applications
> >> > >
> >> > >- Open Internet Information Services
> >> > >
> >> > >- Open Web Sites
> >> > >
> >> > >- The "Default Web Site" is has a red error sign is marked[/color][/color][/color]
as[color=blue][color=green][color=darkred]
> >> > >stopped. Clicking "Default Web Site" and click "Start" yield an[/color][/color][/color]
error[color=blue][color=green][color=darkred]
> >> dialog
> >> > >with the following message. "Unexpected error 0x8ffe2740 occurred."
> >> >
> >> > In general, 'unexpected error' is a bad sign, sort of like a[/color][/color][/color]
newspaper[color=blue][color=green][color=darkred]
> >> > article that starts out 'Among the injured...'. Are you in a
> >> > position to re-install XP and see whether that helps? If not, you
> >> > might try a workaround by getting and installing a copy of Apache,
> >> > unless there's some reason why you positively must use the XP default
> >> > one.
> >> >
> >> > Good luck.
> >> >
> >> > Margaret
> >> > --
> >> > (To mail me, please change .not.invalid to .net, first.
> >> > Apologies for the inconvenience.)
> >>
> >>[/color]
> >[/color]
>
> --
> (To mail me, please change .not.invalid to .net, first.
> Apologies for the inconvenience.)[/color]


Five Cats
Guest
 
Posts: n/a
#10: Jul 17 '05

re: PHP code not displaying in IE 6


In message <40dc85fa_2@news1.prserv.net>, Bruce A. Julseth
<bruceaj@attglobal.net> writes[color=blue]
>Sorry I didn't mention I had Apache.
>
>Here are the test results.
>
>- http://localhost/ returns Apache's default page
>- Running a pure HTML page: Displays okay
>- Running a nonexistent page returns a 404 error with "Internet Explorer"
>under the error number.
>- Running PHP Info displaces a formated listing of the config file.
>
>Does this mean that Apache is running correctly?[/color]

Sounds like both are OK.
[color=blue]
>
>I want to upgrade to PHP 4.3.7. Did the configuration file change between
>4.3.2 and 4.3.7?[/color]

If it ain't broke....
[color=blue]
>
>Thanks for the help..
>
>Bruce
>
>
>"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
>news:95vod0tcdo416eqm7o1h6hjsq1phov612n@4ax.com.. .[color=green]
>> Bruce A. Julseth wrote:
>>[color=darkred]
>> >I have Apache installed and it is started. Am I not connecting to it
>> >correctly?[/color]
>>
>> Sorry, I got confused--I didn't realise you're using Apache.
>>
>> Can you serve a straight html page? e.g.
>> http://localhost/somepage.html ?
>>
>> If you can, then the server is working correctly. Test it, if
>> possible, using (e.g.) Mozilla as well as IE6, though.
>>
>> Then try serving some html page that does not exist, so that you get a
>> 404 error and can see what server is lodging the complaint. You want
>> to make sure that it's really Apache doing the serving!
>>
>> The next thing to test is whether you have php installed correctly.
>> If you call a testpage with this content:
>>
>> <?php
>> phpinfo() ;
>> ?>
>>
>> do you get output?
>>
>> If you don't, walk through the installation instructions again, making
>> sure Apache's config file knows about php and that you've copied the
>> correct dlls to the correct locations. Make sure php.ini is in the
>> windows system32 directory. Do the walkthrough line-by-line fairly
>> obsessively, because there are a lot of fiddly bits. Whether or not
>> you make changes, restart Apache just for fun (it's that little
>> feather icon in the system tray, very nice). Try the phpinfo() test
>> program again.
>>
>> Let us know how it comes out.
>>
>> Margaret
>>
>>
>>[color=darkred]
>> >
>> >"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
>> >news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com.. .
>> >> Bruce A. Julseth wrote:
>> >>
>> >> >I'm a newbie to PHP and am have problems getting simple PHP page
>> >> >(php_test_page.php) to display correctly. The page is:
>> >> >. ..
>> >> >Test Line 1 displays fine by not the PHP line. If I look at the source
>> >with
>> >> >the browser (IE 6), the line is still there.
>> >> >
>> >> >
>> >> >
>> >> >I'm not sure if the following is the problem. I might have two[/color][/color]
>problems[color=green][color=darkred]
>> >> >here. However, my default web server is not running and I can't seem[/color][/color]
>to[color=green][color=darkred]
>> >> >start it. The following is the scenario with XP Professional:
>> >> >
>> >> >
>> >> >
>> >> >- Click Control Panel
>> >> >
>> >> >- Click Performance and Maintenance
>> >> >
>> >> >- Click Administrative Tools
>> >> >
>> >> >- Double Click Computer Management
>> >> >
>> >> >- Open Services and Applications
>> >> >
>> >> >- Open Internet Information Services
>> >> >
>> >> >- Open Web Sites
>> >> >
>> >> >- The "Default Web Site" is has a red error sign is marked as
>> >> >stopped. Clicking "Default Web Site" and click "Start" yield an error
>> >dialog
>> >> >with the following message. "Unexpected error 0x8ffe2740 occurred."
>> >>
>> >> In general, 'unexpected error' is a bad sign, sort of like a newspaper
>> >> article that starts out 'Among the injured...'. Are you in a
>> >> position to re-install XP and see whether that helps? If not, you
>> >> might try a workaround by getting and installing a copy of Apache,
>> >> unless there's some reason why you positively must use the XP default
>> >> one.
>> >>
>> >> Good luck.
>> >>
>> >> Margaret
>> >> --
>> >> (To mail me, please change .not.invalid to .net, first.
>> >> Apologies for the inconvenience.)
>> >[/color]
>> --
>> (To mail me, please change .not.invalid to .net, first.
>> Apologies for the inconvenience.)[/color]
>
>[/color]

--
Five Cats
Email to: cats_spam at uk2 dot net
Margaret MacDonald
Guest
 
Posts: n/a
#11: Jul 17 '05

re: PHP code not displaying in IE 6


Bruce A. Julseth wrote:

[color=blue]
>- Running PHP Info displaces a formated listing of the config file.[/color]

What do you mean by this? Do you get nicely formatted blue and grey
tables showing all php's config settings when you call phpinfo() ?
That's what you should be getting, so if you are getting that you're
in great shape and can go forward with confidence.

I'd suggest, though, that if all your files are going to be under
'sycamore' (or whatever that was...I can't remember it), that you
consider including that in docroot so that you only need call
hostname/pagename.php to get at the main pages.
[color=blue]
>
>Does this mean that Apache is running correctly?
>
>I want to upgrade to PHP 4.3.7. Did the configuration file change between
>4.3.2 and 4.3.7?[/color]

I don't think anything's changed. I thought I was running the Latest
& Greatest, but maybe that's only on my laptop. Phpinfo() on my dev
machine claims to be v4.3.0. I know I've upgraded at least twice, but
the config file didn't change, so in your place I'd presume no changes
unless it complains. If there's a problem, it'll complain--it's very
good about that.

If you want to be completely sure, go to www.php.net and grub around
for the relevant release notes--they'll tell you if there've been any
significant changes.

As Cats says, it looks as tho you're all set.

Best luck!
Margaret

[color=blue]
>
>Thanks for the help..
>
>Bruce
>
>
>"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
>news:95vod0tcdo416eqm7o1h6hjsq1phov612n@4ax.com.. .[color=green]
>> Bruce A. Julseth wrote:
>>[color=darkred]
>> >I have Apache installed and it is started. Am I not connecting to it
>> >correctly?[/color]
>>
>> Sorry, I got confused--I didn't realise you're using Apache.
>>
>> Can you serve a straight html page? e.g.
>> http://localhost/somepage.html ?
>>
>> If you can, then the server is working correctly. Test it, if
>> possible, using (e.g.) Mozilla as well as IE6, though.
>>
>> Then try serving some html page that does not exist, so that you get a
>> 404 error and can see what server is lodging the complaint. You want
>> to make sure that it's really Apache doing the serving!
>>
>> The next thing to test is whether you have php installed correctly.
>> If you call a testpage with this content:
>>
>> <?php
>> phpinfo() ;
>> ?>
>>
>> do you get output?
>>
>> If you don't, walk through the installation instructions again, making
>> sure Apache's config file knows about php and that you've copied the
>> correct dlls to the correct locations. Make sure php.ini is in the
>> windows system32 directory. Do the walkthrough line-by-line fairly
>> obsessively, because there are a lot of fiddly bits. Whether or not
>> you make changes, restart Apache just for fun (it's that little
>> feather icon in the system tray, very nice). Try the phpinfo() test
>> program again.
>>
>> Let us know how it comes out.
>>
>> Margaret
>>
>>
>>[color=darkred]
>> >
>> >"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
>> >news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com.. .
>> >> Bruce A. Julseth wrote:
>> >>
>> >> >I'm a newbie to PHP and am have problems getting simple PHP page
>> >> >(php_test_page.php) to display correctly. The page is:
>> >> >. ..
>> >> >Test Line 1 displays fine by not the PHP line. If I look at the source
>> >with
>> >> >the browser (IE 6), the line is still there.
>> >> >
>> >> >
>> >> >
>> >> >I'm not sure if the following is the problem. I might have two[/color][/color]
>problems[color=green][color=darkred]
>> >> >here. However, my default web server is not running and I can't seem[/color][/color]
>to[color=green][color=darkred]
>> >> >start it. The following is the scenario with XP Professional:
>> >> >
>> >> >
>> >> >
>> >> >- Click Control Panel
>> >> >
>> >> >- Click Performance and Maintenance
>> >> >
>> >> >- Click Administrative Tools
>> >> >
>> >> >- Double Click Computer Management
>> >> >
>> >> >- Open Services and Applications
>> >> >
>> >> >- Open Internet Information Services
>> >> >
>> >> >- Open Web Sites
>> >> >
>> >> >- The "Default Web Site" is has a red error sign is marked as
>> >> >stopped. Clicking "Default Web Site" and click "Start" yield an error
>> >dialog
>> >> >with the following message. "Unexpected error 0x8ffe2740 occurred."
>> >>
>> >> In general, 'unexpected error' is a bad sign, sort of like a newspaper
>> >> article that starts out 'Among the injured...'. Are you in a
>> >> position to re-install XP and see whether that helps? If not, you
>> >> might try a workaround by getting and installing a copy of Apache,
>> >> unless there's some reason why you positively must use the XP default
>> >> one.
>> >>
>> >> Good luck.
>> >>
>> >> Margaret
>> >> --
>> >> (To mail me, please change .not.invalid to .net, first.
>> >> Apologies for the inconvenience.)
>> >[/color]
>> --
>> (To mail me, please change .not.invalid to .net, first.
>> Apologies for the inconvenience.)[/color]
>[/color]

--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)
Bruce A. Julseth
Guest
 
Posts: n/a
#12: Jul 17 '05

re: PHP code not displaying in IE 6


Yes, I get the nice formatted listing.

I went through my php.ini and the php.ini_dist in 4.3.7. There were a couple
of changes that I don't think will effect me.

What I can find is where I "point" to 4.3.7.. When I run phpinfo.php, I
still get 4.3.2 as my release. Somewhere there must be an .ini that sets
this up.. Can you point me to this .ini file?

Thanks.

Bruce

"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
news:qo8pd0laab0c9afcp22l8fb8qon96bv8v5@4ax.com...[color=blue]
> Bruce A. Julseth wrote:
>
>[color=green]
> >- Running PHP Info displaces a formated listing of the config file.[/color]
>
> What do you mean by this? Do you get nicely formatted blue and grey
> tables showing all php's config settings when you call phpinfo() ?
> That's what you should be getting, so if you are getting that you're
> in great shape and can go forward with confidence.
>
> I'd suggest, though, that if all your files are going to be under
> 'sycamore' (or whatever that was...I can't remember it), that you
> consider including that in docroot so that you only need calldi
> hostname/pagename.php to get at the main pages.
>[color=green]
> >
> >Does this mean that Apache is running correctly?
> >
> >I want to upgrade to PHP 4.3.7. Did the configuration file change between
> >4.3.2 and 4.3.7?[/color]
>
> I don't think anything's changed. I thought I was running the Latest
> & Greatest, but maybe that's only on my laptop. Phpinfo() on my dev
> machine claims to be v4.3.0. I know I've upgraded at least twice, but
> the config file didn't change, so in your place I'd presume no changes
> unless it complains. If there's a problem, it'll complain--it's very
> good about that.
>
> If you want to be completely sure, go to www.php.net and grub around
> for the relevant release notes--they'll tell you if there've been any
> significant changes.
>
> As Cats says, it looks as tho you're all set.
>
> Best luck!
> Margaret
>
>[color=green]
> >
> >Thanks for the help..
> >
> >Bruce
> >
> >
> >"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
> >news:95vod0tcdo416eqm7o1h6hjsq1phov612n@4ax.com.. .[color=darkred]
> >> Bruce A. Julseth wrote:
> >>
> >> >I have Apache installed and it is started. Am I not connecting to it
> >> >correctly?
> >>
> >> Sorry, I got confused--I didn't realise you're using Apache.
> >>
> >> Can you serve a straight html page? e.g.
> >> http://localhost/somepage.html ?
> >>
> >> If you can, then the server is working correctly. Test it, if
> >> possible, using (e.g.) Mozilla as well as IE6, though.
> >>
> >> Then try serving some html page that does not exist, so that you get a
> >> 404 error and can see what server is lodging the complaint. You want
> >> to make sure that it's really Apache doing the serving!
> >>
> >> The next thing to test is whether you have php installed correctly.
> >> If you call a testpage with this content:
> >>
> >> <?php
> >> phpinfo() ;
> >> ?>
> >>
> >> do you get output?
> >>
> >> If you don't, walk through the installation instructions again, making
> >> sure Apache's config file knows about php and that you've copied the
> >> correct dlls to the correct locations. Make sure php.ini is in the
> >> windows system32 directory. Do the walkthrough line-by-line fairly
> >> obsessively, because there are a lot of fiddly bits. Whether or not
> >> you make changes, restart Apache just for fun (it's that little
> >> feather icon in the system tray, very nice). Try the phpinfo() test
> >> program again.
> >>
> >> Let us know how it comes out.
> >>
> >> Margaret
> >>
> >>
> >>
> >> >
> >> >"Margaret MacDonald" <scratch65536@att.not.invalid> wrote in message
> >> >news:rqtod0l18jtjfog0tdsesg2hk89ito14p6@4ax.com.. .
> >> >> Bruce A. Julseth wrote:
> >> >>
> >> >> >I'm a newbie to PHP and am have problems getting simple PHP page
> >> >> >(php_test_page.php) to display correctly. The page is:
> >> >> >. ..
> >> >> >Test Line 1 displays fine by not the PHP line. If I look at the[/color][/color][/color]
source[color=blue][color=green][color=darkred]
> >> >with
> >> >> >the browser (IE 6), the line is still there.
> >> >> >
> >> >> >
> >> >> >
> >> >> >I'm not sure if the following is the problem. I might have two[/color]
> >problems[color=darkred]
> >> >> >here. However, my default web server is not running and I can't[/color][/color][/color]
seem[color=blue][color=green]
> >to[color=darkred]
> >> >> >start it. The following is the scenario with XP Professional:
> >> >> >
> >> >> >
> >> >> >
> >> >> >- Click Control Panel
> >> >> >
> >> >> >- Click Performance and Maintenance
> >> >> >
> >> >> >- Click Administrative Tools
> >> >> >
> >> >> >- Double Click Computer Management
> >> >> >
> >> >> >- Open Services and Applications
> >> >> >
> >> >> >- Open Internet Information Services
> >> >> >
> >> >> >- Open Web Sites
> >> >> >
> >> >> >- The "Default Web Site" is has a red error sign is marked[/color][/color][/color]
as[color=blue][color=green][color=darkred]
> >> >> >stopped. Clicking "Default Web Site" and click "Start" yield an[/color][/color][/color]
error[color=blue][color=green][color=darkred]
> >> >dialog
> >> >> >with the following message. "Unexpected error 0x8ffe2740 occurred."
> >> >>
> >> >> In general, 'unexpected error' is a bad sign, sort of like a[/color][/color][/color]
newspaper[color=blue][color=green][color=darkred]
> >> >> article that starts out 'Among the injured...'. Are you in a
> >> >> position to re-install XP and see whether that helps? If not, you
> >> >> might try a workaround by getting and installing a copy of Apache,
> >> >> unless there's some reason why you positively must use the XP[/color][/color][/color]
default[color=blue][color=green][color=darkred]
> >> >> one.
> >> >>
> >> >> Good luck.
> >> >>
> >> >> Margaret
> >> >> --
> >> >> (To mail me, please change .not.invalid to .net, first.
> >> >> Apologies for the inconvenience.)
> >> >
> >> --
> >> (To mail me, please change .not.invalid to .net, first.
> >> Apologies for the inconvenience.)[/color]
> >[/color]
>
> --
> (To mail me, please change .not.invalid to .net, first.
> Apologies for the inconvenience.)[/color]


Five Cats
Guest
 
Posts: n/a
#13: Jul 17 '05

re: PHP code not displaying in IE 6


In message <40dcf140_2@news1.prserv.net>, Bruce A. Julseth
<bruceaj@attglobal.net> writes[color=blue]
>Yes, I get the nice formatted listing.
>
>I went through my php.ini and the php.ini_dist in 4.3.7. There were a couple
>of changes that I don't think will effect me.
>
>What I can find is where I "point" to 4.3.7.. When I run phpinfo.php, I
>still get 4.3.2 as my release. Somewhere there must be an .ini that sets
>this up.. Can you point me to this .ini file?[/color]

There are two ways of getting Apache to invoke PHP (at least for Apache
2.0). You don't say which one you have done, but some copying around of
files can be involved. Maybe this is where the problem is - either that
or you have two versions of PHP installed and the Apache configuration
is picking up the earlier version. I think you need to spend a little
while checking the Apache documentation on this. The following is a
good starting place:

http://www.php.net/manual/en/install.windows.php


<snip>

--
Five Cats
Email to: cats_spam at uk2 dot net
Lāʻie Techie
Guest
 
Posts: n/a
#14: Jul 17 '05

re: PHP code not displaying in IE 6


On Fri, 25 Jun 2004 23:37:11 -0400, Bruce A. Julseth wrote:
[color=blue]
> Yes, I get the nice formatted listing.
>
> I went through my php.ini and the php.ini_dist in 4.3.7. There were a
> couple of changes that I don't think will effect me.
>
> What I can find is where I "point" to 4.3.7.. When I run phpinfo.php, I
> still get 4.3.2 as my release. Somewhere there must be an .ini that sets
> this up.. Can you point me to this .ini file?
>
> Thanks.
>
> Bruce[/color]

After upgrading PHP, you _have_ to restart Apache. Also, you should clear
your browser's cache to make sure you get the current version of the page.

HTH,
La'ie Techie
Closed Thread