zend studio - Undefined Variable Errors -


i receive lot of undefined variable errors in zend studio 10.

i have php file :

file var.php

<?php $functions = $root."/requires/functions.php"; $top_utf = $root."/requires/top_utf.php" ; $database = $root."/requires/db.php" ; $footer = $root."/requires/pagefooter.php" ; ?> 

now if use following code in php file, zend studio shows undefined variable errors on require_once lines. (if access page browser page displayed expected , works perfectly.)

<?php $root = $_server['document_root']; require_once($root."/requires/vars.php") ; require_once($functions); require_once($top_utf); require_once($database); require_once($footer); ?> 

doesn't zend studio recognize declared variables in included file (var.php in case)? since $functions , $top_utf variables defined in var.php, believe shouldn't receive these errors. kind of advice appreciated.

if you're going use style of programming, i'm not advocating, suggest define constants in var.php instead


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -