简体   繁体   中英

Including a PHP file from a different website on the same managed hosting computer?

So the old shared web hosting company I used to use allowed me to include a PHP file from one website in my collection in the file of another.

For example:

/home/mywebsite/public_html/functions/functions_xml.php

… could be included in in:

/home/myotherwebsite/public_html/index.php

Now that I am with GoDaddy managed hosting, this doesn't seem to be possible. I've been unable to reach support with Covid19 going on so I'm wondering if there's a PHP setting I can set that will allow files from the same computer but different websites? This worked for shared hosting but apparently not managed. I could use allow_url_include but that just sounds like a bad idea.

Is there something I'm missing?

GoDaddy Managed Hosting had to turn off some protection flag that kept different websites on the same computer from affecting one another.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM