• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue How to solve, php include problem?

saleenajohn

New Pleskian
Hello Everyone, I thinks its little relevant question was asked but I'm not satisfied with that. I have a VPS with OS Ubuntu 18.04. I've created a new web hosting to move from another hosting a website with all contents, but I have a issue with the functions include in php. Where I have the function include doesn't show the content. I've checked the code and it's Ok.

I think maybe is problem with my server configuration. Is it?
Thanks in Advance
 
Last edited by a moderator:
How about showing us how you've inserted your include, i.e, does it look like this?
<? include 'nav.php'; ?>, or this: <?php include 'nav.php'; ?>

If you have done it the first of these two ways, you need to have "short_open_tag" set to "On" in the php settings for your domain, or the include won't work.
 
Hello there,
It may happened due to downtime when you migrate website from old hosting to new hosting while URLs leads to the visitors to the old hosting where nothing will be.
Thanks.
 
The include expression includes and evaluates the specified file.

The documentation below also applies to require

Files are included based on the file path given or, if none is given, the include path specified. If the file isn't found in the include path, include will finally check in the calling script's own directory and the current working directory before failing. The include construct will emit an E_WARNING if it cannot find a file; this is different behavior from require, which will emit an E_ERROR. Visit wordfeud helper for more info

Note that both include and require raise additional E_WARNINGs, if the file cannot be accessed, before raising the final E_WARNING or E_ERROR, respectively.
 
Back
Top