| 
	
 | 
 Posted by Steve on 04/02/07 17:55 
| Steve - this seems to be working on files EXCEPT those deeper in 
| directories, for example, files within: 
| /site/html/Quickform/ 
| 
| throw the error: 
| "Warning: main(HTML/Common.php) [function.main]: failed to open stream: No 
| such file or directory in C:\site\HTML\QuickForm\element.php on line 22" 
| 
| Line 22 is: 
| require_once('HTML/Common.php'); 
| 
| There are also directoryies under /site/html/Quickform/, like 
| /site/html/Quickform/Renderer/ 
| /site/html/Quickform/Rules/ 
| 
| So I need it work for those as well. 
| 
| Any ideas?  I think I/you/we am very close! 
 
yes. as someone else pointed out, most systems on which you place this web  
application are case-sensitive. as a rule for myself, i always lower-case  
all directory and file names. as you have probably guessed by now, i do  
things very methodically...so much so that i type using lower case. ;^) i  
only use proper casing when i do formal writing. 
 
anyway, your problem now stems on the fact that you are requiring  
HTML/Common.php, yet on your file system, you only have html/common.php.  
make sense? in addition, your line 22 should be: 
 
require_once $relativePath . 'html/common.php' 
 
in order to make use of relative.path.php. also, i am assuming that your web  
root is /site. 
 
have you also thought about using something similar to site.cfg.php in order  
to define your directory structure literally, such that your scripts refer  
to paths via variables?
 
  
Navigation:
[Reply to this message] 
 |