icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP Fatal error: bindtextdomain()

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old November 6th, 2004, 4:18 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2003
33 posts
Gave thanks: 0
Thanked 0 times
Question PHP Fatal error: bindtextdomain()

This calendar script is working fine for couple days, then all of sudden it's not working anymore. And the guy who made this script said, I should ask my webserver ( surpass ) to add multibyte string support to this PHP installation, because most likely I won't have permissions to compile and install programs in the server.

Here is the error

PHP Code:
Fatal errorCall to undefined function: bindtextdomain() in /home/.... on line 72 

Anybody can help me to solve this ?
masboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 6th, 2004, 8:14 PM   #2 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2004
28 posts
Gave thanks: 0
Thanked 0 times
Here's a quote of some of the things enabled, in the "php.ini".

Quote:
'--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex'
So, the support appears to be there (on my sever at least). I further looked it up on the internet and the "bindtextdomain()" function is a part of "gettext" functions. This too appears to be enabled in the 'php.ini'.

If we investigate further we'll see that encoding and translation for "mbstrings" is off, on my sever. And a couple other parts have no value; I don't know if they should though.
Quote:
mbstring.encoding_translation, local-value(Off) mater-value(Off).
There are three possibilities as I see it. One, it's not compiled on your server. Two, the support is there but the encoding translation being off effects your script. Three, whoever made these script/s for you didn't code them properly and there is no code defined for "bindtextdomain()". It's also possible that the code is there in the third case but the script/s aren't completely functional, maybe because of a faulty "include" or "require" statement.

What we need from you is:
1. All other error statements, if there are more.
2. We need to know what server you're on and the settings for that sever.
3. The rest or most of your code; specifically, parts related to "bindtextdomain()".

To get the server information, please use the code below.
PHP Code:
 <?php
phpinfo
();
?>
The name of your sever is on the first line, called system. It'll be something like this.

myservername.surpasshosting.com

Are all the lines below enabled, somewhere in the second line called "configure command".

'--with-gettext' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex'

Find the main "gettext" section below, it'll have a bold-black type-face; check to see if it's enabled, on the listing there.
Find the section for mystring, it'll be in bold type too; check to see if encoding and translation is off, like my server.

Hopefully from all of that something can be done, we'll just wait and see.

Last edited by cassius; November 6th, 2004 at 8:18 PM..
cassius is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On