forum.coppermine-gallery.net
No Support => Feature requests => Topic started by: alirezaok on December 11, 2003, 07:20:31 pm
-
coppermine gallery is a part of my site. i want show Last additions in site home page with a javascript.
i need javascript that calls Last additions of my galler because gallery and home page are not on one server. (home page is in on windows server and gallery is on linux server)
phpbb has this script. do coppermine gallery has this scropt?
-
no JavaScript involved (JavaScript does client-sided things - you'll need some server-sided stuff).
There are several hacks that (more or less) can do this, please search the board (key-word "random"), although there may be a problem with the mySQL db on one server not allowing connection from another server (most webhosted mySQL databases are restricted to calls from "localhost"), depends on your server setup.
GauGau
-
i need a hacks same this:
http://www.phpbb.com/phpBB/viewtopic.php?t=72782
-
well, if you need it you'll have to code it I guess. I pointed you in the direction to go - take the hacks that already exist or code the hack you need; no other options imo.
GauGau
-
excusme, but my probelm is my windows server does not support php and it's server is IIS no apache and i can not use this code:
<? include_once("/home/yourdomain/public_html/coppermine/ssi.php"); ?>
<? print cpg_single(); ?>
i must use a javascript sting for call ssi.php from linux server and print it same this in phpbb topicanywhere hacks that uses from az javascript for call php file from my linux server on windows server:
<script language="JavaScript" type="text/javascript" src="http://www.qazvin118.com/forum/topics_anywhere.php?mode=show&f=a&n=10&sfn=y&fnl=y&b=non&lpb=0&lpd=0&lpi=y&t=_blank"></script>
it is possible?
-
hrm, JavaScript is a client-sided Scripting language: it does things once some data were already sent from the webserver to the visitor's browser. Do not mix up things. If you need inclusion on IIS, you can a) get php for IIS (available as installer, no fancy tricks) or b) use IIS's native scripting language asp to include stuff.
This board, however, does not deal with "how to set up a server", so there's little support from us here for machines that don't match Coppermine's minimum requirements (http://coppermine.sourceforge.net/faq.php?q=MinimumRequirements#MinimumRequirements).
GauGau