plugin external file needs just db functions NO HEADER
-
Hi,
I am making a plugin, the main part is working OK until now. I need to add an external file, a download manager, that doesn’t require any themes or anything from WP except the database functions. But I can´t use headers.php because it sends the header information and I don’t want to do that.
I just need to access the database and download a file, that´s all.
I was thinking to use this
<?php
/* Short and sweet */
define(‘WP_USE_THEMES’, false);
require(‘./wp-blog-header.php’);
?>But I saw it sends the header information, not working for me.
I am thinking to use something like this:
<?php
require(‘./wp-db.php’);
?>could this work? I haven’t found any reference to this, or maybe I don´t know how to search this…
Thanks in advance, and sorry for my “english”. 😉
Gilberto
The topic ‘plugin external file needs just db functions NO HEADER’ is closed to new replies.