开发者

php problem not sure what is wrong

开发者 https://www.devze.com 2023-03-03 20:51 出处:网络
I am learning PHP and copied this piece of code from the book. <?php require_once(\'bookmark_fns.php\');

I am learning PHP and copied this piece of code from the book.

<?php
 require_once('bookmark_fns.php');
 do_html_header('');

 display_site_info(); 
 display_login_form();

 do_html_footer();
?>

I am running it in IE and I get The website cannot display the page message. I t开发者_运维技巧ried echo"hello"; and that worked fine. Any ideas of why this would not work. I wish I could give more detail, but am still unfamilair with PHP


Pop this at the top of your script, above the require_once line

error_reporting(E_ALL);
ini_set('display_errors', 'On');

My guess is something in bookmark_fns.php or the code in one of those functions is triggering an error but your configuration is set to not show any error messages.

0

精彩评论

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

关注公众号