[PHP-WIN] Re: php-windows Digest 7 Jan 2003 22:58:11 -0000 Issue 1524

2003-01-08 Thread Neil Smith
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 --

  or


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 
[EMAIL PROTECTED] 
by putting "subscribe" in the subject.
describe your point or your suggestion to 
[EMAIL PROTECTED]

Regards,
Neil Smith.

At 22:58 07/01/2003 +, 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.



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-windows Digest 8 Jan 2003 11:58:26 -0000 Issue 1525

2003-01-08 Thread php-windows-digest-help

php-windows Digest 8 Jan 2003 11:58:26 - 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 - 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,  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."");
$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 +, 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 bit

Re: [PHP-WIN] [newbie] What does this mean?

2003-01-08 Thread paradiddles

Jim,

thanks for the response. Well- I think your right! I created index.htm and saved it to 
my htdocs dir.

I get the "file not found" when I try and bring it up. To answer your question ... I 
have:

DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/"


typed into my httpd.conf file just under: # symbolic links and aliases may be used to 
point to other locations.
#

Patrick

 




"you can observe a lot by watching"

  ~ Yogi Berra



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


[PHP-WIN] Newbie :: Class instance alive between pages??

2003-01-08 Thread Palli
Hello

I´m wondering how I keep class instance alive between pages.  Is it possible
to store it in Session and what is the "right" way to store it globaly?

thanx Palli



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Newbie :: Class instance alive between pages??

2003-01-08 Thread Luis Ferro
Yes, it is, but prior to accessing the stored value you will have to 
include the class file, otherwise, php will not know what object that 
thing in the session is...

LF

Palli wrote:

Hello

I´m wondering how I keep class instance alive between pages.  Is it possible
to store it in Session and what is the "right" way to store it globaly?

thanx Palli



 



---
[This E-mail scanned for viruses by Declude Virus]


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] New install problem / question

2003-01-08 Thread b
Hi,
I have just installed PHP4 onto a Win2k server with IIS5 [my first time with
PHP] -

And after having created a test script I have the following problem;

The script generates the [expected] output when accessed from the server
browser;
HOWEVER, when trying to access from a public or machine on the network I
get;

"No input file specified. "

What did I not do or do wrong?

TIA
Beetle



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] berkeley db3 on windows

2003-01-08 Thread Dave Viner
hi,
  i just got my windows/php/db3 env compiled.  But
when I run a simple test script, I get this error:

C:\TEMP>php -f simple.php

Notice: dba_open()
[http://www.php.net/function.dba-open]: read:
0x12f8f4, 256:
Permission denied in C:\TEMP\simple.php on line 3

Notice: dba_open()
[http://www.php.net/function.dba-open]:
testdbcache.db: Permission denied in
C:\TEMP\simple.php on line 3

Warning: dba_open(testdbcache.db,c)
[http://www.php.net/function.dba-open]: Driver
initialization failed for handler: db3: Permission
denied in C:\TEMP\simple.php on line 3
opened testdbcache.db ->

C:\TEMP>


The script looks like this:
 $id\n";
if($id)
{
dba_close($id);
echo "closed $path\n";
}
else
echo "nothing opened\n";
?>


It looks like a simple permissions problem, but the
weird thing is that the testdbcache.db file is
actually created in the directory, with 0 length.

has anyone seen this type of error or know how to fix
it?

thanks
dave


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] Newbie :: Class instance alive between pages??

2003-01-08 Thread Palli
So what is wrong with this code :

This is page 1 :

$MyFrett = new cFrett;

$_SESSION['cFrett'] = $MyFrett;

this is another page that is trying to use the class instance :

NewNews();
}
?>


thanx
Palli


"Luis Ferro" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yes, it is, but prior to accessing the stored value you will have to
include the class file, otherwise, php will not know what object that
thing in the session is...

LF

Palli wrote:

>Hello
>
>I´m wondering how I keep class instance alive between pages.  Is it
possible
>to store it in Session and what is the "right" way to store it globaly?
>
>thanx Palli
>
>
>
>
>


---
[This E-mail scanned for viruses by Declude Virus]




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] send a web page by email.

2003-01-08 Thread Camelia Moldovan

Hi! Does anyone know something about this?

I have a web page (generated using php)and I want to send it by email. I know how to 
send html emails using php but I don't know how to email the current page. Please help.

Thanks.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


[PHP-WIN] Re: send a web page by email.

2003-01-08 Thread Manuel Lemos
Hello,

On 01/08/2003 07:41 PM, Camelia Moldovan wrote:

Hi! Does anyone know something about this?

I have a web page (generated using php)and I want to send it by
email. I know how to send html emails using php but I don't know how
to email the current page. Please help.


Just use output buffering support to capture its output.

Alternatively you may try to pass its URL to fopen. You can also do that 
and pass the URL to this class function named AddFilePart.

http://www.phpclasses.org/mimemessage

Anyway, one thing for you to keep in mind is to avoid sending HTML only 
messages because that will make them be rejected by most SPAM filters. 
What you should do is to send an alternative text version along with the 
HTML version in the same message body. The class above comes with an 
example of how to do that.

--

Regards,
Manuel Lemos


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-WIN] Have you ever try the SSEditor, a IDE for PHP?

2003-01-08 Thread skyweb
visit our site: http://www.skyweb2k.com/sseditor



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php