doug007 Posted July 7, 2008 Share Posted July 7, 2008 Hi Chaps, a site i developed was running perfectly on apache. however, once i uploaded it on IIS 6 my it wont pick up the my require files? it will only pick up include files? for example i have one file called (admin_sc_fns.php>)where i include all my php files like so: <?php include_once('db_fns.php'); include_once('events_page_populate.php'); include_once('footer.php'); include_once('display-image-index.php'); include_once('display-image-corporate.php'); include_once('upload.php'); ?> then if need the use of any the above files and their respected function i simply call the page: <? require('admin_sc_fns.php'); ?> perhaps its a config issue on the IIS, that i dont know how to solve Please can someone help? Thanks Link to comment https://forums.phpfreaks.com/topic/113568-include_once-require/ Share on other sites More sharing options...
DarkWater Posted July 7, 2008 Share Posted July 7, 2008 What do you mean "it will only pick up include files"? Does it error you out or something? O_O Link to comment https://forums.phpfreaks.com/topic/113568-include_once-require/#findComment-583516 Share on other sites More sharing options...
doug007 Posted July 7, 2008 Author Share Posted July 7, 2008 ok i try again. say i have a two pages called A and B. when i run page A and call page B within A like include('B.php') it will show its content, but if i was to call B like include_once('B.php') on say page C then require page C like require('B.php') on page A it will not display its content. I am not sure how else to explain this...... ??? Link to comment https://forums.phpfreaks.com/topic/113568-include_once-require/#findComment-583521 Share on other sites More sharing options...
DarkWater Posted July 7, 2008 Share Posted July 7, 2008 Since you said include_once works, why don't you try using that? =/ And uhh, do you have error reporting on? Link to comment https://forums.phpfreaks.com/topic/113568-include_once-require/#findComment-583524 Share on other sites More sharing options...
doug007 Posted July 7, 2008 Author Share Posted July 7, 2008 Dark Water thanks. do you know if there is a way of making IIS parse the php tage like "<?" as well rather then only "<?php"? thanks Link to comment https://forums.phpfreaks.com/topic/113568-include_once-require/#findComment-583533 Share on other sites More sharing options...
DarkWater Posted July 7, 2008 Share Posted July 7, 2008 You can turn on short_tags in php.ini, but I wouldn't recommend it. Bad programming practice. Use the standard tags. Link to comment https://forums.phpfreaks.com/topic/113568-include_once-require/#findComment-583536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.