Nov 7th, 2009, 10:22 AM
Hi st8,
Hmmm... getting it going from within Wordpress pages could certainly be problematic; I haven't tested that at all. But you should be able to get the test.php page working fine.
It looks like your require_once() line looks a little fishy. That's using an absolute path from the root - and it looks like you're trying to use the webroot. For including files like that, you'll need either the absolute path (from the actual server root - not the website root - i.e. the entire path to that file), or, more simply, a relative path from that location.
Also, for testing this, add this line at the very top:
- Ben
Hmmm... getting it going from within Wordpress pages could certainly be problematic; I haven't tested that at all. But you should be able to get the test.php page working fine.
It looks like your require_once() line looks a little fishy. That's using an absolute path from the root - and it looks like you're trying to use the webroot. For including files like that, you'll need either the absolute path (from the actual server root - not the website root - i.e. the entire path to that file), or, more simply, a relative path from that location.
Also, for testing this, add this line at the very top:
PHP Code:
error_reporting(2047);
- Ben