From: Richard M. P. <ri...@pa...> - 2002-02-21 07:21:54
|
I've installed phpESP on two other machines with no problem. I just installed in on the real server and there's a problem. At the top of every page I get this: Parse error: parse error in /home/sites/home/web/phpESP/admin/include/lib/esphtml.results.inc on line 238 (Line 238 is the last line of the file.) That file's contents are exactly the same on all three servers. What's different is I don't have a root account on the real server so I put phpESP in the web directory. All three servers are using php 4.1.1. On the problem server, here's how it was compiled: './configure' '--prefix=/usr/local' '--with-apxs=/usr/sbin/apxs' '--with-pgsql=/usr/local/pgsql_user' '--enable-mbregex' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-trans-sid' On the no problem servers, './configure' '--prefix=/usr/local' '--with-config-file-path=/etc/httpd/conf' '--with-apxs=/usr/sbin/apxs' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-apc' '--with-calendar=shared' '--with-gdbm=/usr/include' '--with-db=/usr' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-mysql=/usr' './configure' '--prefix=/usr/local' '--with-config-file-path=/etc/httpd/conf' '--with-apxs=/usr/sbin/apxs' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-apc' '--with-calendar=shared' '--with-gdbm=/usr/include' '--with-db=/usr' '--enable-mbstring' '--enable-mbstr-enc-trans' Here's how I modified the admin files on the problem server: [richard phpESP]$ grep -r 'sites' * admin/manage.php: $CONFIG = '/home/sites/home/web/phpESP/admin/phpESP.ini'; admin/phpESP.ini:$locale_path = '/home/sites/home/web/phpESP/locale'; admin/phpESP.ini:'include_path' => '/home/sites/home/web/phpESP/admin/include/', admin/phpESP.ini:'handler' => '/home/sites/home/web/phpESP/public/handler.php', admin/phpESP.ini:'handler_prefix' => '/home/sites/home/web/phpESP/public/handler-prefix.php', admin/.htaccess:AuthUserFile /home/sites/home/web/phpESP/admin/.htpasswd public/handler-prefix.php: require('/home/sites/home/web/phpESP/admin/phpESP.ini'); public/handler.php: require('/home/sites/home/web/phpESP/admin/phpESP.ini'); On one of the no problem servers: [root@academy-if phpESP]# grep -r 'contrib' * admin/manage.php: $CONFIG = '/usr/local/lib/php/contrib/phpESP/admin/phpESP.ini'; admin/phpESP.ini:$locale_path = '/usr/local/lib/php/contrib/phpESP/locale'; admin/phpESP.ini:'include_path' => '/usr/local/lib/php/contrib/phpESP/admin/include/', admin/phpESP.ini:'handler' => '/usr/local/lib/php/contrib/phpESP/public/handler.php', admin/phpESP.ini:'handler_prefix' => '/usr/local/lib/php/contrib/phpESP/public/handler-prefix.php', public/handler-prefix.php: require('/usr/local/lib/php/contrib/phpESP/admin/phpESP.ini'); public/handler.php: require('/usr/local/lib/php/contrib/phpESP/admin/phpESP.ini'); The cause must be something trivial, but for the life of me, even after a two hour staring contest with my PC, I can't figure it out. Thanks, Rich BTW, I password protected the admin dir so phpESP.ini can't be downloaded. |
From: <fl...@we...> - 2002-02-21 08:54:53
|
hello! has anyone an idea how to get run the trancelation system!? and how to find out if the lang- file is read by the system or is useing the "save_mode" !? all is finished but is not working! and the links of http://phpesp.sourceforge.net/internationalization.html or the little info in the phpesp.ini do not help very much! (i dont understand it actually: * If it cannot be loaded, define the NOP wrapper.* as well in locale/en/LC_MESSAGES/ i hav a file "messages.mo" wich has intressting signs in it!? do i need it? on all docs there are no desciptions about this extention *.mo ! as note! version 1.3. has an older lang-file in the tar-ball then the version you can find here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phpesp/phpESP/loca le/en/LC_MESSAGES/messages.po?rev=. hmmm... or is it just becaus the server has php4.0.6 !? the system work quite good!!? wouldn´t it be easier to trancelate the script in this way and in an extra lang-$lang.php file (could be fine and a place for a FAQ and Guide as well): define("_YES","Yoo!"); define("_FAQ","FAQ - Frequently A..... Questions"); well...i´m not into server side things and qustions about speed and server performance.....this is a way i know and makes sence to me and makes SAVE that all lang-versions can run :-) thank you! flobee |
From: James E. F. <jf...@ac...> - 2002-02-21 16:53:06
|
On Thu, 21 Feb 2002 fl...@we... wrote: > hello! > > has anyone an idea how to get run the trancelation system!? > and how to find out if the lang- file is read by the system or is useing the > "save_mode" !? Please see the message I just posted. > all is finished but is not working! and the links of > http://phpesp.sourceforge.net/internationalization.html or the little info > in the phpesp.ini do not help very much! (i dont understand it actually: * > If it cannot be loaded, define the NOP wrapper.* The NOP wrapper, is this: function _($s) {return($s);} function bindtextdomain($s) {} function textdomain($s) {} Which allows the rest of the script to call the gettext functions, however they only return the original English messages. > as well in > locale/en/LC_MESSAGES/ > i hav a file "messages.mo" wich has intressting signs in it!? do i need it? > on all docs there are no desciptions about this extention *.mo ! The messages.mo is a binary file. It is compiled from messages.po, as described in the GNU Gettext manual: http://www.gnu.org/manual/gettext/html_chapter/gettext_6.html#SEC32 However, if people send me the text translations (messages.mo) I will take care of producing the correct binary form. > as note! version 1.3. has an older lang-file in the tar-ball then the > version you can find here: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phpesp/phpESP/loca > le/en/LC_MESSAGES/messages.po?rev=. Yes. I switched to using the "strict" format for the messages file after the 1.3 release. However, if you send me a "messages.po" of either type, I will produce the correct binary form. > hmmm... or is it just becaus the server has php4.0.6 !? the system work > quite good!!? > > wouldn´t it be easier to trancelate the script in this way and in an extra > lang-$lang.php file (could be fine and a place for a FAQ and Guide as well): > define("_YES","Yoo!"); > define("_FAQ","FAQ - Frequently A..... Questions"); > well...i´m not into server side things and qustions about speed and server > performance.....this is a way i know and makes sence to me and makes SAVE > that all lang-versions can run :-) That type of system you describe would be very hard to maintain. The GNU Gettext package is designed to be used in this manner, and lets you maintain as many languages as you want concurrently. This also lets you have people using two different languages simultaneously (as determined by the preferences set in their browser). Take it easy, -James |
From: Sipke O. <si...@8a...> - 2002-02-21 17:46:35
|
I'm working for a while on the language files. I used the code from James to see if everything was allright, this is what it said: safe mode: Off gettext: loaded // You may also want to include: browser wants: rs1_93da007403f;q=0.0,rs2_c4195b7ab95;q=0.0,rs3_4c747e22c6;q=0.0 So everything seems to be allright, but I still see English as the primary language and not dutch. The dutch files I use are compiled by james and translated by me. I put the files in the /usr/local/lib/php/contribh/phpESP/locale/nl/LC_MESSAGES?. In the phpESP.ini file i changed $lang= 'en'; into $lang='nl'; the local path still says $local_path='/usr/local/lib/php/contrib/phpESP/locale' Anybody knows a thing to do about this? Regards, SIpke |
From: James E. F. <jf...@ac...> - 2002-02-21 18:01:27
|
On Thu, 21 Feb 2002, Sipke Overbeeke wrote: > I'm working for a while on the language files. I used the code from > James to see if everything was allright, this is what it said: > safe mode: Off > gettext: loaded > // You may also want to include: browser wants: > rs1_93da007403f;q=0.0,rs2_c4195b7ab95;q=0.0,rs3_4c747e22c6;q=0.0 What is this "rs1_93da007403f;q=0.0 ..."? HTTP_ACCEPT_LANGUAGE should look like: "en-us, nl" > So everything seems to be allright, but I still see English as the > primary language and not dutch. The dutch files I use are compiled by > james and translated by me. I put the files in the > /usr/local/lib/php/contribh/phpESP/locale/nl/LC_MESSAGES?. In the > phpESP.ini file i changed $lang= 'en'; into $lang='nl'; the local path > still says $local_path='/usr/local/lib/php/contrib/phpESP/locale' > > Anybody knows a thing to do about this? Hehehe... The "default" is not respected. I'll fix this this afternoon. -James |
From: James E. F. <jf...@ac...> - 2002-02-21 20:38:12
|
> > So everything seems to be allright, but I still see English as the > > primary language and not dutch. The dutch files I use are compiled by > > james and translated by me. I put the files in the > > /usr/local/lib/php/contribh/phpESP/locale/nl/LC_MESSAGES?. In the > > phpESP.ini file i changed $lang= 'en'; into $lang='nl'; the local path > > still says $local_path='/usr/local/lib/php/contrib/phpESP/locale' > > > > Anybody knows a thing to do about this? > > Hehehe... The "default" is not respected. I'll fix this > this afternoon. Here is a fixed phpESP.ini that does respect the default language choice. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phpesp/phpESP/admin/phpESP.ini?rev=1.16 -James |
From: James E. F. <jf...@ac...> - 2002-02-21 16:30:22
|
On Thu, 21 Feb 2002, Richard M. Pavonarius wrote: > I've installed phpESP on two other machines with no problem. I just > installed in on the real server and there's a problem. At the top of every > page I get this: > > Parse error: parse error in > /home/sites/home/web/phpESP/admin/include/lib/esphtml.results.inc on line 238 > (Line 238 is the last line of the file.) > > That file's contents are exactly the same on all three servers. What's > different is I don't have a root account on the real server so I put phpESP > in the web directory. All three servers are using php 4.1.1. On the problem > server, here's how it was compiled: --snip-- Just for kicks, could you tell me what this php code says when run on each server: <?php echo("prepend: " . ini_get("auto_prepend_file") . "<br>"); echo("append: " . ini_get("auto_append_file") . "<br>"); echo("gettext: " . (extension_loaded("gettext") ? "Yes" : "No") . "<br>"); echo("mysql: " . (extension_loaded("mysql") ? "Yes" : "No") . "<br>"); ?> Also, you could check to make sure all files have unix line breaks (\n) not DOS breaks (\r\n). -James |
From: James E. F. <jf...@ac...> - 2002-02-21 20:40:45
|
On Thu, 21 Feb 2002, James E. Flemer wrote: > On Thu, 21 Feb 2002, Richard M. Pavonarius wrote: > > > I've installed phpESP on two other machines with no problem. I just > > installed in on the real server and there's a problem. At the top of every > > page I get this: > > > > Parse error: parse error in > > /home/sites/home/web/phpESP/admin/include/lib/esphtml.results.inc on line 238 > > (Line 238 is the last line of the file.) > > > > That file's contents are exactly the same on all three servers. What's > > different is I don't have a root account on the real server so I put phpESP > > in the web directory. All three servers are using php 4.1.1. On the problem > > server, here's how it was compiled: > --snip-- Oops. There were some "short tags" in that file. You can download a fixed revision of the file at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phpesp/phpESP/admin/include/lib/esphtml.results.inc?rev=1.5 -James |