Re: [PHP] "Invalid content" using FastTemplates

2002-07-09 Thread Alberto Serra


ðÒÉ×ÅÔ!

PeterV wrote:
>> Warning:  Invalid content of \{\} in 
>> /home/httpd/includes/fasttemplate.class.php on line 199

You are on windows, aren't you? I remember seeing such a thing some two 
years ago. It vanished after php reinstallation. After that I did the 
right thing and had microsoft vanish from my life forever.

Anyway, it was something in the ereg that gets the symbols to substitute 
in the template. You should look there. But before you turn your HTML 
templates upside down do try and reinstall PHP. As far as I can remember 
everything worked by taking away the {} containers around the symbol 
(and in the ereg expression). Which is to say you should go thru 
thousands of HTML fragments. But really, it's been a long time.

As for version problems, I use FastTemplate since ages and never saw 
anything like that on a LinuxBox. Right now I am running the last 
version on the machine I am writing from. And FastTemplate runs with no 
problems.

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] "Invalid content" using FastTemplates

2002-07-09 Thread PeterV

The fix presented on the top of this page
http://www.thewebmasters.net/php/FastTemplate.phtml
Doesn't solve the problem. I have tried to replace
$key = '{'."$key".'}';½
with
$key = '\{'."$key".'\}';
still no luck!

Is there a version of FastTemplates available somewhere that just works?
thanks
Peter

At 11:38 AM 7/9/2002, you wrote:
>Help!
>I was using FastTemplates on my local machine AND on my personal server 
>and it all worked well. When I am uploading the code to my client's server 
>today, I get this strange warning whenever using FastTemplates:
>
>Warning:  Invalid content of \{\} in 
>/home/httpd/includes/fasttemplate.class.php on line 199
>
>I get about 50 lines like this.
>A google search shows other sites have had the same problem with 
>FastTemplates:
>http://www.google.com/search?sourceid=navclient&q=%22Invalid+content%22
>But a search on the php.net site didn't give any results.
>
>In the code, line 199 of fasttemplate.class.php is empty, followed by the 
>following code:
>
> function utime ()
>
> {
>
> $time = explode( " ", microtime());
>
> $usec = (double)$time[0];
>
> $sec = (double)$time[1];
>
> return $sec + $usec;
>
> }
>
>I really am stuck: this didn't happen on my local machine or on my test 
>server, it's happening on the client's machine now and they are expecting 
>the site today and I have no idea what's wrong. We've had problems with 
>permissions on their server, maybe that has something to do with it 
>I'm no sysadmin and the sysadmin they use doesn't know much.
>
>Any ideas on what to do?? I really need to fix this asap - help!
>Peter
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] "Invalid content" using FastTemplates

2002-07-09 Thread PeterV

I am using php4.0.6, and on this page
http://twig.screwdriver.net/file.php3?file=FAQ&plaintext=1
I found a mention of this error saying that it is because of changes in 
PHP4. However, I am using PHP 4 locally and on the test server and they 
both work.
Do I have to ask them to upgrade to PHP 4.2.0?? If that doesn't fix it I'll 
look stupid having asked that!
Peter



At 11:38 AM 7/9/2002, you wrote:
>Help!
>I was using FastTemplates on my local machine AND on my personal server 
>and it all worked well. When I am uploading the code to my client's server 
>today, I get this strange warning whenever using FastTemplates:
>
>Warning:  Invalid content of \{\} in 
>/home/httpd/includes/fasttemplate.class.php on line 199
>
>I get about 50 lines like this.
>A google search shows other sites have had the same problem with 
>FastTemplates:
>http://www.google.com/search?sourceid=navclient&q=%22Invalid+content%22
>But a search on the php.net site didn't give any results.
>
>In the code, line 199 of fasttemplate.class.php is empty, followed by the 
>following code:
>
> function utime ()
>
> {
>
> $time = explode( " ", microtime());
>
> $usec = (double)$time[0];
>
> $sec = (double)$time[1];
>
> return $sec + $usec;
>
> }
>
>I really am stuck: this didn't happen on my local machine or on my test 
>server, it's happening on the client's machine now and they are expecting 
>the site today and I have no idea what's wrong. We've had problems with 
>permissions on their server, maybe that has something to do with it 
>I'm no sysadmin and the sysadmin they use doesn't know much.
>
>Any ideas on what to do?? I really need to fix this asap - help!
>Peter
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] "Invalid content" using FastTemplates

2002-07-09 Thread PeterV

Help!
I was using FastTemplates on my local machine AND on my personal server and 
it all worked well. When I am uploading the code to my client's server 
today, I get this strange warning whenever using FastTemplates:

Warning:  Invalid content of \{\} in 
/home/httpd/includes/fasttemplate.class.php on line 199

I get about 50 lines like this.
A google search shows other sites have had the same problem with FastTemplates:
http://www.google.com/search?sourceid=navclient&q=%22Invalid+content%22
But a search on the php.net site didn't give any results.

In the code, line 199 of fasttemplate.class.php is empty, followed by the 
following code:

 function utime ()

 {

 $time = explode( " ", microtime());

 $usec = (double)$time[0];

 $sec = (double)$time[1];

 return $sec + $usec;

 }

I really am stuck: this didn't happen on my local machine or on my test 
server, it's happening on the client's machine now and they are expecting 
the site today and I have no idea what's wrong. We've had problems with 
permissions on their server, maybe that has something to do with it I'm 
no sysadmin and the sysadmin they use doesn't know much.

Any ideas on what to do?? I really need to fix this asap - help!
Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php