• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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