[PHP] HTTP post requests

2001-02-05 Thread Matthew Brealey

I need to do an HTTP post from a PHP script; I want to set username=.

What is the correct way to do this in PHP?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HTTP post requests

2001-02-05 Thread Matthew Brealey

I need to do an HTTP post from a PHP script; I want to set username=.

What is the correct way to do this in PHP?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sorting an array

2001-01-12 Thread Matthew Brealey

I have a 2-d array:

$list[$ctr]["username"]
$list[$ctr]["county"]
$list[$ctr]["age"]
$list[$ctr]["id"]
$list[$ctr]["days"]

I need to sort by days, which is an integer. What function should I use?

E.g.,
$list[0][mark]
$list[0][somewhere]
$list[0][12]
$list[0][1]
$list[0][200]

$list[1][andy]
$list[1][somewherefurther]
$list[1][18]
$list[1][2]
$list[1][100]

$list[2][sam]
$list[2][somewhereelse]
$list[2][15]
$list[2][3]
$list[2][150]

should sort to:

$list[0][mark]
$list[0][somewhere]
$list[0][12]
$list[0][1]
$list[0][100]

$list[1][andy]
$list[1][somewherefurther]
$list[1][18]
$list[1][2]
$list[1][150]


$list[2][sam]
$list[2][somewhereelse]
$list[2][15]
$list[2][3]
$list[2][150]
-- Random (non-anti-Microsoft) fortune


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Is there a function to subtract dates

2001-01-12 Thread Matthew Brealey

I need to find the number of days between a date in the past and todays date. Does PHP 
have a function to do this, or do I need to write my own?

-- Random (non-anti-Microsoft) fortune


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]