• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

php include - vars lost

O

obey

Guest
whilst coding my own site on a shared hosting plesk8 machine, i realized a very strange problem with including .php files.

if i include a file named blubb.php, i'm not able to access any defined variable inside of the included file. If i rename it to blubb.inc, everything works fine.

the files lie within the same paths, so this is no open basedir error.

is this a security issue, or just a misconfig?

i would appreciate any help, cause my head aches after a few days debugging without any result. ;)
 
You can include both local files and URLs. If you include a URL you are including the output of the script, if you include a local file you include the actual script itself (including the variables). Make sure you're including the local file, not the web accessible resource.

See http://www.php.net/include/
 
thx, that was it.

i didn't check the path-var which the include came over.
 
Back
Top