1 (edited by kintaniya 2005-03-05 15:28)

Topic: define constants an vars

hi! i have put this code in the top of my php web
<?php
define('PUN_ROOT', './foro/');
require PUN_ROOT.'include/common.php';
  ?>
for share the pun vars, but when i tried to open the section of this way:
http://kinta.gratishost.com/index.php?secc=tutoriales
shows me a long lines of errors like

Notice: Use of undefined constant fecha - assumed 'fecha' in /home/virtual/sitio33213/www/tutoriales.php on line 115

Notice: Use of undefined constant j - assumed 'j' in /home/virtual/sitio33213/www/tutoriales.php on line 118

Notice: Use of undefined constant n - assumed 'n' in /home/virtual/sitio33213/www/tutoriales.php on line 118

Notice: Use of undefined constant Y - assumed 'Y' in /home/virtual/sitio33213/www/tutoriales.php on line 118

How can i solve my trouble ??
thanx

Re: define constants an vars

its because common.php turns on E_ALL so all php errors are shown, you can change that line or actually fix your errors wink

Re: define constants an vars

thnx, works fine ^^