<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 1: failed to open stream</title><link href="https://sourceforge.net/p/phpready/bugs/1/" rel="alternate"/><link href="https://sourceforge.net/p/phpready/bugs/1/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpready/bugs/1/</id><updated>2008-03-19T15:43:41Z</updated><subtitle>Recent changes to 1: failed to open stream</subtitle><entry><title>failed to open stream</title><link href="https://sourceforge.net/p/phpready/bugs/1/" rel="alternate"/><published>2008-03-19T15:43:41Z</published><updated>2008-03-19T15:43:41Z</updated><author><name>repcode128</name><uri>https://sourceforge.net/u/repcode128/</uri></author><id>https://sourceforge.netdd50755e3e37c83084283fa3e6aac39f24e77706</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when loading &lt;a href="http://localhost/phpready-0.2/" rel="nofollow"&gt;http://localhost/phpready-0.2/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Warning: Smarty::include(phpReady/builder/tpl_compile\%%F7^F7F^F7F34188%%header.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\apache\htdocs\phpReady-0.2\phpReady\smarty\Smarty.class.php on line 1258&lt;/p&gt;
&lt;p&gt;here's my fix:&lt;br /&gt;
in &lt;a href="http://localhost/phpready-0.2/index.php" rel="nofollow"&gt;http://localhost/phpready-0.2/index.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;move line 45:&lt;br /&gt;
$dir = dirname($_SERVER['SCRIPT_FILENAME']);&lt;/p&gt;
&lt;p&gt;to line 20 just after&lt;br /&gt;
session_start(); and added a trailing slash like so:&lt;/p&gt;
&lt;p&gt;$dir = dirname($_SERVER['SCRIPT_FILENAME']).'/';&lt;/p&gt;
&lt;p&gt;added the directory path to lines 38 &amp;amp; 39&lt;/p&gt;
&lt;p&gt;from:&lt;br /&gt;
$smarty-&amp;gt;template_dir = 'phpReady/builder/templates';&lt;br /&gt;
$smarty-&amp;gt;compile_dir = 'phpReady/builder/tpl_compile';&lt;/p&gt;
&lt;p&gt;to:&lt;br /&gt;
$smarty-&amp;gt;template_dir = $dir.'phpReady/builder/templates';&lt;/p&gt;
&lt;p&gt;$smarty-&amp;gt;compile_dir = $dir.'phpReady/builder/tpl_compile';&lt;/p&gt;
&lt;p&gt;now working as expected.&lt;/p&gt;
&lt;p&gt;awesome code!! thanks so much...&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>