PDA

View Full Version : A quick question installing last10.php! please Help!


jeo
04-13-2002, 04:55 AM
I have two websites with two different hosting companies I use SSI with all my pages in my main website them the other website Im using Vbulletin board.

Now I want to put the last ten post script in my main site how do I call the last ten post script that is located @ my myforumsite.com ??

this is what i mean take a look!
From my mainsite.com using SSI I need to call this script (last10.php), that is located at myforumsite.com

how can i do that i already tried this but is not working:

<!--#include virtual="/www/myforumsite/admin/last10.php" -->

Your help will be apreciated!

Thanyou,
JEO

Admin
04-13-2002, 05:59 AM
I think the syntax is correct, make sure you put it in an shtml document so it will be parsed.

jeo
04-13-2002, 07:06 PM
FireFly I already did that, but someone from sitepointforums told me that I CAN'T include files that are not on my server using SSI!

And what i did was copy over the last10.php and the config file (& what ever points to the database)

But them im getting this error
Warning: MySQL Connection Failed: Host is not allowed to connect to this MySQL server in /home/www/mymainsite/last10.php on line 14
Can't open connection to MySQL

I wonder how sitepoint.com is calling this script from sitepointforums.com??

Admin
04-14-2002, 10:34 AM
You need to ask your host to allow connections to your MySQL database from your other site (currently you can only connect to it from localhost, i.e the same server; ask him to let you connect from your other server).