[PHP] weird fopen problem

2002-01-10 Thread Zhang, Leon (STHK/Zh)
Hi Jon, Can you tell me how you solve this at last,I met the same problem in my php script.,I am really new to Linux and Apache.Where and how to set the permission to ensure that all common users can write this file? Regards Leon -原始邮件- 发件人: Jon Farmer [mailto:[EMAIL PROTECTED]] 发送时间:

re: [PHP] How to add a carriage return in the end when using implode?

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Yes,I have just worked out ,thank you Jason. -原始邮件- 发件人: Jason Wong [mailto:[EMAIL PROTECTED]] 发送时间: 08 January, 2002 16:46 收件人: [EMAIL PROTECTED] 主题: Re: [PHP] How to add a carriage return in the end when using implode? On Tuesday 08 January 2002 14:18, Zhang, Leon (STHK/Zh) wrote

[PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Hi, In php ,we can easily get the ip address of a connected computer ,but I always see on the web that there are some pages can tell you where you are from,so there must be a complete table show the relation of the ip address and country or region ,where can I find this . Thanks . Leon

re: [PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
the host name ?Anything missed here? Regards Leon -ԭʼÓʼþ- ·¢¼þÈË: Andrew Brampton [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 09 January, 2002 9:46 ÊÕ¼þÈË: Zhang, Leon (STHK/Zh) ³­ËÍ: [EMAIL PROTECTED] Ö÷Ìâ: Re: [PHP] IP address from which country No such table, the best you can do is look

re: [PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Thank you Jason ,I will check the Digital Envoy to get more information ,have you got the website address of it? -ԭʼÓʼþ- ·¢¼þÈË: Jason Murray [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 09 January, 2002 10:06 ÊÕ¼þÈË: 'Zhang, Leon (STHK/Zh)'; [EMAIL PROTECTED] ³­ËÍ: [EMAIL PROTECTED] Ö÷Ìâ

[PHP] php4 startup error

2002-01-07 Thread Zhang, Leon (STHK/Zh)
hi, I have installed php-4.0.0-Win32(into c:\php) and apache_1_3_9_win32(into C:\Program Files\Apache Group\Apache\ ) on my window98,the apache alone can be run normally,however when I run a test.php,windows told me the general protection error on PHP4TS.DLL and let me see the error log

[PHP] How to add a carriage return in the end when using implode?

2002-01-07 Thread Zhang, Leon (STHK/Zh)
$subdata has been changed before then $data[$index]=implode(",", $subdata);--what shouldI change here? rewrite the file like this : $data[$index]=$data[$index];$fp=fopen($datafile,"w+"); $a=0; do{ fputs($fp,$data[$a]);--or here?. $a++;

[PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Zhang, Leon (STHK/Zh)
hi, A text file has been formatted ,how to read/write form/into certain place in a text file. For example,read form letter 5 to 10 in line 4 ,and after some procedure ,write into the same place. Another question is that if a user has opened the file to read and write ,what will happen if

re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Zhang, Leon (STHK/Zh)
Does anybody know this? Please give me some advice,any help will be appreciated. -ԭʼÓʼþ-·¢¼þÈË: Zhang, Leon (STHK/Zh) [mailto:[EMAIL PROTECTED]]·¢ËÍʱ¼ä: 07 January, 2002 9:56ÊÕ¼þÈË: [EMAIL PROTECTED]Ö÷Ìâ: [PHP] How to read/write form/into certain place in a text file

re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Zhang, Leon (STHK/Zh)
Thank you ,Jimmy . -ԭʼÓʼþ- ·¢¼þÈË: Jimmy [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 07 January, 2002 12:13 ÊÕ¼þÈË: [EMAIL PROTECTED] Ö÷Ìâ: Re: [PHP] How to read/write form/into certain place in a text file Hi Leon, For example,read form letter 5 to 10 in line 4 ,and after some