Re: [PHP] Ftp upload

2011-06-14 Thread Eli Orr (Office)
Dear Experts, Can you please advise how can I detect a string if it is UTF-8 or now and how can I if possible convert a string to a utf-8 ? Here's the string I got from client - client sends it via POST with urlencode and does apply UTF-8 encoding on the string. Here's the string I got: 

[PHP] PHP to Java integration using : shell_exec function

2011-05-26 Thread Eli Orr (Office)
Hi, Please advise if the following is possible and how can pass parameters from the PHP to the Java application. Thanks. Here's my script draft: // The XML_toEnc is a string and shall be urlencoded ! $EncXML = shell_exec(""/usr/bin

[PHP] How can a UTF-8 string can be converted to an array of Bytes?

2011-05-25 Thread Eli Orr (Office)
Hi, Since a UTF-8 is a multi-bytes mechanism I get for 2 or 3 bytes UTF-8 encoded character a single character How can it be break into the REAL bytes array that represent the UTF-8 string and how can we reassembled the bytes array back to UTF-8? -- Best Regards, *Eli Orr* CTO & Founde

[PHP] GnuPG from PHP - Where is the include ??

2011-05-24 Thread Eli Orr (Office)
Please advise - I'guess it is not a build in and looking for the GnuPG PHP include as all the GnuPG functions are now considered undefined. See below. Thanks Eli // GnuPG from PHP - Where is the include ?? // http://www.gnupg.org/gph/en/manual.html // http://www.gnupg.org/documentation/how

Re: [PHP] Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?

2011-05-22 Thread Eli Orr (Office)
Thank you Peter. Can you please advise if mb_detect_encodin does detect the file type by its structure / content? Thanks Eli On 22/05/2011 10:12, Peter Lind wrote: On 22 May 2011 09:03, Eli Orr (Office) wrote: Dear Peter, But my point was different. If you DO NOT have any BOM of a

Re: [PHP] Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?

2011-05-22 Thread Eli Orr (Office)
Dear Peter, But my point was different. If you DO NOT have any BOM of a File does mb_detect_encodin can detect the file type by scanning the whole file ?? Thanks Eli On 22/05/2011 09:53, Peter Lind wrote: On 22 May 2011 08:17, Eli Orr (Office) wrote: Hi Adam, I have a prof that the

Re: [PHP] Check the byte sequence of a file to tell if it is UTF-8 without the BOM using PHP ?

2011-05-21 Thread Eli Orr (Office)
one character into one, two or three character. Any advise if I'm right on this or smart file scan function that makes it? Eli On 21/05/2011 20:03, Adam Richardson wrote: On Sat, May 21, 2011 at 12:10 PM, Eli Orr (Office) mailto:eli@logodial.com>> wrote: Dear PHP Gurus,

[PHP] a Debate here - How can you check a if a file is a UTF-8 without the BOM using PHP ?

2011-05-21 Thread Eli Orr (Office)
Dear PHP Gurus, I have a debate on the following please let me know what is true / false. I'am using a PHP function *is_UTF_8_file ($file_name) *that I've found as part of my PHP 5.3 installation. This function checks if the file start with the 3 UTF-8 BOM bytes. However another guy told me

Re: [PHP] Sending Email via SMTP account using PHP

2011-05-18 Thread Eli Orr (Office)
Thanks Daniel! It works perfect. Eli On 18/05/2011 17:47, Daniel Brown wrote: On Wed, May 18, 2011 at 03:17, Eli Orr (Office) wrote: Hi, I'm looking for a good example for using a real SMTP account to send email from, such as serv...@somai.com where there is a user& password

[PHP] Sending Email via SMTP account using PHP

2011-05-18 Thread Eli Orr (Office)
Hi, I'm looking for a good example for using a real SMTP account to send email from, such as serv...@somai.com where there is a user & password and smtp server available. Please advise with a good example to reuse, Thanks Eli -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] How to enable UTF-8 Subject String ? Only Body is set ok

2011-05-17 Thread Eli Orr (Office)
Hi, I'm trying to enable a whole Email as UTF-8 - The Body is OK but the Subject remains ANSI - Please help $headers = "From:$from". "\r\n" . "Reply-To:$from" . "\r\n" . "*Content-type:text/html;charset=utf-8;"*."\r\n" . "X-Mailer: PHP/".phpversio

Re: [PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net

2011-05-08 Thread Eli Orr (Office)
Thanks. Great! It works so well ! On 08/05/2011 15:01, Peter Lind wrote: On May 8, 2011 1:57 PM, "Eli Orr (Office)" wrote: Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I

[PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net

2011-05-08 Thread Eli Orr (Office)
Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I look for a service function that can save the parsed array into a file. let say : $stt = save_POST_into_file ($_POST, $fp); Any idea ?

Re: [PHP] Improve server HTTP GET server response - HTTP 1.1 ?

2011-04-26 Thread Eli Orr (Office)
enhanced HTTP of V1.1 ? Thanks Eli On 26/04/2011 21:00, Ashley Sheridan wrote: On Tue, 2011-04-26 at 12:37 +0300, Eli Orr (Office) wrote: Dear PHP Gurus, I have wrote a service that respond to a client HTTP GET request with BLOB of data: http://mimmage.com/cms/client_initialize1.php?OPERATOR

[PHP] Improve server HTTP GET server response - HTTP 1.1 ?

2011-04-26 Thread Eli Orr (Office)
Dear PHP Gurus, I have wrote a service that respond to a client HTTP GET request with BLOB of data: http://mimmage.com/cms/client_initialize1.php?OPERATOR=MIRS&ID=23412341234&OS=RIM The first time I call the HTTP GET it works very slow.. next calls it works much faster. Please advise how can