开发者

What is wrong with this attempt using php to include functions.php and header.php file?

开发者 https://www.devze.com 2023-02-04 06:44 出处:网络
What, if anything, is wrong with 开发者_StackOverflowthis code? I\'m a beginner.I\'m trying to include a header file but when I test and try to load it says it\'s not working.

What, if anything, is wrong with 开发者_StackOverflowthis code? I'm a beginner. I'm trying to include a header file but when I test and try to load it says it's not working.

<?php include("http://test.orwallo.com/widget_corp/includes/header.php"); ?>


I can't tell for your HTTP 500 error. But you are clearly using include() wrong.

The include or require_once statement is used to load local php files. You should not have a reason to include URLs. Rewrite it to:

<?php
   require_once("./includes/functions.php");
   include("./includes/header.php");
?>

Adapt the path.


i tried to open this file but it appears that it's not exist

0

精彩评论

暂无评论...
验证码 换一张
取 消