Jump to content

Timbo

Members
  • Posts

    7
  • Joined

  • Last visited

Timbo's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hmm...I think I have to withdraw this statement. I installed the full version of MT + extra libraries. So that's why I didn't have to install HTML::Template separately. Oh well. If you don't want any surprises installing MT then I suggest to download the version that comes with the extra libraries.... Sorry for the confusion, Tim
  2. Thanks a lot for this info! I just wanted to install MT today, so after reading your post I decided to try installing it using your method. And it worked without a problem! Thumbs Up Some things I ran into that can help other newbies: 1. At first I didn't knew how to get a Secure CGI directory. You'll have to go to cPanel and select 'CGI Wrapper' (under CGI Scripts). Then it will be created for you automagically. 2. It appears that it's not always necessary to install HTML::Template. My server (#40) already had it installed. But mt-check.cgi will tell you if this is the case for your server as well. Okay that's all I have to say about that. Just follow bbommarito's instructions and the MT manual, and it will work! Thanks! Tim
  3. Hello again, Have you read the PHP manual about substr() and the comments posted by other users? http://www.php.net/manual/en/function.substr.php A user there named 'ken at wisers dot com' suggests the following replacement function: >function dbyte_substr($str, $start, $len=''){ if($len == ''){ $outstr = substr($str, $start); }else{ $outstr = substr($str, $start, $len); // Check the end bound is an double byte first byte or not if(preg_match("/[\x80-\xFF]$/", $outstr)){ $outstr = substr("$outstr", 0, -1); } } return $outstr; } I have never tried or tested this, so don't blame me if the server blows up or something like that! BTW, what encoding are you using for Chinese? My best, Tim
  4. Hi, I haven't used PHP in a while, but I thought substr() does not support Multi-byte characters. Try using mb_substr() instead. For mb_substr() to work, PHP has to be compiled with the "--enable-mbstring" option. I have no idea if that's the case for your server. My best, Tim
×
×
  • Create New...