ruud Posted March 29, 2008 Share Posted March 29, 2008 Hello, I have to include 1 file to another 20 sites. So is there any function about this? I don't want to use file_get_content Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/ Share on other sites More sharing options...
wildteen88 Posted March 29, 2008 Share Posted March 29, 2008 Is the 20 sites on external servers (dedicated hosting) or are they on the same server but using different domains (shared hosting)? if its the latter then find your php.ini and append the full script location path) to the include_path for the script eg: include_path = ".:/path/to/script" #UNIX include_path = ".;C:/path/to/script" # WINDOWS Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503931 Share on other sites More sharing options...
ruud Posted March 29, 2008 Author Share Posted March 29, 2008 Reseller, so I can't edit php.ini any other solution? Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503932 Share on other sites More sharing options...
wildteen88 Posted March 29, 2008 Share Posted March 29, 2008 What? Can you explain more. If your hosting account is a reseller then the sites you host from your account will be on share hosting, which will mean you'll have full control over all the sites you setup on your reseller account. Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503935 Share on other sites More sharing options...
ruud Posted March 29, 2008 Author Share Posted March 29, 2008 how can I edit php.ini with whm? I don't know about servers and hosting :-\ Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503937 Share on other sites More sharing options...
wildteen88 Posted March 29, 2008 Share Posted March 29, 2008 I have no experience of reselling. You will have to request support from your host for setting up your reseller account to control other websites PHP settings which are hosted from your reseller account Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503943 Share on other sites More sharing options...
ruud Posted March 29, 2008 Author Share Posted March 29, 2008 there is no php function like that :-\ Umm, ok, thank you for your replies. Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503945 Share on other sites More sharing options...
wildteen88 Posted March 29, 2008 Share Posted March 29, 2008 there is no php function like that :-\ Umm, ok, thank you for your replies. Its not a function its a core PHP setting within the php.ini Quote Link to comment https://forums.phpfreaks.com/topic/98472-how-to-include-a-out-file/#findComment-503947 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.