[PHP] owner of files created by fopen() become wrong?

2005-09-06 Thread Wong HoWang
Hi all, I am so sorry that I have a lot of questions... This time I got a special issue... I have set up a VirtualHost for the domain that have problem. Since I am using Apache/1.3.33 , I have set the User & Group inside & outside the ... tags. As you know, the user & group set outside Virt

[PHP] disable safe_mode with .htaccess ?

2005-09-05 Thread Wong HoWang
Hello everyone, I have a special question and want to ask here, hope anyone can answer me. My server is Apache/1.3.33 with PHP/4.3.10 I have AllowOverride All in my httpd.conf and safe_mode = On in php.ini , I want to turn off safe_mode in one folder by .htaccess , is it possiable? I don't want

[PHP] Re: Saturdays and Sundays

2005-09-01 Thread Wong HoWang
the answer is simply yes! You can have a simple for looping to do so. hope this help! ""Shaun"" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > Hi, > > Is it possible to get the number of saturdays and sundays for a given > month / year? > > Thanks for your help. -- PHP General Mailing List

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Wong HoWang
ant digit. > > Your code does exactly this, displaying pi with 15 decimal places. > > Jordan > > > > On Sep 1, 2005, at 8:06 AM, Wong HoWang wrote: > >> Dear all, >> >> I'm trying to do like this but failed: >> >> > ini_se

Re: [PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Wong HoWang
but my server configure don't have bcmath enabled, is there any other way to do so? "Torgny Bjers" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > Wong HoWang wrote: >> Dear all, >> >> I'm trying to do like this but failed: >> >> > in

[PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Wong HoWang
Dear all, I'm trying to do like this but failed: How can I get more digits after . ? Can anyone help? Thx! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help: Get the value of pi up to 200+ digits?

2005-09-01 Thread Wong HoWang
Dear all, I'm trying to do like this but failed: How can I get more digits after . ? Can anyone help? Thx! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Super globals ?

2005-08-20 Thread Wong HoWang
yes, I am asking how to start my own super global... And even a PHP beginner know that $GLOBALS is a array containing all the global variables and it is used in a function or a class. So I think no one will ask a question here which the answer is simply $GLOBALS. Any finally, thanks Jasper for t

[PHP] Super globals ?

2005-08-20 Thread Wong HoWang
Dear all, Hello, I want to know that is there any way to create a super global in PHP? Please help! Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Super globals ?

2005-08-20 Thread Wong HoWang
Dear all, Hello, I want to know that is there any way to create a super global in PHP? Please help! Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem when encoding non-english into UTF-8

2005-08-15 Thread Wong HoWang
Dear all, When I try to encode non-english char. such as big5 to UTF-8 with utf8_encode(), it always generate a wrong result, which is not readable. What can I do? Please help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] curl?

2005-08-13 Thread Wong HoWang
Hi, Everybody! I got this when I execute the script: Fatal error: Call to undefined function: curl_init() in msnp9.class.php on line 259 is there anyway to solve it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
That is something like: Can I write like this? "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] > $someGlobalVariable = 'foo'; > > function myFunction() { > global $someGlobalVariable; > > // do stuff with $someGlobalVariable >

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
tuff with $someGlobalVariable > } > ?> > > Jasper > > Wong HoWang wrote: >> as title, how to start a global variable within a function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
e; > > // do stuff with $someGlobalVariable > } > ?> > > Jasper > > Wong HoWang wrote: >> as title, how to start a global variable within a function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
as title, how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
as title, how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to start a global variable within a function?

2005-08-08 Thread Wong HoWang
as title, how to start a global variable within a function?