Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 包含没有标题的 wp-blog-header.php 以便我可以使用 phpexcel?
我正在尝试使用$wpdbresults 输出带有 excel 文件Phpexcel,但是您可能会猜到标题战争正在肆虐。是否可以在$wpdb不包含已经设置标题的文件的情况下使用?如何?谢谢。
$wpdb
Phpexcel
我通常使用它不发送标题:
require_once '/path/to/wordpress/wp-load.php';
有效且不输出错误的示例:
<?php error_reporting(E_ALL); ini_set('display_errors', 1); echo "Hello<br />"; require_once '/PATH/TO/wp-load.php'; echo "After require...<br />"; var_dump($wpdb);