Re: Script stops working since activate new php version
| From: | Aziz Saleh | Date: | Fri, 27 Feb 2015 21:21:31 +0000 |
| Subject: | Re: Script stops working since activate new php version | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324553@lists.php.net to get a copy of this message | ||
On Fri, Feb 27, 2015 at 4:14 PM, Release Edl <release_editorial@terra.com.br
> wrote:
> I Replace all instances of PHP code that starts with "<?" to "<?php and
> try the Lester Caine suggestion too, loading conexao.php only one time.
> But, still doesn't work....
>
> "Aziz Saleh" <azizsaleh@gmail.com> escreveu na mensagem
>
> news:CAPJtNhVEC_nP79xWy+XVQhDPeo2rahAicME_bfWFgiaoJtqUxg@mail.gmail.com...
>
> On Fri, Feb 27, 2015 at 2:40 PM, Jim Giner <jim.giner@albanyhandball.com>
>> wrote:
>>
>> On 2/27/2015 2:26 PM, Aziz Saleh wrote:
>>>
>>> Replace all instances of PHP code that starts with "<?" to
>>> "<?php". Also
>>>> insure that mysql_* drivers are installed.
>>>>
>>>>
>>>> Actually - make sure mysqlI or PDO is installed and forget the mysql
>>> drivers. They are deprecated and have been for awhile now, so it's time
>>> to
>>> update your code while upgrading your server.
>>>
>>>
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>> Sorry meant to say are activated (they should be installed by default).
>> If
>> you do have the resources and expertise to upgrade to PDO then like Jim
>> said do it.
>>
>> Also when responding please respond to the entire mailing list.
>>
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
You seem to have ignored the most important suggestion, turn error
reporting on. Add to the top of file:
<?php
error_reporting(-1);
ini_set('display_errors', 'on');