|
From: Jason F. <jas...@ya...> - 2002-05-08 18:04:40
|
Hey all I finally imported reactos.org into cvs (cvs co reactos.org). Unfortunately I accidentally imported all my compiled template files too!! If you check it out, remove everything in the templates_c directory (but leave the directory itself there). There's an install.txt, but it's bound to be lacking, so just mail me with any queries. It's very much a work in progress... but give it a spin. - Jason __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
|
From: KJK::Hyperion <no...@li...> - 2002-05-08 20:19:12
|
At 20.04 08/05/2002, you wrote: >I finally imported reactos.org into cvs (cvs co reactos.org). >Unfortunately I accidentally imported all my compiled template files too!! >If you check it out, remove everything in the templates_c directory (but >leave the directory itself there). There's an install.txt, but it's bound >to be lacking, so just mail me with any queries. It's very much a work in >progress... but give it a spin. First of all, a suggestion: always htmlspecialchars() *ALL* text that is to be output literally, if you're outputting any kind of SGML (be it HTML, XML or whatever). This applies to text nodes and (easily overlooked) tag attribute values. It protects from any kind of code injection through HTML. If you know you have unprotected outputs, check them! Another suggestion: always output something. PHP sends by default a content size header of zero bytes, because the content is generally generated on the fly. If you don't send anything some browsers (for example Opera) will think that the page hasn't output anything *YET*, and wait until they time out. This applies to tables.mysql.php. Add some progress messages after every table is created (I can fix this) Finally: can't get it to run! :-/ index.php gives this error: Warning: Smarty error: unable to read template resource: "index.tpl" in D:\programmi\sviluppo\librerie\Smarty\Smarty.class.php on line 546 Some details on how I deployed rosproj: - I couldn't use the recommended <http://localhost/rosproj/> URL since I have a dozen virtual hosts configured on this machine, and want to keep the default host non-configured. So I gave it an URL of <http://rosproj.aldebaran/rosproj/> - rosproj is installed in D:\misc\wwwroot\rosproj\rosproj - Smarty is installed in D:\programmi\sviluppo\librerie\Smarty\Smarty.class.php - PHP is installed in D:\devtools\php - my PHP include_path reads: include_path = ".;D:\devtools\php\pear\;D:\programmi\sviluppo\librerie\Smarty\" All looks fine to me. Maybe I need additional configuration for PHP? can you send me your php.ini? |
|
From: Jason F. <jas...@ya...> - 2002-05-08 20:56:11
Attachments:
php.zip
|
--- "KJK::Hyperion" <no...@li...> wrote: >First of all, a suggestion: always htmlspecialchars() *ALL* text >that is to be output literally, if you're outputting any kind of >SGML (be it HTML, XML or whatever). This applies to text nodes and >(easily overlooked) tag attribute values. It protects from any kind >of code injection through HTML. If you know you have unprotected >outputs, check them! I'll check it out. >Another suggestion: always output something. PHP sends by default a >content size header of zero bytes, because the content is generally >generated on the fly. If you don't send anything some browsers (for >example Opera) will think that the page hasn't output anything >*YET*, and wait until they time out. This applies to >tables.mysql.php. Add some progress messages after every table is >created (I can fix this) Ok thanks for the tip, you can fix it if you like. >Finally: can't get it to run! :-/ index.php gives this error: >Warning: Smarty error: unable to read template resource: >"index.tpl" in >D:\programmi\sviluppo\librerie\Smarty\Smarty.class.php on line 546 Did you delete everything in templates_c, but keep the directory itself? Which version of Smarty are you running? Myself I was using 1.5.2. >Some details on how I deployed rosproj: >... >All looks fine to me. Maybe I need additional configuration for >PHP? can you send me your php.ini? Looks fine to me, which version of PHP are you running? I'll zip and attach my php.ini for what it's worth. - Jason __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
|
From: KJK::Hyperion <no...@li...> - 2002-05-09 00:26:25
|
At 22.56 08/05/2002, you wrote: > >Finally: can't get it to run! :-/ index.php gives this error: > >Warning: Smarty error: unable to read template resource: > >"index.tpl" in > >D:\programmi\sviluppo\librerie\Smarty\Smarty.class.php on line 546 >Did you delete everything in templates_c, but keep the directory itself? yep. It's empty >Which version of Smarty are you running? Myself I was using 1.5.2. 2.1.1 > >All looks fine to me. Maybe I need additional configuration for > >PHP? can you send me your php.ini? >Looks fine to me, which version of PHP are you running? 4.0.5 >I'll zip and attach my php.ini for what it's worth. PHP is inconsistent in that important features can be enabled/disabled/controlled by the administrator, potentially disrupting some scripts |
|
From: Jason F. <jas...@ya...> - 2002-05-09 05:39:41
|
--- "KJK::Hyperion" <no...@li...> wrote: >>Which version of Smarty are you running? Myself I was using 1.5.2. >2.1.1 I'll try out the newer version today and see what's going on. >4.0.5 Sounds good. - Jason __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com |
|
From: Steven E. <Ste...@ya...> - 2002-05-09 06:12:19
|
I have to go out of town but when get back I will load the code on reactos.org Steven "Every revolution was once a thought in one man's mind" - Ralph Waldo Emerson > -----Original Message----- > From: rea...@li... > [mailto:rea...@li...] On Behalf > Of Jason Filby > Sent: Thursday, May 09, 2002 1:40 AM > To: rea...@li... > Subject: Re: [ros-kernel] ReactOS.org in CVS > > > --- "KJK::Hyperion" <no...@li...> wrote: > >>Which version of Smarty are you running? Myself I was using 1.5.2. > >2.1.1 > > I'll try out the newer version today and see what's going on. > > >4.0.5 > > Sounds good. > > - Jason > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download > mirrors. We supply the hardware. You get the recognition. > Email Us: ban...@so... > _______________________________________________ > reactos-kernel mailing list rea...@li... > https://lists.sourceforge.net/lists/listinfo/reactos-kernel > |
|
From: Casper H. <ch...@us...> - 2002-05-09 19:14:25
|
tor, 2002-05-09 kl. 00:40 skrev KJK::Hyperion: > >Looks fine to me, which version of PHP are you running? > > 4.0.5 http://www.phpinsider.com/php/code/Smarty/INSTALL says PHP 4.0.6 or later is required. |
|
From: Jason F. <jas...@ya...> - 2002-05-09 21:32:48
|
Thanks for finding that Casper! - Jason --- Casper Hornstrup <ch...@us...> wrote: > tor, 2002-05-09 kl. 00:40 skrev KJK::Hyperion: > > >Looks fine to me, which version of PHP are you running? > > > > 4.0.5 > > http://www.phpinsider.com/php/code/Smarty/INSTALL > > says PHP 4.0.6 or later is required. > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > the hardware. You get the recognition. Email Us: > ban...@so... > _______________________________________________ > reactos-kernel mailing list > rea...@li... > https://lists.sourceforge.net/lists/listinfo/reactos-kernel __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com |
|
From: KJK::Hyperion <no...@li...> - 2002-05-09 22:00:44
|
At 21.12 09/05/2002, you wrote: > > >Looks fine to me, which version of PHP are you running? > > 4.0.5 >http://www.phpinsider.com/php/code/Smarty/INSTALL >says PHP 4.0.6 or later is required. ak! I'll upgrade and retry |
|
From: Jason F. <jas...@ya...> - 2002-05-09 18:25:43
|
I tried Smarty 2.1.1 and it works fine. What is the URL you type into the browser? - Jason --- "KJK::Hyperion" <no...@li...> wrote: > Finally: can't get it to run! :-/ index.php gives this error: > > Warning: Smarty error: unable to read template resource: > "index.tpl" in > D:\programmi\sviluppo\librerie\Smarty\Smarty.class.php on line 546 > > Some details on how I deployed rosproj: > - I couldn't use the recommended <http://localhost/rosproj/> URL > since I > have a dozen virtual hosts configured on this machine, and want to > keep the > default host non-configured. So I gave it an URL of > <http://rosproj.aldebaran/rosproj/> > - rosproj is installed in D:\misc\wwwroot\rosproj\rosproj > - Smarty is installed in > D:\programmi\sviluppo\librerie\Smarty\Smarty.class.php > - PHP is installed in D:\devtools\php > - my PHP include_path reads: > include_path = > ".;D:\devtools\php\pear\;D:\programmi\sviluppo\librerie\Smarty\" > > All looks fine to me. Maybe I need additional configuration for > PHP? can > you send me your php.ini? > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > the hardware. You get the recognition. Email Us: > ban...@so... > _______________________________________________ > reactos-kernel mailing list > rea...@li... > https://lists.sourceforge.net/lists/listinfo/reactos-kernel __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com |