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 8 1583
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
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.
"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.
"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
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.
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
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!
On Mon, 30 Jul 2007 13:06:10 +0200, Tony B <ta****@yahoo.co.ukwrote:
.. some php code fragments.
short_open_tags??
--
Rik Wasmus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Christoph Nothdurfter |
last post by:
Hallo!
I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the
beta yet).
Does anybody know?
Thank you,
-Christoph
|
by: Rob Ristroph |
last post by:
I have tried out PHP 5 for the first time (with assistance from this
group -- thanks!).
The people I was working with have a site that uses lots of php
objects. They are having problems with...
|
by: neur0maniak |
last post by:
Hi,
I've been eager to try out PHP5, so I've dumped it on my little dev
machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the
"mappings" page as I'm used to doing with PHP4....
|
by: badbetty |
last post by:
Dear Googlers
I have installed PHP5 to run on WinXP against Apache 2.
It works! ie. I have tested a few simple scripts and a basic xml
document parse.
I now want to try the XSL extension so I...
|
by: Jack Lindamood |
last post by:
PHP 5.1, Windows Server 2003, IIS 6, isapi
I changed a line in the php.ini file to
extension_dir = "c:\php\ext"
but when I load my phpinfo page it shows
extension_dir C:\php5
It's like my...
|
by: Aziz |
last post by:
Hi,
I've recently contacted technical service of a web hosting company and
asked them wheter or not they're gonna upgrade to PHP5 and MySQL5.
Here's a quote from their response which confused me...
|
by: Chuck Anderson |
last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the
'net). I downloaded the Php Windows binary at php.net, unzipped it to
c:/Php5, changed my Apache config file to use Php5...
|
by: McKirahan |
last post by:
I am working in two environments neither configuration of
which I can change; one's my Web host the other a client.
My Web host requires the use of the ".php5" extension
to use PHP v5.1.4; where...
|
by: xhe |
last post by:
I have just upgraded my php version form php4 to php5. and I met this
problem, and don't know if you know the solution.
My site was written in PHP4, and most parts can be running smoothly in
PHP5,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |