| 
 Posted by Paul on 04/02/07 19:23 
> | I add this to the top of site/HTML/Quickform/element.php 
> | echo ini_get('auto_prepend_file'); 
> | 
> | echo $relativePath; 
> | 
> | exit; 
> | 
> | And this is the error it throws: 
> | 
> | C:\site\inc\relative.path.php 
> | Notice: Undefined variable: relativePath in 
> | C:\site\HTML\QuickForm\element.php on line 3 
> | 
> | So, the relative path is being included. 
> 
> so, NO, it is NOT being included. 'NOTICE: UNDEFINED VARIABLE:  
> relativePath 
> ...' 
> 
> i'd forget about using the auto_prepend_file until you got it working AT  
> ALL 
> first. get fancy only AFTER. 
 
It actually is auto-prepending to 
/site/pages/page1.php 
 
but not prepending to 
/site/html/Quickform/elements.php 
 
When I add: 
echo ini_get('auto_prepend_file'); 
echo "rel path: ".$relativePath; 
exit; 
 
to elements.php, it displays: 
C:\site\inc\relative.path.php 
Notice: Undefined variable: relativePath in  
C:\site\HTML\QuickForm\element.php on line 3 
rel path: 
 
So it appears to be "seeing" where the relative.path.php is but not  
executing it.  It does see and execute the script in /site/pages/page1.php
 
[Back to original message] 
 |