Including Standalone Random Block Twice Or More

PuCK
PuCK's picture

Joined: 2002-11-20
Posts: 23
Posted: Wed, 2002-11-20 16:01

Hello,

I can't seem to run the random block twice on 1 page. I use the standalone version. 1 is working but when I include it again (or a copy of it) it just stopped there building the page. What could be wrong here? I thought you could add more than one random block :???:

 
joerg
joerg's picture

Joined: 2002-10-12
Posts: 77
Posted: Thu, 2002-11-21 15:41

Hi,

you get no error?

The most common error is that a function is redifined with the same name. That causes an error normaly. I have no idea if you get no error.

Joerg

 
PuCK
PuCK's picture

Joined: 2002-11-20
Posts: 23
Posted: Fri, 2002-11-22 12:59

Got it working :smile:

I just copied the right piece of the random.php script en used only that for the other. Since otherwise it will use the same veriables an gives an error. Annyway, it works now

 
BiTurbo27t
BiTurbo27t's picture

Joined: 2002-08-27
Posts: 19
Posted: Sun, 2002-11-24 06:15

I've got about 6 of them running on my front page. Just copied the include code multiple times. Works great! :smile:

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Fri, 2002-12-13 03:02

Hi

It works ok if I use only one, but got this error when using twice php include :

Fatal error: Cannot redeclare fs_copy() (previously declared in c:easyphp2wwwgalleryplatformfs_win32.php:22) in c:easyphp2wwwgalleryplatformfs_win32.php on line 22

the first block is ok, but not the second.

I also get this error when using only one random block, but trying to use an other include like top10albums. In this case the top10album works, but not the random block anymore.

thanks
phil

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Sun, 2002-12-22 05:21

Hi

I must be missing something here.

can somebody tell me why I can't include more than 1 time the block-random.php

I do this :
<? include ("block-random.php")?>

it's ok
I do :

<? include ("block-random.php")?> <br>
<? include ("block-random.php")?>

it give this error for the second block, while the first is working

Fatal error: Cannot redeclare fs_copy() (previously declared in c:easyphp2wwwgalleryplatformfs_win32.php:22) in c:easyphp2wwwgalleryplatformfs_win32.php on line 22

thanks
phil