Display Last additions in site home page Display Last additions in site home page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Display Last additions in site home page

Started by alirezaok, December 11, 2003, 07:20:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alirezaok

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?

Joachim Müller

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


Joachim Müller

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

alirezaok

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?

Joachim Müller

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.

GauGau