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 :???:
Posts: 77
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
Posts: 23
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
Posts: 19
I've got about 6 of them running on my front page. Just copied the include code multiple times. Works great! :smile:
Posts: 54
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
Posts: 54
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