View Full Version : Show search results in other site
Hi, I 'm using phpdig 1.8.3 version, and I have a problem, I have two different sites in different servers:
- server 1 (www.equipamientosfox.com/buscar.htm): this have the search form.
- server 2 (www.cnit.com.ar): this have the data base and the program (phpdig) installed.
I need that the results have to be showed in a page, into the server 1.
This is posible?
Sorry about my english, I hope you understand me.
Thanks.
vinyl-junkie
08-16-2004, 04:37 PM
You would have to be able to execute a script on server 1 that sits on server 2. I doubt if the host for server 2 would allow this.
You would also need capability of accessing your phpdig database from a remote server. You would need to check with the host for server 2 to see if that was allowed, but again, I seriously doubt if they'd let you do that.
Is there some reason you can't have both the script and database on server 1?
Charter
08-17-2004, 03:05 PM
As they are both your sites, you might try setting define('SEARCH_PAGE','search.php'); to define('SEARCH_PAGE','http://www.cnit.com.ar/dir/search.php'); in the config file.
Iam modify the file config.php in the server www.cnit.com.ar
define('SEARCH_PAGE','http://www.cnit.com.ar/buscador_fox/search.php');
but the results show in the server www.cnit.com.ar.
Iam need the results show in www.equipamientosfox.com/buscar.htm no into cnit.com.ar.
Please visit:
www.equipamientosfox.com/buscar.htm for to see mi problem.
Help Please.
Charter
08-20-2004, 07:26 AM
http://www.phpdig.net/showthread.php?threadid=1187 ;)
Basically all search form tags would need the action element to be the URL to the site holding PhpDig.
that I do?
I define in the form (in www.equipamientos.com/buscar.thm):
<input type='hidden' name='site' value='www.equipamientosfox.com/buscador.htm'>
<input type='hidden' name='path' value=''> ¿what define?
Thanks and sorry for my poor english.
Charter
08-20-2004, 01:11 PM
Hi. In the form tag...
<form action="LINK HERE" method="get">
vBulletin® v3.7.3, Copyright ©2000-2025, Jelsoft Enterprises Ltd.