php-windows Digest 8 Jan 2003 11:58:26 -0000 Issue 1525
Topics (messages 17716 through 17720):
Re: SMTP Authentication - Windows 2000
17716 by: Manuel Lemos
Found a problem/fix with php.ini?
17717 by: Rad Craig
Re: Subject: GD, UNICODE & RTL
17718 by: Neil Smith
someone help me if i m wrong ( PHP / QMAIL )
17719 by: Raheel Hussain
Re: php-windows Digest 7 Jan 2003 22:58:11 -0000 Issue 1524
17720 by: Neil Smith
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hello,
On 01/07/2003 05:42 PM, Laura E. Hunter wrote:
What messages do you get if any?
Error message when we invoke the MAIL function is as follows:
FATAL ERROR, <servername> has failed... quitting system.
This looks like the server name in php.ini is wrong.
Could be an issue with Exchange's anti-relay stuff?
The Exchange server is configured to allow clients who successfully
authenticate to relay mail. (Hence the SMTPAuth module.) This
What is that SMTPAuth module? POP based authentication?
configuration was working fine until we upgraded the Exchange box to Windows
2000, and except for the OS upgrade, no other configuration changes have
been made. So I'm trying to figure out what's different between the NT &
2000 authentication mechanism that has caused SMTPAuth to break.
mail() function error messages are often not useful. It also does not
support authentication AFAIK.
You may want to try this class that lets you specify authentication and
if anything fails you can enable debug mode to see the dialog with the
server in order to figure where it went wrong.
http://www.phpclasses.org/smtpclass
You can also use this other class that uses the above to send message
via SMTP and comes with a wrapper function named smtp_mail() that
emulates the mail() function with several advantages that may help you
solve your problem:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
I got all the smtp_email stuff, trying to get my mail() function working.
Well I got a test file, somone told me how to test it from a DOS box
(thanks!), ran it and it reported a parsing error in php.ini on line 65.
Now, I used the php.ini.recommended file when I setup/installed my PHP
4.3.0. In that file on line 65 is this line:
error_reporting = E_ALL [Code Cleanliness, Security(?)]
It's at the top, kind of a bunch of comments explaining stuff. When I
looked at it the only thing I saw different between it and the others was
the (?) in the little comment. I don't know squat about PHP, but I think
that was causing all of my problems, PHP would read down to that point and
then stop.
I changed it to:
error_reporting = E_ALL
; [Code Cleanliness, Security(?)]
Wrapped the comment to the next line and commented the comment out.
Wa-la, now my email works...without even using the SMTP stuff...it works
also however.
My error_log gets written to disk now...all my problems caused from this.
Just glad it's fixed and hope it helps someone else solve their problems.
================================
Rad Craig
--- End Message ---
--- Begin Message ---
Well if you *insist* on using GD - but I promise you, CSS is a better way
to do this.
You will need to generate your string, spilt the string into an array of
characters using the # character as a separator, then join your array in
reverse order to a new (reversed) string.
You can then pass this string to the imagettftext function.
Of course, I am assuming you know how to use the GD functions, and that you
have a suitable arabic font with corresponding Unicode characters.
Try this :
$myunicode="#4324#1221#1222#0133#0421#4219#1311";
// I made this string up - insert real unicode characters here
$mychararray=explode("#",$myunicode);
// Split into array of single unicode characters
$mychararray=array_reverse($mychararray);
// Reverse the array elements
$mynewunicode=join("#",$mychararray);
// Rejoin the elements with a # character
print("result so far :".$mynewunicode."<br>");
$mynewunicode="#".substr($mynewunicode,0,-1);
// Using join, there will be a trailing # and
// no required # at the start -- fix that
print($mynewunicode);
Then you can pass the $mynewunicode string to your TTF functions.
Hope that helps
Regards,
Neil Smith.
At 10:17 07/01/2003 +0000, you wrote:
Message-ID: <001c01c2b5fc$89147300$a652dbd9@mottaghi>
From: "Mottaghi" <[EMAIL PROTECTED]>
To: "PHP Windows Helplist" <[EMAIL PROTECTED]>
Date: Tue, 7 Jan 2003 06:56:09 +0330
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL
Hi all and thanks,
my problem:
I want to create my bitmaps with GD functions, I call GD functions (like
imagettftext()) and send them any RTL sentence, but it write and crate it
LTR!!!
thanks a lot :)
----- Original Message -----
From: "Neil Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 2:14 PM
Subject: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL
> Oops - missed a bit :
>
> Look here for mozilla information and examples on bi directional text:
>
> http://www.langbox.com/bidimozilla/
>
> Also check "text-kashida-space" and "writing-mode " here :
> http://www.georgehernandez.com/xWebs/CSS/CSSAttributes.htm
>
> regards,
> Neil.
>
>
> >Date: Mon, 06 Jan 2003 10:42:09 +0000
> >To: [EMAIL PROTECTED]
> >From: Neil Smith <[EMAIL PROTECTED]>
> >Subject: Re: Subject: GD, UNICODE & RTL
> >Cc: [EMAIL PROTECTED]
> >
> >Mottaghi - you might be better advised to investigate CSS for this on the
> >browser :
> >
>
--- End Message ---
--- Begin Message ---
hi,
I m using the mail() function on a server, but having problems,
the problem is that the mail is not being sent.
i consulted with the administrator then he said that i m using 3rd. party QMAIIL
component on the server
so if there is a 3rd party component is used.
what changes should i do for it,
should i use the Qmail object in place of php native mail() functions ??
or should there be some changes in the .ini file. ?
plz note that this is a plateform less questions
either windows 2000 server, or either Linux.
if there are different answers for both plateforms
then plz guide me
regards
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Hmm - I don't know that I really understand the problem you are having .
There is a web page using the CSS technique I have mentioned here - view
the HTML source to see how the CSS is used with Unicode character encodings :
http://www.unicode.org/unicode/standard/translations/arabic.html
Before using any CSS based solution , you will have to emit the correct
character encoding for your document : these should work for your users --
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-6"> or
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
You might find some help here - its the Arazilla (Mozilla) arabic fonts
program :
http://www.langbox.com/AraZilla/index_ar.html
They have a mailing list which might be more appropriate to your problem.
subscribe to
<mailto:[EMAIL PROTECTED]?subject=subscribe>[EMAIL PROTECTED]
by putting "subscribe" in the subject.
describe your point or your suggestion to
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
Regards,
Neil Smith.
At 22:58 07/01/2003 +0000, you wrote:
Message-ID: <001e01c2b648$95bff100$c352dbd9@mottaghi>
From: "Mottaghi" <[EMAIL PROTECTED]>
To: "PHP Windows Helplist" <[EMAIL PROTECTED]>
Date: Tue, 7 Jan 2003 15:59:04 +0330
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL
Hi,
look... in Arabic/Persian Languages we have 4 forms of one character that it
has only one UNICODE code, for example the "سسس" has 3
different view, "the first SIN", "the middle SIN" and "the last SIN". all of
these three "SIN" will mix together like Latin hand writings (freehand).
i reverse my sentences...but i cant write them currect on an image!
OK, but How can i use CSS to export an image file???
:) Thanks a lot
----- Original Message -----
From: "Neil Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, January 07, 2003 3:43 PM
Subject: Re: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL
> Well if you *insist* on using GD - but I promise you, CSS is a better way
> to do this.
>
> You will need to generate your string, spilt the string into an array of
> characters using the # character as a separator, then join your array in
> reverse order to a new (reversed) string.
> You can then pass this string to the imagettftext function.
>
> Of course, I am assuming you know how to use the GD functions, and that
you
> have a suitable arabic font with corresponding Unicode characters.
--- End Message ---