|
Posted by Tony B on 07/30/07 14:37
>> > On 27 Jul, 09:10, "Tony B" <tag...@yahoo.co.uk> wrote:
>> >> 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
[Back to original message]
|