[PHP] Got failed while calling strtotime().

2003-08-17 Thread Larry_Li
I moved website from NT to W2K and got problem of date conversion. I'm using MS SQL Server. In SQL Server, the data looks like 06/09/03. I got 06 9 2003 12:00AM in W2K and Jun 9 2003 12:00AM in NT. strtotime() works ok on NT, but return -1 on W2K. Any ideas? Thanks a lot! Larry -- PHP

Re: [PHP] Got failed while calling strtotime().

2003-08-17 Thread Larry_Li
I knew it's incorrect format. But why string from NT is correct? I don't want to change source codes on website migration. ---

[PHP] Help! Unable to load DLLs.

2003-08-21 Thread Larry_Li
Got error message: Unable to load dynamic library '.\extension\php_mssql.dll' - The specified module could not be found. I tried change php.ini many times, still got same error. I'm pretty sure these DLLs in such directory. Any ideas, Thanks!

Re: [PHP] datetime

2003-08-21 Thread Larry_Li
Use date() and strtotime() together. strtotime will convert date string into integer timestamp. Still have any questions, check these two functions online plz. Dale Hersh [EMAIL PROTECTED] 08/22/2003 10:13 AM To: [EMAIL PROTECTED] cc: Subject:[PHP]

[PHP] SQL Query request is just hanging.

2003-08-27 Thread Larry_Li
I'm using IIS5.0 on W2k. I have upgraded w2k to sp4 and ms sql server to sp3. I created a new table and just do a simple query in php program. But it seems sql server doesn't return any query result. I'm using mssql_fetch_array() function, but no any return. PHP program is just pending there.

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
I believe all pages in your site are protected by session variables. Try to login first, then go where you want to go. Or try to remark codes which check your login status. Jami [EMAIL PROTECTED] 09/17/2003 03:52 PM Please respond to listmail To: PHP General [EMAIL

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
Did you open register_globals = On in php.ini? Larry Li/CNTR/APPLIED [EMAIL PROTECTED] 09/17/2003 04:04 PM To: [EMAIL PROTECTED] cc: PHP General [EMAIL PROTECTED] Subject:Re: [PHP] SESSION variables losing data on WinXP? I believe all pages in

Re: [PHP] ANY ONE ANSWER ME PLEASE !

2003-09-18 Thread Larry_Li
try cgi.force_redirect = Off. nabil [EMAIL PROTECTED] 09/18/2003 05:28 PM To: [EMAIL PROTECTED] cc: Subject:[PHP] ANY ONE ANSWER ME PLEASE ! I m going to tear my hair off, I can not solve the problem.. with the stupid IIS i got the following error:

Re: [PHP] [PHP - MSSQL]: Problem with mssql_connect

2003-09-18 Thread Larry_Li
Change MS SQL SERVER Authentication's type to SQL Server and Windows instead of windows only. Ongart Wongsanupa [EMAIL PROTECTED] 09/18/2003 04:25 PM To: [EMAIL PROTECTED] cc: Subject:[PHP] [PHP - MSSQL]: Problem with mssql_connect Please

[PHP] How to connect ms sql server in linux apache+php?

2003-09-24 Thread Larry_Li
First I can't find something like mssql.so in extensions folder. BTW, I also need gd2.so. How could I get them back? Any easy way to connect ms sql server? I need migrate my site into linux apache server from win 2k IIS. Thanks a lot, Larry

[PHP] How to configure GD support in php on linux/apache?

2003-09-24 Thread Larry_Li
Could anybody show me how to configure it? Thanks!

Re: [PHP] if ($xxxxx) { function not working?

2003-06-10 Thread Larry_Li
if (!id !edit) - something wrong here. Normally id0. if so, id=true. !id=false. (false anything) is false. echo blah blah blah will never be executed. ---

Re: [PHP] numberformat

2003-07-14 Thread Larry_Li
printf(%02d, $integer); Use sprintf() if you want to save output. Larry ---

Re: [PHP] Using href as a submit for a form

2003-07-18 Thread Larry_Li
Try to use javascript. a href=javascript:document.form1.submit()submit/a Change form1 as your actual form name. -

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-11 Thread Larry_Li
Sure. Could you paste your html codes php codes here? I believe there are a lot of nice guys are willing to help you. BTW, nice to meet you and hope i could help you someway. I'm chinese too. Larry

Re: [PHP] Making a Loop.

2003-03-12 Thread Larry_Li
Where is $number assignment? Because $number is ZERO, your code will not run any statements in loop statement. Larry ---

[PHP] Can't relocate to a specified URL after submit.

2003-03-13 Thread Larry_Li
The code looks like: if( $actionflag == delete ) { //Delete Table ip_enrollment $query=delete from ip_enrollment where id='$id'; $AMC_DB-query($query) or die(database server wasn't available now.); //Delete Table ip_evaluation $query=delete from ip_evaluation where

Re: [PHP] Variable Nightmare

2003-10-08 Thread Larry_Li
Yes. PHP supports this feature you need. for loop $i { $temp=value.$i; $myNewVar = $$temp; } Hope it help. Ryan Thompson [EMAIL PROTECTED] 10/09/2003 01:38 PM To: richard cook [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:Re: [PHP]

Re: [PHP] Using JavaScript variables in PHP

2003-11-21 Thread Larry_Li
form method=post action=your_php_file.php input name=id /form in your_php_file.php, try select * from somedatabase where field=$id Mike Knittel [EMAIL PROTECTED] 11/20/2003 11:45 PM To: [EMAIL PROTECTED] cc: Subject:[PHP] Using JavaScript variables

Fw: [PHP] Re: Excel Table download it

2003-11-25 Thread Larry_Li
header(Content-type: application/vnd.ms-excel); header(Content-Disposition: attachment; filename=report.xls); - Forwarded by Larry Li/APPLIED MATERIALS on 11/25/2003 03:40 PM - Phillip Jackson [EMAIL PROTECTED] 11/25/2003 02:30 PM To: [EMAIL PROTECTED] cc: