Re: Script stops working since activate new php version
| From: | Release Edl | Date: | Tue, 10 Mar 2015 12:51:53 +0000 |
| Subject: | Re: Script stops working since activate new php version | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324613@lists.php.net to get a copy of this message | ||
I solve the problem. Thanks for your precious help Aziz and Lester. The problem was the undefined variable $id. It was defined and the page load properly.
The solution line: $id = $_GET['id'];
""Release Edl"" <release_editorial@terra.com.br> escreveu na mensagem news:94.09.03783.03AB5F45@pb1.pair.com...
Actually this option is on. Maybe this is not the problem. "Christoph Becker" <cmbecker69@gmx.de> escreveu na mensagem news:54F5B5A3.9020505@gmx.de...Lester Caine wrote:On 03/03/15 12:22, Release Edl wrote:An undefined variable *might* be caused by the script requiring register_globals=On, though. -- Christoph M. BeckerI just ad (as Aziz) suggests: <?php error_reporting(-1); ini_set('display_errors', 'on'); ?> And now I think we're going to a solution, as page shows: PHP Notice: Undefined variable: id in D:\web\localuser\guizzardibelavista\www\vertudo.php on line 24 PHP Notice: Use of undefined constant php - assumed 'php' in D:\web\localuser\guizzardibelavista\www\vertudo.php on line 36 PHP Notice: Undefined variable: id in D:\web\localuser\guizzardibelavista\www\vertudo.php on line 54 PHP Notice: Undefined variable: id in D:\web\localuser\guizzardibelavista\www\vertudo.php on line 116The problem is that those are only notices which should be able to be switched of without breaking the flow. I think I would have expected an 'error' ...