[PHP] Re: Help converting ASP->PHP

2001-10-24 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > > datCurrent, intCurrentMonthDays and intWorkDays are local > > > This didn't totaly help. This line I can't figure out: > > intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]]; > > > > Basically it gets the number of

[PHP] Re: Help converting ASP->PHP

2001-10-23 Thread Garth Dahlstrom
> > datCurrent, intCurrentMonthDays and intWorkDays are local > This didn't totaly help. This line I can't figure out: > intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]]; > > Basically it gets the number of days in the current month, How to do > in PHP? Mr.Baseball, have a

[PHP] Re: Help converting ASP->PHP

2001-10-23 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > function begin_month($timestamp) > { > $a = getdate($timestamp); > return mktime(0, 0, 0, $a["mon"], 1, $a["year"]); > } > > function end_month($timestamp) > { > $a = getdate($timestamp); > return mktime(0, 0, 0, $a["mon"] + 1, 0

[PHP] Re: Help converting ASP->PHP

2001-10-19 Thread Curt A. Gilman
You should be able to do everything with PHP's date functions: http://www.php.net/manual/en/ref.datetime.php Pay particular attention to the mktime, date, and getdate functions. The script below might be helpful to you. __ Curt A. Gilman Richmond, Virginia, USA [EMAIL PROTECTED] "

[PHP] Re: Help converting ASP->PHP

2001-10-19 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... >Goto yahoo and do a search for ASP2PHP - it is a script that converts >asp pages to php. Never used it so I can't say how good it works, but >I'm guessing it will do all the basic stuff really well, but db stuff >might get a bit messy.