Jump to content

include_once & require


doug007

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.