Quote:
Originally Posted by wbear
On that test page, you don't have the opening and closing PHP tags. In order for PHP to parse it, that has to be there...I thought you were trying this on a forum page, and that was why I'd suggested removing them. Sorry.
Include the entire script on the test page (with <? and ?>, and change the paths in the top to your site.
chdir("forum/");
require('./global.php');
chdir("../");
This switches to the forum directory, grabs the config file and switches back. Make sure the closing PHP tag is present as well.
I'm using 3.5.2 on this, but had it working (with a small change) on 3.07/8.
|
Thanks for your time. I added
Code:
chdir("forum/");
require('./global.php');
chdir("../");
and <? at the beginning and ?> at the end but got a databse error message. The email I received said a table that it's looking for doesn't exist.
Code:
Invalid SQL:
SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title
FROM event
WHERE calendarid = 1 AND dateline_from >= UNIX_TIMESTAMP()
ORDER BY dateline_from LIMIT 10;
MySQL Error : Table 'socaltra_vbforum.event' doesn't exist
Error Number : 1146
Date : Wednesday, January 25th 2006 @ 02:14:42 PM
Script : http://socaltrailriders.org/test.php
Referrer :
IP Address : 134.139.107.72
Username : Unregistered
Classname : vb_database