View Full Version : Swiss Army script & a Linux server

10-02-2007, 12:02 AM
1) Script Title: Swiss Army Slideshow

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/swissarmy/

3) Describe problem:

I can't seem to get this slide show to work on a Linux server.

Workin version on Windows server: http://webshack.com.au/test/activities.htm

Exact copy on Linux: http://winmaleeccc.com.au/bob/activities.htm

Obviously the pages aren't complete with all graphics.

:confused: Have i managed to stuff it somewhere I can't find or is Linux causing the grief?



10-02-2007, 11:02 AM
Perhaps it's because the images aren't on the linux server? :p

10-02-2007, 01:03 PM
A bit too obvious :p , but no - they are definately there.

Windows link to a pic: http://webshack.com.au/test/images/activities/1.jpg

Linux link to a pic: http://winmaleeccc.com.au/bob/images/activities/1.jpg

If there was no pic to be referenced - wouldn't it show one of those boxes with a red cross in it?

So I'm still stumped!


10-02-2007, 01:10 PM
If there was no pic to be referenced - wouldn't it show one of those boxes with a red cross in it? not always. That is how IE handles a broken image, but not all browsers handle them in such a manner.

secondly, why are you using 2 different hosts? if its the same picture it can be viewed in both linux and windows OS.

10-02-2007, 03:00 PM
There is no script in the Linux host's served source code (view the Linux page and use your browsers 'view source'). You are using what look to be FP extensions to include code. These are proprietary to those servers that support them. I doubt any Linux server would.

And, though this has nothing to do with this particular problem, the Swiss Army script will often just hang if any of its images are missing.

10-05-2007, 12:21 AM

I've always hosted sites on windows server, but recently had a bit of issues with Plesk updates gone bad so I've recently set up a Linux server & migrated a few sites over. That's when I noticed the problem!

No, definately no Front Page anythings in the script, but I have referenced the 2 parts of the code via html includes.

Didn't think of that issue though - the windows server seems to be more forgiving with capital letters in href's than Linux.

So, probably is just not referencing the script because of that! Duh!

I'll have a look & see if it's the issue!



10-05-2007, 12:38 AM
So it wasn't a capital letter with the includes - I forgot to add a .htaccess file that enabled the use of SSI's. (Only just learnt i needed to do that for SSI)

So, now the includes are being referenced, but it get's stuck on the first pic, not trying to progress to download the next clip.


10-05-2007, 04:06 AM
. . . the Swiss Army script will often just hang if any of its images are missing

This image:


is missing from the Linux server. There could be other problems.

10-07-2007, 11:47 PM
Thanks for the help!

The picture was there - but it was 2.JPG (not 2.jpg). So I renamed it & reloaded it & the script is almost working perfectly.

It gets stuck on the last slide (14.jpg) - have i just left a comma in or something simple like that in the script?

Slightly off topic, but are Linux servers case sensitive with file names etc?

Thanks again fro the tips! :)


10-08-2007, 03:46 AM
Almost all servers are case sensitive. According to your source code, 14.jpg isn't the last image:

var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own.
slides[0] = ["images/activities/1.jpg", "red"];
slides[1] = ["images/activities/2.jpg", "dog"];
slides[2] = ["images/activities/3.jpg", "loves"];
slides[3] = ["images/activities/4.jpg", "Standing Woman"];
slides[4] = ["images/activities/5.jpg", "John, Mary and Jesus"];
slides[5] = ["images/activities/6.jpg", "John, Mary and Jesus"];
slides[6] = ["images/activities/7.jpg", "John, Mary and Jesus"];
slides[7] = ["images/activities/8.jpg", "John, Mary and Jesus"];
slides[8] = ["images/activities/9.jpg", "John, Mary and Jesus"];
slides[9] = ["images/activities/10.jpg", "John, Mary and Jesus"];
slides[10] = ["images/activities/11.jpg", "John, Mary and Jesus"];
slides[11] = ["images/activities/12.jpg", "John, Mary and Jesus"];
slides[12] = ["images/activities/13.jpg", "John, Mary and Jesus"];
slides[13] = ["images/activities/14.jpg", "John, Mary and Jesus"];
slides[14] = ["images/activities/15.jpg", "John, Mary and Jesus"];
slides[15] = ["images/activities/16.jpg", "John, Mary and Jesus"];
slides[16] = ["images/activities/17.jpg", "John, Mary and Jesus"];

However, it is the last image available on the Linux server. If you remove the red entries from the source code that should take care of it.

A word of advice though, you should optimize your images. They are of a much larger byte size than is necessary.

10-08-2007, 06:48 AM
Don't know how I missed the extra code/no image thing! I'll fix it up & I reckon she'll be fine! :o

What exactly do you mean by 'optimizing' the images? Do you mean reducing resolution or increasing compression - that sort of thing?

They were originally 1120x840 and about 240KB. I simply resized them down to 440x330, and they came out at around 150KB (72dpi).