473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP code not displaying in IE 6

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




Jul 17 '05 #1
13 2288
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 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."


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.)
Jul 17 '05 #2
I have Apache installed and it is started. Am I not connecting to it
correctly?

Thanks..

Bruce

"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:rq********************************@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 withthe 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 dialogwith 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.)

Jul 17 '05 #3
Hi Bruce
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.
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:///....)
- 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."


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
Jul 17 '05 #4
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" <br*****@attglobal.net> wrote in message
news:40********@news1.prserv.net...
I have Apache installed and it is started. Am I not connecting to it
correctly?

Thanks..

Bruce

"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:rq********************************@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 withthe 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 dialogwith 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.)


Jul 17 '05 #5
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" <sc**********@att.not.invalid> wrote in message
news:rq********************************@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 sourcewith >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 errordialog >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.)

--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)
Jul 17 '05 #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:
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" <br*****@attglobal.net> wrote in message
news:40********@news1.prserv.net...
I have Apache installed and it is started. Am I not connecting to it
correctly?

Thanks..

Bruce

"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:rq********************************@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 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."
>
> 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.)



--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)
Jul 17 '05 #7
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" <sc**********@att.not.invalid> wrote in message
news:95********************************@4ax.com...
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" <sc**********@att.not.invalid> wrote in message
news:rq********************************@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 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."

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.)

--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)

Jul 17 '05 #8
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" <sc**********@att.not.invalid> wrote in message
news:66********************************@4ax.com...
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:
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 sourcewith the browser.

Is this what I needed to do?

Thank you..

Bruce
"Bruce A. Julseth" <br*****@attglobal.net> wrote in message
news:40********@news1.prserv.net...
I have Apache installed and it is started. Am I not connecting to it
correctly?

Thanks..

Bruce

"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:rq********************************@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 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."
>
> 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.)


--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)

Jul 17 '05 #9
In message <40********@news1.prserv.net>, Bruce A. Julseth
<br*****@attglobal.net> writes
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?
Sounds like both are OK.

I want to upgrade to PHP 4.3.7. Did the configuration file change between
4.3.2 and 4.3.7?
If it ain't broke....

Thanks for the help..

Bruce
"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:95********************************@4ax.com.. .
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" <sc**********@att.not.invalid> wrote in message
>news:rq********************************@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 twoproblems >> >here. However, my default web server is not running and I can't seemto >> >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.)
>

--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)



--
Five Cats
Email to: cats_spam at uk2 dot net
Jul 17 '05 #10
Bruce A. Julseth wrote:

- Running PHP Info displaces a formated listing of the config file.
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.

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


Thanks for the help..

Bruce
"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:95********************************@4ax.com.. .
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" <sc**********@att.not.invalid> wrote in message
>news:rq********************************@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 twoproblems >> >here. However, my default web server is not running and I can't seemto >> >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.)
>

--
(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.)
Jul 17 '05 #11
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" <sc**********@att.not.invalid> wrote in message
news:qo********************************@4ax.com...
Bruce A. Julseth wrote:

- Running PHP Info displaces a formated listing of the config file.


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.

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?


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


Thanks for the help..

Bruce
"Margaret MacDonald" <sc**********@att.not.invalid> wrote in message
news:95********************************@4ax.com.. .
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" <sc**********@att.not.invalid> wrote in message
>news:rq********************************@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

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."
>>
>> 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.)
>
--
(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.)

Jul 17 '05 #12
In message <40********@news1.prserv.net>, Bruce A. Julseth
<br*****@attglobal.net> writes
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?


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
Jul 17 '05 #13
On Fri, 25 Jun 2004 23:37:11 -0400, Bruce A. Julseth wrote:
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


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
Jul 17 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Waguih Boctor | last post by:
Hi, I have a number of ASP pages where some JPGs and GIFs are displaying in the browser and some are not. I have included an excerpt from the HTML below. In this example, the gif file at the...
2
by: Carole MacDonald | last post by:
There have been lots of posts on this topic, but I haven't been able to apply any of the suggestions to my situation. I have an .aspx page with a form on it that has several submit buttons on...
5
by: Robert | last post by:
Hello Accessors I have some reports created in Access that are very good for what they do. However, it seems to me that when you are displaying information you don't need to print out that a...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
9
by: Eric Lindsay | last post by:
I can't figure how to best display little snippets of shell script using <pre>. I just got around to organising to bulk validate some of my web pages, and one of the problems occurs with Bash...
1
by: marcyb | last post by:
I need this to charge sales tax on if oklahoma resident is checked <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
by: balakrishnan.dinesh | last post by:
hi frnds, There is a problem in displaying the page itself, I have put my html pages in server, the pages contains both html and javascript, Some of the pages are displayed properly and some...
2
by: Troy Piggins | last post by:
We have some php pages on our intranet at work that have been working fine for years. As a result, they rarely get edited. The page I'm having trouble with is a timesheet entry page which uses...
3
by: Hazza | last post by:
Hi, I am using PHP and mysql to create a website. I am fairly new to PHP, and thus am grateful to anyone who helps! Firstly I am running a homepage, that displays additional content if a user...
1
by: MLH | last post by:
Without explicitly typing each global var into code module for displaying, does VBA have any facility for determining what GV's are defined in a given database? You know, something like a Set or...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.