If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Using absolute URL instead of local  XML
Forum Index » Support Forum
Author Message
Kakadou
Newbie

Joined: 15/02/2007 22:04:12
Messages: 1
Offline

Hello,Who can help me

I have made a test here http://www.bretagne-gites.net/default.php

With the following script:
include_once "/home/bretagneo/www/Poll/booth.php";
echo $php_poll->poll_process(3);

This poll script works but only in local. I would like to put it also in a different server of my SQL or in other website) I can not!
despite the script modification as follow:

include_once http://www.bretagne-gites.net/Poll/booth.php";
echo $php_poll->poll_process(3);


Fatal error: Call to a member function on a non-object in
/home/bretagneo/www/default.php on line 12

My config is :
$POLLDB["dbName"] = "bretagneoker01";
$POLLDB["host"] = "mysql5-5";
$POLLDB["user"] = "bretagneoker01";
$POLLDB["pass"] = "XXXXX";
$POLLDB["class"] = "class_mysql.php";
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Try adding a poll list on the server where the poll script is installed:

Link to poll archives

Then, following the guidelines in item 2 of that post, place the second doc, with absolute links, on the other server. Using this method, the actual poll would probably still be on a page by itself, though.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum