How to insert a reference to a blog in my entry?
[SMARTY] DIRECTORY_SEPARATOR not defined
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > PHP web-programming > [SMARTY] DIRECTORY_SEPARATOR­ not defined 3 June 2002 20:01:19

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

[SMARTY] DIRECTORY_SEPARATOR­ not defined

Werner Schweizer 3 June 2002 20:01:19
 Smarty 2.1.1 uses a new definition
define('DIR_SEP', DIRECTORY_SEPARATOR­);
but DIRECTORY_SEPARATOR­ is not defined anywhere.

Running this version on a site where PHP 4.0.4pl1 is installed,
this leads to errors.
On my machine with PHP 4.1.2 it runs.
So I guess, DIRECTORY_SEPARATOR­ is a newly defined constant in PHP.

I succest, to define it in smarty if it is not already defined.

if(!defined('DIRECT­ORY_SEPARATOR'))
{
define('DIRECTORY_S­EPARATOR', '/');
}

Werner Schweizer



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


Add comment
Robert Amos 26 May 2002 17:36:28 permanent link ]
 DIRECTORY_SEPERATOR was first defined in php 4.0.6.

It was for that and a few other options that further the development of
Smarty that it's recommended to be run on 4.0.6 or later.

-bok


On 27/5/02 12:24 AM, Werner Schweizer banged a keyboard and produced the
following weird but readable email:
Smarty 2.1.1 uses a new definition> define('DIR_SEP', DIRECTORY_SEPARATOR­);> but DIRECTORY_SEPARATOR­ is not defined anywhere.>
Running this version on a site where PHP 4.0.4pl1 is installed,> this leads to errors.> On my machine with PHP 4.1.2 it runs.> So I guess, DIRECTORY_SEPARATOR­ is a newly defined constant in PHP.>
I succest, to define it in smarty if it is not already defined.>
if(!defined('DIRECT­ORY_SEPARATOR'))> {> define('DIRECTORY_S­EPARATOR', '/');> }>
Werner Schweizer>


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


Add comment
Monte Ohrt 3 June 2002 20:01:19 permanent link ]
 Robert Amos wrote:> DIRECTORY_SEPERATOR­ was first defined in php 4.0.6.>
It was for that and a few other options that further the development of> Smarty that it's recommended to be run on 4.0.6 or later.>
-bok>
On 27/5/02 12:24 AM, Werner Schweizer banged a keyboard and produced the> following weird but readable email:>
Smarty 2.1.1 uses a new definition>>define(­'DIR_SEP', DIRECTORY_SEPARATOR­);>>but DIRECTORY_SEPARATOR­ is not defined anywhere.>>
Running this version on a site where PHP 4.0.4pl1 is installed,>>this leads to errors.>>On my machine with PHP 4.1.2 it runs.>>So I guess, DIRECTORY_SEPARATOR­ is a newly defined constant in PHP.>>
I succest, to define it in smarty if it is not already defined.>>
if(!defined('DIRE­CTORY_SEPARATOR'))>>­{>> define('DIRECTORY_S­EPARATOR', '/');>>}

That may not be the directory separator for your architecture, which is
why DIRECTORY_SEPARATOR­ is defined by PHP. If you really want to run
Smarty in pre 4.0.6 versions of PHP, then do this definition in your
application and hope everything else is compatible :-)­

Monte


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


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > PHP web-programming > [SMARTY] DIRECTORY_SEPARATOR­ not defined 3 June 2002 20:01:19

see also:
Repost (corrected explanation): Lengthy…
Add toolbar to MS Access
Stampa unione Word 2003
пройди тесты:
Do you really know yourself?
see also:
Microsoft France Site Defaced by…
87 trans am timing
Java code for Writing to PDF file in…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .