[PHP] Multi-language in script

2005-01-26 Thread Zoran Lorkovic
Hi I'm interested, which is the best way to include multi-language support in scripts? By this I mean that with new version of script/program end-user don't need to translate whole site again... With flat-file and define function or with mysql ? Regards, Zoran

[PHP] Multi-language in script

2005-01-26 Thread Zoran Lorkovic
Hi I'm interested, which is the best way to include multi-language support in scripts? By this I mean that with new version of script/program end-user don't need to translate whole site again... With flat-file and define function or with mysql ? Regards, Zoran -- PHP General Mailing List

[PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
Hi Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I got some strange chars like small square (this I see when open in NotePad). When I try to open in WordPad this strange chars (squares) are recognized as new lines so in my file I got many

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
From: Zoran Lorkovic [EMAIL PROTECTED] Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I got some strange chars like small square (this I see when open in NotePad). [snip] Am I missing something? You forgot to post your code

[PHP] preg_replace question

2004-09-09 Thread Zoran Lorkovic
Hi Sorry for issuing this again, but I need help with preg_replace. I manage to replace certain text between b/b in text with preg_replace but I want for every other b/b to be replaced by other text. By this I mean when some text between b/b has been found that text is replaced with some Text,

Re: [PHP] Re: Problem sending mail

2004-08-31 Thread Zoran Lorkovic
Zoran Lorkovic wrote: $file = file_get_contents(text.inc); $start = [start]; $end = [/end]; $pos_start = strpos ($file, $start); $pos_end = strpos ($file, $end); $data = substr ($file, $pos_start, $pos_end); mail ([EMAIL PROTECTED], My Subject, $data

[PHP] Problem sending mail

2004-08-30 Thread Zoran Lorkovic
$file = file_get_contents(text.inc); $start = [start]; $end = [/end]; $pos_start = strpos ($file, $start); $pos_end = strpos ($file, $end); $data = substr ($file, $pos_start, $pos_end); mail ([EMAIL PROTECTED], My Subject, $data); This code works when I call it