[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 VirtualHost ... ... /VirtualHost tags. As you know, the user

[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

[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: ?php ini_set('precision',16); echo pi(); ? 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: ?php ini_set('precision',16); echo pi(); ? 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] 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: ?php ini_set('precision',16); echo pi(); ? How can I get more digits after

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

2005-09-01 Thread Wong HoWang
. 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: ?php ini_set('precision',16); echo pi(); ? How can I get more digits after . ? Can anyone help? Thx

[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. ?php // for example, 02/2005 $year = 2005; $month = 02; for ($i = 1; $i = 31 ; $i++) { if (checkdate($month,$i,$year)) { if (date(w,mktime(0,0,0,$month,$i,$year)) == '0') // it is Sunday echo $i . '/' . $month . '/' .

[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

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

[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

[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?

[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

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

2005-08-08 Thread Wong HoWang
but, I mean I haven't start the global variable BEFORE the function is called... Jasper Bryant-Greene [EMAIL PROTECTED] wrote:[EMAIL PROTECTED] ?php $someGlobalVariable = 'foo'; function myFunction() { global $someGlobalVariable; // do stuff with $someGlobalVariable } ? Jasper Wong

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

2005-08-08 Thread Wong HoWang
but, I mean I haven't start the global variable BEFORE the function is called... Jasper Bryant-Greene [EMAIL PROTECTED] wrote:[EMAIL PROTECTED] ?php $someGlobalVariable = 'foo'; function myFunction() { global $someGlobalVariable; // do stuff with $someGlobalVariable } ? Jasper Wong

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

2005-08-08 Thread Wong HoWang
] ?php $someGlobalVariable = 'foo'; function myFunction() { global $someGlobalVariable; // 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