<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Wallpaper Script Forum Topic: Random PHP include</title>
<link>http://wallpaperscript.com/forum/</link>
<description>Wallpaper Script FORUM</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 11:41:40 +0000</pubDate>

<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6157</link>
<pubDate>Wed, 05 Oct 2011 22:01:22 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6157@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;You're right! I declared the variable in index.inc.php and then called in index.tpl.. guess what? it works!&#60;/p&#62;
&#60;p&#62;Tks again Batu, your help is very useful here!
&#60;/p&#62;</description>
</item>
<item>
<title>batu544 on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6151</link>
<pubDate>Wed, 05 Oct 2011 04:37:14 +0000</pubDate>
<dc:creator>batu544</dc:creator>
<guid isPermaLink="false">6151@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;I guess your last file shd work.. don't know why its not working.. &#60;/p&#62;
&#60;p&#62;I guess You can write this in your index.inc.php file also..
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6150</link>
<pubDate>Tue, 04 Oct 2011 14:11:44 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6150@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;last file it's index.tpl (option 2)
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6149</link>
<pubDate>Tue, 04 Oct 2011 14:11:03 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6149@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;wtf? and again.. =D&#60;/p&#62;
&#60;p&#62; <a class='bb_attachments_link' href='?bb_attachments=6149&bbat=413'><img  src='?bb_attachments=6149&bbat=413&inline' /></a>
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6148</link>
<pubDate>Tue, 04 Oct 2011 14:08:54 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6148@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;and again...
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6147</link>
<pubDate>Tue, 04 Oct 2011 14:07:23 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6147@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;Sorry.. sent again.&#60;/p&#62;
&#60;p&#62; <a class='bb_attachments_link' href='?bb_attachments=6147&bbat=407'><img  src='?bb_attachments=6147&bbat=407&inline' /></a> <a class='bb_attachments_link' href='?bb_attachments=6147&bbat=408'><img  src='?bb_attachments=6147&bbat=408&inline' /></a> <a class='bb_attachments_link' href='?bb_attachments=6147&bbat=410'><img  src='?bb_attachments=6147&bbat=410&inline' /></a> <a class='bb_attachments_link' href='?bb_attachments=6147&bbat=411'><img  src='?bb_attachments=6147&bbat=411&inline' /></a>
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6146</link>
<pubDate>Tue, 04 Oct 2011 14:02:42 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6146@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;Ok Batu,&#60;/p&#62;
&#60;p&#62;Check attached file..
&#60;/p&#62;</description>
</item>
<item>
<title>batu544 on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6145</link>
<pubDate>Tue, 04 Oct 2011 11:38:17 +0000</pubDate>
<dc:creator>batu544</dc:creator>
<guid isPermaLink="false">6145@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;I must say.. you are doing something wrong ..  send me your tpl file.. I will look into it..
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6144</link>
<pubDate>Tue, 04 Oct 2011 11:05:36 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6144@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;Well Batu, let's go...&#60;/p&#62;
&#60;p&#62;I tried the two alternatives in the file index.tpl...&#60;/p&#62;
&#60;p&#62;First i use {include file=&#34;test.php&#34;}... this file have the original random php code. No works...&#60;/p&#62;
&#60;p&#62;Then I changed &#34;&#38;lt;?php?&#38;gt;&#34; for {php}{/php} directly in index.tpl... &#60;/p&#62;
&#60;p&#62;I don't know if I did something wrong, but in both cases I receive a error like this:&#60;/p&#62;
&#60;p&#62;No such file or directory in   ..../templates_c/%%45^45E^45E480CD%%index.tpl.php on line ...&#60;/p&#62;
&#60;p&#62;Was expected?
&#60;/p&#62;</description>
</item>
<item>
<title>batu544 on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6142</link>
<pubDate>Tue, 04 Oct 2011 02:38:35 +0000</pubDate>
<dc:creator>batu544</dc:creator>
<guid isPermaLink="false">6142@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;You can write this in your php files or if you are writing this in ur tpl files then instead of &#34; &#38;lt;? &#34;  you need to write {php}  {/php}  tag ..
&#60;/p&#62;</description>
</item>
<item>
<title>and on "Random PHP include <img class='bb_attachments_link' title='attachments' align='absmiddle' src='http://wallpaperscript.com/forum/bb-plugins/bb-attachments/icons/default.gif' />"</title>
<link>http://wallpaperscript.com/forum/topic/random-php-include#post-6141</link>
<pubDate>Mon, 03 Oct 2011 11:36:29 +0000</pubDate>
<dc:creator>and</dc:creator>
<guid isPermaLink="false">6141@http://wallpaperscript.com/forum/</guid>
<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;I need include random files in my homepage.. &#60;/p&#62;
&#60;p&#62;Normally I use a code like this:&#60;/p&#62;
&#60;p&#62;$rnd = rand(1, 5);&#60;br /&#62;
$filename = &#34;file&#34; . $rnd;&#60;br /&#62;
include (&#34;$filename&#34;)';&#60;/p&#62;
&#60;p&#62;or this:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php $n=rand(1,5); include (&#34;/file$n.php&#34;); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;It's the same...&#60;/p&#62;
&#60;p&#62;But obviously doesn't work with this script, return smarty errors.&#60;/p&#62;
&#60;p&#62;Any idea to solve this?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
