Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 10:58 am EST
Geeklog Forums
Include function problem
Status: offline
fakestar
Forum User
Chatty
Registered: 03/15/06
Posts: 37
I did a modification on leftblocks.thtml to include a random banner code:
I didn't use blocks cause i don't want "title" of block. It works great on main page and articles pages, but i get this error on administrator pages:
Warning: (null)(): Failed opening '' for inclusion (include_path='/home/comedia/public_html/system/pear/:.:/usr/lib/php:/usr/local/lib/php') in /home/comedia/public_html/lib-common.php(1075) : eval()'d code on line 222
Any idea how to fix it?
Thanks in advance.
Text Formatted Code
<? include($banners[array_rand($banners = glob('randombanners/*.php'),1)]); ?>I didn't use blocks cause i don't want "title" of block. It works great on main page and articles pages, but i get this error on administrator pages:
Text Formatted Code
Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in /home/comedia/public_html/lib-common.php(1075) : eval()'d code on line 222Warning: (null)(): Failed opening '' for inclusion (include_path='/home/comedia/public_html/system/pear/:.:/usr/lib/php:/usr/local/lib/php') in /home/comedia/public_html/lib-common.php(1075) : eval()'d code on line 222
Any idea how to fix it?
Thanks in advance.
8
6
Quote
All times are EST. The time is now 10:58 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content