By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Changes for PHP5 ?

P: n/a
Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2. I've
moved it from a php4 machine to a php5 machine, and it doesn't work at all
now. A couple of other php4 sites I've moved, which are straight php and do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony
Jul 27 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Rik
On Fri, 27 Jul 2007 10:10:26 +0200, Tony B <ta****@yahoo.co.ukwrote:
Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2.
I've
moved it from a php4 machine to a php5 machine, and it doesn't work at
all
now. A couple of other php4 sites I've moved, which are straight php and
do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and
php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony
mysql isn't included out of the box any more. See
http://nl2.php.net/manual/en/ref.mysql.php
--
Rik Wasmus
Jul 27 '07 #2

P: n/a
On 27 Jul, 09:10, "Tony B" <tag...@yahoo.co.ukwrote:
Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2. I've
moved it from a php4 machine to a php5 machine, and it doesn't work at all
now. A couple of other php4 sites I've moved, which are straight php and do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony
Sorry, my crystal ball is in getting repaired so I am totally unable
to see any of the error messages that you are getting which would help
me to give context to "it doesn't work at all".

Maybe someone else's crystal ball is operational and the'll be able to
help you.

Jul 27 '07 #3

P: n/a
"Captain Paralytic" <pa**********@yahoo.comwrote in message
news:11**********************@r34g2000hsd.googlegr oups.com...
On 27 Jul, 09:10, "Tony B" <tag...@yahoo.co.ukwrote:
>Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2.
I've
moved it from a php4 machine to a php5 machine, and it doesn't work at
all
now. A couple of other php4 sites I've moved, which are straight php and
do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and
php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony

Sorry, my crystal ball is in getting repaired so I am totally unable
to see any of the error messages that you are getting which would help
me to give context to "it doesn't work at all".

Maybe someone else's crystal ball is operational and the'll be able to
help you.
The reason I can't give any error info as such is that there is nothing in
the apache logs. I cant find a php error log (as far as I know php adds the
errors to the apache server log).
Al I see in a browser is mostly a black screen, with some php code
displayed, and a few html items. Hence why I'm asking what changed in phph5
particularly with mysql so I could get a clue from that direction. I have
two other virtual sites using the apache/php setup, and one using mysql as
well that work fine. But this site breaks badly.

Jul 30 '07 #4

P: n/a
"Rik" <lu************@hotmail.comwrote in message
news:op.tv36x6s8qnv3q9@metallium...
On Fri, 27 Jul 2007 10:10:26 +0200, Tony B <ta****@yahoo.co.ukwrote:
>Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2.
I've
moved it from a php4 machine to a php5 machine, and it doesn't work at
all
now. A couple of other php4 sites I've moved, which are straight php and
do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and
php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony

mysql isn't included out of the box any more. See
http://nl2.php.net/manual/en/ref.mysql.php
--
Rik Wasmus
I already have one other virtual site using mysql with the apache/php
installation.( A bugzilla site)
So in my php.ini I have enabled
extension=php_mysql.dll
I have libmysql.dll in my path.
The bugzilla site works fine.
Also I have installed phpmyadmin on the site I'm having problem with and
this works ok too. I can see the database/tables etc.
So I think the basic php/mysql stuff is working ok.
As I replied to the other poster, I can't see any info in the apache error
logs showing what is happening.
All I see in a browser is a mostly black screen, with a few images displayed
from elements that should be on the page and some php code fragments.

Tony
Jul 30 '07 #5

P: n/a
On 30 Jul, 11:57, "Tony B" <tag...@yahoo.co.ukwrote:
"Captain Paralytic" <paul_laut...@yahoo.comwrote in message

news:11**********************@r34g2000hsd.googlegr oups.com...
On 27 Jul, 09:10, "Tony B" <tag...@yahoo.co.ukwrote:
Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2.
I've
moved it from a php4 machine to a php5 machine, and it doesn't work at
all
now. A couple of other php4 sites I've moved, which are straight php and
do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and
php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony
Sorry, my crystal ball is in getting repaired so I am totally unable
to see any of the error messages that you are getting which would help
me to give context to "it doesn't work at all".
Maybe someone else's crystal ball is operational and the'll be able to
help you.

The reason I can't give any error info as such is that there is nothing in
the apache logs. I cant find a php error log (as far as I know php adds the
errors to the apache server log).
Al I see in a browser is mostly a black screen, with some php code
displayed, and a few html items. Hence why I'm asking what changed in phph5
particularly with mysql so I could get a clue from that direction. I have
two other virtual sites using the apache/php setup, and one using mysql as
well that work fine. But this site breaks badly.- Hide quoted text -

- Show quoted text -
When I said Error Messages, I mean it to include what you are seeing
anywhere, that gives some context to the statement "it doesn't work at
all". Such a stament without anything else is as useful as a chocolate
teapot.

Now the fact that you ar eseeing a "black" screen is interesting.
where are you seeing this? Is it in an operator console or in a
browser? If it is in the browser then, since a browser's default
background colour is usually white, something is sending some HTML/CSS
to change the background colour.

Now you also say that you are seeing some php code. So "it doesn't
work at all" now seems to have the context of "some HTML is getting
sent, but my php code isn't gettign interpreted". See how giving some
basic information about your problem makes a difference?

Are you by any chance using the short tags <?= ... ?>

If so you need to explicitly enable this feature.

If this is not the problem, maybe you could post the source of the
page that you are seeing (assuming it is in a browser) so that we can
see what is actually being sent.

Jul 30 '07 #6

P: n/a
On 27 Jul, 09:10, "Tony B" <tag...@yahoo.co.ukwrote:
>Hi,
I'm trying out my local copy of a site that uses php4, mysql,apache2.
I've
moved it from a php4 machine to a php5 machine, and it doesn't work at
all
now. A couple of other php4 sites I've moved, which are straight php
and
do
not use mysql are working fine though. So it seems that the mysql php
interface maybe the problem.
Are there any site/docs which cover the differences between php4 and
php5,
and likely problems that may occur, particularly with mysql ?
Regards
Tony
Sorry, my crystal ball is in getting repaired so I am totally unable
to see any of the error messages that you are getting which would help
me to give context to "it doesn't work at all".
Maybe someone else's crystal ball is operational and the'll be able to
help you.

The reason I can't give any error info as such is that there is nothing
in
the apache logs. I cant find a php error log (as far as I know php adds
the
errors to the apache server log).
Al I see in a browser is mostly a black screen, with some php code
displayed, and a few html items. Hence why I'm asking what changed in
phph5
particularly with mysql so I could get a clue from that direction. I have
two other virtual sites using the apache/php setup, and one using mysql
as
well that work fine. But this site breaks badly.- Hide quoted text -

- Show quoted text -

When I said Error Messages, I mean it to include what you are seeing
anywhere, that gives some context to the statement "it doesn't work at
all". Such a stament without anything else is as useful as a chocolate
teapot.

Now the fact that you ar eseeing a "black" screen is interesting.
where are you seeing this? Is it in an operator console or in a
browser? If it is in the browser then, since a browser's default
background colour is usually white, something is sending some HTML/CSS
to change the background colour.

Now you also say that you are seeing some php code. So "it doesn't
work at all" now seems to have the context of "some HTML is getting
sent, but my php code isn't gettign interpreted". See how giving some
basic information about your problem makes a difference?

Are you by any chance using the short tags <?= ... ?>

If so you need to explicitly enable this feature.
Thanks for the tip. Thats was it. I don't like short tags in general and
never use them, but the guy who wrote this site seemed to love them. So
anyway I jhave enabled the short tag and everything is fine.
Thanks again.
Tony
Jul 30 '07 #7

P: n/a
On 30 Jul, 15:37, "Tony B" <tag...@yahoo.co.ukwrote:
Thanks for the tip. Thats was it. I don't like short tags in general and
never use them, but the guy who wrote this site seemed to love them. So
anyway I jhave enabled the short tag and everything is fine.
Thanks again.
Tony
Of course, if when you first posted you had bothered to tell us what
you were seeing rather than just saying "it doesn't work at all", this
would have been solved in 2 posts!

Jul 30 '07 #8

P: n/a
Rik
On Mon, 30 Jul 2007 13:06:10 +0200, Tony B <ta****@yahoo.co.ukwrote:
.. some php code fragments.
short_open_tags??

--
Rik Wasmus
Jul 30 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.