I want to put all mySql queries in one script, sqlFetch2.php5, then include that script where desired.
The top of that script:
<?php
session_start();
require_once('../../Connections/key2DB.php');
I include it in script bzz.php5. No problem.
I include it in script s_comp.php. I get
"Fatal error: main() [function.require]: Failed opening required '../../Connections/key2DB.php' (include_path='.:/usr/lib/php') in /homepages/26/d230240947/htdocs/client/appdev/ ... /sqlFetch2.php5 on line 3"
I think, perhaps, you can't include a php5 script in a php script, and save sqlFetch2.php, and include it. I get the same error message, only for "...sqlFetch2.php".
bzz.php5, as it happens, is called in an iframe inside s_comp.php. I comment out the iframe, comment out the bzz.php5 'include', do both: same error.
I've tried other stuff, too, some of which were actually embarrassing. All to no avail.
If anyone can tell me what's going on, and how to stop it, and how to do the include (if I can), it would mean a great deal to me.
Thanks,
- Paul