<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Warning: fread(): Length parameter must be greater than 0"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Warning: fread(): Length parameter must be greater than 0"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Warning: fread(): Length parameter must be greater than 0</title>
				<description><![CDATA[ Hi,<br /> <br /> Since tonight I have a php error message, but I don't know what it means:<br /> Warning: fread(): Length parameter must be greater than 0.<br /> in /home/public_html/gastenboek/lib/template.class.php on line 45<br /> <br /> Does anybody know what it means and how to fix it?<br /> <br /> Tnx a lot!<br /> <br /> Bas]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9135.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9135.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 00:52:06]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>same problem</title>
				<description><![CDATA[ Same problem here, since July 14.<br /> <br /> Warning: fread(): Length parameter must be greater than 0. in /home/pwhs/public_html/forms/guestbook/lib/template.class.php on line 53<br /> <br /> Warning: fread(): Length parameter must be greater than 0. in /home/pwhs/public_html/forms/guestbook/lib/template.class.php on line 53<br /> <br /> Carlos]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9142.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9142.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 16:04:26]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [b]Bas[/b] which version of the Guestbook are you using?<br /> <br /> [b]Carlos[/b] I think your problem may lie within one of your template files located iin Templates/]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9143.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9143.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 16:38:01]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Same problem here...maybe this is a 15th of July-bug...   <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /> <br /> <br /> Warning: fread(): Length parameter must be greater than 0. in /home/*******/public_html/gastenboek/lib/template.class.php on line 53<br /> <br /> I'm using the 2.3.1-version<br /> <br /> Could anyone help pls?  thank you!    <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9147.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9147.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 19:27:41]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Carbonize:<br /> <br /> I already downloaded the latest guestbook yesterday and replaced all the files in the template. NO effect.<br /> <br /> I need to fix this asap. <br /> <br /> Any other possible help?<br /> <br /> Carlos]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9169.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9169.php</link>
				<pubDate><![CDATA[Fri, 16 Jul 2004 04:17:43]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hello,<br /> <br /> Anyone to help us here?<br /> <br /> Carlos]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9184.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9184.php</link>
				<pubDate><![CDATA[Fri, 16 Jul 2004 15:02:44]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I've got the same prob. help!!!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9208.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9208.php</link>
				<pubDate><![CDATA[Sat, 17 Jul 2004 11:33:01]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ anyone, PLEASE.... If neccesary, I'll beg on my knees...  <img src="https://proxy2.de/forum//images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9240.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9240.php</link>
				<pubDate><![CDATA[Sun, 18 Jul 2004 19:56:49]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Are you getting this error message at the start of the page or halfway down? I assume you are getting it on the index page.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9244.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9244.php</link>
				<pubDate><![CDATA[Sun, 18 Jul 2004 22:05:44]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Can't see why it suddenly started on July 14th unless your host changed their PHP version on that date. fread(filename, amounttoread) is the problem. In the code he uses<br /> [code]fread &#40;$fd, filesize &#40;$filename&#41;&#41;[/code]<br /> which means read the file named in the variable $fd for x amount of characters. He uses filesize($filename) to indicate he wants the whole of the template file to be read. For some reason the script is being told that th size of $filename is 0.<br /> <br /> As an experiment open up lib/template.class.php and find[code]$filename = &quot;$this-&gt;root_dir/templates/$tpl&quot;;<br /> if &#40;file_exists&#40;&quot;$filename&quot;&#41;&#41; &#123;[/code]<br /> <br /> and between the two lines add[code]die&#40;$filename&#41;;[/code]<br /> Hopefully this should stop the script at this point and tell the browser to display the path name of the template it is looking for. I hope anyway.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9245.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9245.php</link>
				<pubDate><![CDATA[Sun, 18 Jul 2004 22:14:13]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Carbonize...<br /> <br /> The error appears on top of the page.  I did the things you asked, and this is what came up:<br /> <br /> /home/****/public_html/gastenboek/templates/entry.php<br /> <br /> thanks in advance for your efforts!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9254.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9254.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 13:18:58]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ and this is what entry.php contains:<br /> <br /> &lt;tr bgcolor="$bgcolor"&gt;<br />  &lt;td width="32%" valign="top"&gt;<br />    &lt;table border="0" cellspacing="0" cellpadding="2"&gt;<br />      &lt;tr&gt;<br />        &lt;td class="font2" valign="top" width="8%"&gt;&lt;b&gt;$id)&lt;/b&gt;&lt;/td&gt;<br />        &lt;td colspan="2" class="font1"&gt;&lt;b&gt;$row[name]&lt;/b&gt;&amp;nbsp;$GENDER&lt;/td&gt;<br />      &lt;/tr&gt;<br />      &lt;tr&gt;<br />        &lt;td colspan="2" class="font1"&gt;$row[email]&lt;/td&gt;<br />      &lt;/tr&gt;<br />      &lt;tr&gt;<br />        &lt;td colspan="2" class="font2"&gt;$LANG[FormLoc]:&lt;br&gt;$row[location]&lt;/td&gt;<br />      &lt;/tr&gt;<br />     &lt;/table&gt;<br />   &lt;/td&gt;<br />   &lt;td width="68%" class="font1" valign="top"&gt; <br />     &lt;div align="left" class="font3"&gt;&lt;img src="$GB_PG[base_url]/img/post.gif" width="9" height="9"&gt;$DATE&amp;nbsp;$HOST<br />      &lt;a href="$GB_COMMENT"&gt;&lt;img src="$GB_PG[base_url]/img/edit.gif" width="18" height="13" border="0" alt="$LANG[AltCom]"&gt;&lt;/a&gt;<br />      $EMAIL<br />     &lt;/div&gt;<br />     &lt;hr size="1"&gt;&lt;div align="left"&gt;<br />     $USER_PIC $MESSAGE<br />    &lt;/div&gt;<br />    $COMMENT<br />  &lt;/td&gt;<br /> &lt;/tr&gt;<br /> <br /> <br /> I don't know if this is usefull, but hey, you never know...   <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9255.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9255.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 13:22:57]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ And is entry.php located at /home/****/public_html/gastenboek/templates/entry.php ?<br /> <br /> Can't see the problem lying in the permissions but can you check the permissions on entry.php (chmod).]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9258.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9258.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 13:49:02]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ entry.php is indeed located on this location.<br /> <br /> permissions are 777]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9259.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9259.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 13:53:31]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Well if the path name is correct and the file is not empty why is it returning a 0  <img src="https://proxy2.de/forum//images/smilies/2e207fad049d4d292f60607f80f05768.gif" />  I'll look into reasons why filesize may report wrong sizes.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9265.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9265.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 16:04:33]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ try changing <br /> [code]die&#40;$filename&#41;;[/code]to<br /> [code]$thesize = filesize&#40;$filename&#41;;<br /> die &#40;$filename.' size = '.$thesize&#41;;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9266.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9266.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 16:09:05]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Are you hosted on a windows server by any chance?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9267.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9267.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 16:11:14]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I changed my the code;<br /> $this-&gt;template[$tpl] = fread  ($fd, filesize ($filename))<br /> <br /> to...<br /> $this-&gt;template[$tpl] = fread ($fd, 10000);<br /> <br /> And then the message dissapeard... don't know if 10000 is for ~10 Mb ...but... maybe someone with a little more PHP knowledge can tell me?!<br /> <br /> /D]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9271.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9271.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 21:08:55]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The size is in bytes so that would be about 10kb]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9272.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9272.php</link>
				<pubDate><![CDATA[Mon, 19 Jul 2004 21:17:20]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ this is what is says:<br /> <br /> /home/****/public_html/gastenboek/templates/entry.php size = 894<br /> <br /> I'm curious what will happen next...<br /> <br /> thanks in advance for your help Carbo...This is one of the first boards where help actually comes when needed!  <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" /> <br /> <br /> More info on the server and phpversion:<br /> <br /> PHP Version 4.3.8 <br /> <br /> System  Linux ****.*****.com 2.4.20-28.7 #1 Thu Dec 18 11:31:59 EST 2003 i686  <br /> Build Date  Jul 15 2004 17:32:12  <br /> Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-safe-mode' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'  <br /> Server API  Apache  <br /> Virtual Directory Support  disabled  <br /> Configuration File (php.ini) Path  /usr/local/lib/php.ini  <br /> PHP API  20020918  <br /> PHP Extension  20020429  <br /> Zend Extension  20021010  <br /> Debug Build  no  <br /> Thread Safety  disabled  <br /> Registered PHP Streams  php, http, ftp, compress.zlib]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9277.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9277.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 05:40:58]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Ok well thats one idea out of the window. If it's returning the right file size I don't see the problem :| try removing the stuff I asked you to put in and then<br /> remove the whitespace in the code.<br /> [code]fread &#40;$fd, filesize &#40;$filename&#41;&#41;[/code]<br /> to<br /> [code]fread &#40;$fd, filesize&#40;$filename&#41;&#41;[/code]<br /> Shouldn't make a difference but you never know.<br /> <br /> or just remove<br /> [code]die &#40;$filename.' size = '.$thesize&#41;;[/code]<br /> and replace [code]fread &#40;$fd, filesize &#40;$filename&#41;&#41;[/code]<br /> with<br /> [code]fread &#40;$fd, $thesize&#41;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9279.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9279.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 14:22:55]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Carbonize...you won't like this, but I get the same message again:<br /> <br /> Warning: fread(): Length parameter must be greater than 0. in /home/****/public_html/gastenboek/lib/template.class.php on line 54<br /> <br /> Could it have something to do with other chmod-permissions on files, who are not accessible, so eg. size is not readable by the script...just thinking... <img src="https://proxy2.de/forum//images/smilies/2786c5c8e1a8be796fb2f726cca5a0fe.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9281.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9281.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 14:38:05]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The size is readable as it returned[code]/home/****/public_html/gastenboek/templates/entry.php size = 894 [/code] in our earlier experiment.<br /> <br /> Which change did you try?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9282.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9282.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 14:47:54]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ none, checked manual again, and permissions were set right...]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9284.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9284.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 15:07:42]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I mean which of the changes I mentioned in my previous post. Did you try removing the whitespace from [code]filesize &#40;$filename&#41;[/code] ? or did you leave in<br /> [code]$thesize= filesize&#40;$filename&#41;;[/code]<br />  and replace filesize ($filename) with $thesize ?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9285.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9285.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 15:36:45]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ <img src="https://proxy2.de/forum//images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" />  ooops, sorry, I tried them both, together]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9291.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9291.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 18:54:38]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ ok well try either or and see if they work]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9293.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9293.php</link>
				<pubDate><![CDATA[Tue, 20 Jul 2004 20:00:32]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hey carbo...<br /> <br /> So I tried the first (whitespace) sollution, then the change of fread-line, and as you already know, I tried both of 'em together....nothing changes...  <img src="https://proxy2.de/forum//images/smilies/9d71f0541cff0a302a0309c5079e8dee.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9321.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9321.php</link>
				<pubDate><![CDATA[Thu, 22 Jul 2004 15:01:58]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ OK this is weird because it's providing the right size when we used [code]$thesize = filesize&#40;$filename&#41;;[/code] This is why I suggested trying [code]$thesize = filesize&#40;$filename&#41;;<br /> fread &#40;$fd, $thesize&#41;;[/code] but you're telling me this doesn't work :evil: Ask your hosts if they made any changes on the date when it stopped working as thats the only reason I can think of for it to stop working.<br /> <br /> ps. I know there is more to the fread line than just fread I'm just paraphrasing.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9322.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9322.php</link>
				<pubDate><![CDATA[Thu, 22 Jul 2004 15:24:31]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ carbo, I added you on my msn contactlist, that way I can send you the file, just to doublecheck....]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9323.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9323.php</link>
				<pubDate><![CDATA[Thu, 22 Jul 2004 15:32:45]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Well I may be offline for a day or two. I was doing a disc clean up last night and windows decided to go and start deleting every file on the C drive <img src="https://proxy2.de/forum//images/smilies/385970365b8ed7503b4294502a458efa.gif" /> had to reinstall windows which is no fun at 22:30. I will reinstall [url=http://www.trillian.cc][u]Trillian[/u][/url] or [url=http://gaim.sourceforge.net][u]Gaim[/u][/url] either today or tomorrow. Feel free to email the templates.class.php file to me in the meantime.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9324.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9324.php</link>
				<pubDate><![CDATA[Thu, 22 Jul 2004 15:46:39]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ As an experiment open up lib/template.class.php and find<br /> [code]$filename = &quot;$this-&gt;root_dir/templates/$tpl&quot;;<br /> if &#40;file_exists&#40;&quot;$filename&quot;&#41;&#41; &#123;[/code]<br /> change it to [code]$filename = &quot;$this-&gt;root_dir/templates/$tpl&quot;;<br /> $blahfile = fopen&#40;&quot;errortest.txt&quot;, 'a'&#41;;<br /> $thesize = filesize&#40;$filename&#41;;<br /> fwrite&#40;$blahfile, &quot;Filename = $filename\tFilesize = $thesize\n&quot;&#41;;<br /> fclose&#40;$blahfile&#41;;<br /> if &#40;file_exists&#40;&quot;$filename&quot;&#41;&#41; &#123;[/code]<br /> <br /> This should make a text file showing what templates are called and the size that is being returned.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9380.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9380.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 22:10:53]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ this is what comes up:<br /> <br /> Warning: fopen(errortest.txt): failed to open stream: Permission denied in /home/brasseur/public_html/gastenboek/lib/template.class.php on line 51<br /> <br /> Warning: fwrite(): supplied argument is not a valid stream resource in /home/brasseur/public_html/gastenboek/lib/template.class.php on line 53<br /> <br /> Warning: fclose(): supplied argument is not a valid stream resource in /home/brasseur/public_html/gastenboek/lib/template.class.php on line 54<br /> <br /> (this message keeps repeating itself)<br /> I did a chmod 777, just to be sure, but nothing changed...]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9387.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9387.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 15:47:17]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ grrrr it should automatically have made a file called errortest.txt  :evil: oh well make a file called errortest.txt and upload it into the same directory as addentry.php and chmod the file to 777. Change the code to [code]fopen&#40;&quot;/home/brasseur/public_html/gastenboek/errortest.txt&quot;, 'a'&#41;;[/code]This way it will look fr the file in the gastenboek directory.<br /> <br /> I probably should of used the full path in the first place.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9388.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9388.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 16:00:23]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ result:<br /> <br /> Parse error: parse error, unexpected T_STRING in /home/*****/public_html/gastenboek/lib/template.class.php on line 58<br /> <br /> <br /> if (file_exists("$filename")) {<br />                 $fd = fopen ($filename, "r");<br />                 $this-&gt;template[$tpl] = fread ($fd, filesize ($filename))<br /> [color="red"]LINE 58: [/color]              [b] [u]fclose ($fd);[/u][/b]          <br />       $this-&gt;template[$tpl] = ereg_replace("\"", "\\\"", $this-&gt;template[$tpl]);]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9389.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9389.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 16:08:37]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ You're missing the ; from the end of [code]$this-&gt;template&#91;$tpl&#93; = fread &#40;$fd, filesize &#40;$filename&#41;&#41;[/code]<br /> Should be[code]$this-&gt;template&#91;$tpl&#93; = fread &#40;$fd, filesize &#40;$filename&#41;&#41;;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9390.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9390.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 16:56:28]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ oops...ok, this is what's in the txt-file:<br /> <br /> Filename = /home/brasseur/public_html/gastenboek/templates/entry.php	Filesize = 894<br /> Filename = /home/brasseur/public_html/gastenboek/templates/com.php	Filesize = 224<br /> Filename = /home/brasseur/public_html/gastenboek/templates/url.php	Filesize = 143<br /> Filename = /home/brasseur/public_html/gastenboek/templates/icq.php	Filesize = 169<br /> Filename = /home/brasseur/public_html/gastenboek/templates/aim.php	Filesize = 158<br /> Filename = /home/brasseur/public_html/gastenboek/templates/email.php	Filesize = 131<br /> Filename = /home/brasseur/public_html/gastenboek/templates/user_pic.php	Filesize = 180<br /> Filename = /home/brasseur/public_html/gastenboek/templates/header.php	Filesize = 1888<br /> Filename = /home/brasseur/public_html/gastenboek/templates/body.php	Filesize = 2196<br /> Filename = /home/brasseur/public_html/gastenboek/templates/footer.php	Filesize = 0<br /> Filename = /home/brasseur/public_html/gastenboek/templates/entry.php	Filesize = 894<br /> Filename = /home/brasseur/public_html/gastenboek/templates/com.php	Filesize = 224<br /> Filename = /home/brasseur/public_html/gastenboek/templates/url.php	Filesize = 143<br /> Filename = /home/brasseur/public_html/gastenboek/templates/icq.php	Filesize = 169<br /> Filename = /home/brasseur/public_html/gastenboek/templates/aim.php	Filesize = 158<br /> Filename = /home/brasseur/public_html/gastenboek/templates/email.php	Filesize = 131<br /> Filename = /home/brasseur/public_html/gastenboek/templates/user_pic.php	Filesize = 180<br /> Filename = /home/brasseur/public_html/gastenboek/templates/header.php	Filesize = 1888<br /> Filename = /home/brasseur/public_html/gastenboek/templates/body.php	Filesize = 2196<br /> Filename = /home/brasseur/public_html/gastenboek/templates/footer.php	Filesize = 0<br /> Filename = /home/brasseur/public_html/gastenboek/templates/entry.php	Filesize = 894<br /> Filename = /home/brasseur/public_html/gastenboek/templates/com.php	Filesize = 224<br /> Filename = /home/brasseur/public_html/gastenboek/templates/url.php	Filesize = 143<br /> Filename = /home/brasseur/public_html/gastenboek/templates/icq.php	Filesize = 169<br /> Filename = /home/brasseur/public_html/gastenboek/templates/aim.php	Filesize = 158<br /> Filename = /home/brasseur/public_html/gastenboek/templates/email.php	Filesize = 131<br /> Filename = /home/brasseur/public_html/gastenboek/templates/user_pic.php	Filesize = 180<br /> Filename = /home/brasseur/public_html/gastenboek/templates/header.php	Filesize = 1888<br /> Filename = /home/brasseur/public_html/gastenboek/templates/body.php	Filesize = 2196<br /> Filename = /home/brasseur/public_html/gastenboek/templates/footer.php	Filesize = 0<br /> <br /> Only file with size 0 is footer.php...would that be the prob?   -ADDED: Well, I checked the original file, and the footer-thing is where it says "powered by...."<br /> <br /> [u][b]ADDED:[/b][/u]<br /> <br /> Carbonize...I inserted the original text in the footer between comment tags, and now the error message is gone...apparently none of the files may be 0 bytes "large", they should at least have 1 byte or so is my guess...<br /> <br />  [color="blue"][b]THANK YOU A 1000 TIMES FOR YOUR EFFORTS[/b][/color], it was great trying out the PHP-wilderness with ya!!!  [color="blue"][b]<br /> <br /> Maximum respect![/b][/color]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9392.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9392.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 17:18:30]]> GMT</pubDate>
				<author><![CDATA[ vickster]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Did you mistakenly delete the info in your footer.php file? Here is a copy of footer.php if you need it. Iam assuming its version 2.3.1<br /> <br /> [quote][color="green"]&lt;center&gt;&lt;b&gt;&lt;font face="Arial, Helvetica, sans-serif" color="#CCCCCC" size="1"&gt;Powered by &lt;a href="http://www.proxy2.de" target="_blank"&gt;&lt;font color="#CCCCCC" size="1"&gt;Advanced Guestbook 2.3.1&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/b&gt;&lt;/center&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;[/color][/quote]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9394.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9394.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 17:27:40]]> GMT</pubDate>
				<author><![CDATA[ JTD]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I think I had this problem when I first deleted the footer. You can simply put a space in the file and it should work fine without adding anything to the site or use &amp;nbsp;.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3351/9397.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3351/9397.php</link>
				<pubDate><![CDATA[Sun, 25 Jul 2004 17:38:22]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>