I am using require_once() (typically a few times at the top of each file). I use it to include files with settings, etc. I have not had any trouble with this until recently with 2 .php files.
I have a file which I include in quite a few .php files that has some values in it that I use fequently for file uploads - usually works fine.
In the 2 file in which I experiencing problems, the 'require_once()' command does not give me any errors like it can't find the file. However, the values defined in the included file come up as 'null' when stepping through the debugger.
The following is a piece of code:
<?
require_once( 'root.php.inc');
require_once( 'configmysql.php.inc');
require_once( 'arch/fileuploadsettings.php.inc');
function resPropertySummary( $row, $pictFileName) {
$html = "
<tr>
<td valign='top'>
<a href='property.php?masterkey=$row[0]'>
<img border='1' src='http://$root$pictpath$pictpathseparator$pictFileName' width='150' style='border: 1px solid #000000'>
</a>
The values $pictpath, $pictpathseparator come up as 'null'. I have checked the spelling and case of the included file 'arch/fileuploadsettings.php.inc' and everything looks good. Again, I also do not get an error as if the file does not exists.
Anyone have any thoughts?
Thanks!