• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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